DataSocket Java Applet

2004-02-25 Thread ggingras
Is it possible to program a java applet to access information from
instruments using DataSocket? Is there an API? There is an API
announced on this website:
http://flagpole.mit.edu/applets/DataSocket/DS-HOWTO.html
It says it's a Beta but I cannot acces the link that redirect on NI's
Website



Re: DataSocket Java Applet

2004-02-25 Thread Jeremy L
Hi GGingras,

National Instruments used to provide and support a product known as
DataSocket JavaBean.  Unfortunately, it has been discontinued.  So,
DataSocket is not much of an option.  There are a few other ways,
however, that you can take to gain access to instruments.

One way would be to create a Remote Panel, which does not need a java
applet. a
href=http://zone.ni.com/devzone/learningcenter.nsf/03f7c60f17aad210862567a90054a26c/2ad405a06ebed71586256c4e00621c73?OpenDocument;Here/a
is a link to a tutorial on how to create one.

If you must use Java, you could export your LabVIEW VIs into a DLL
using Application Builder, and then use the JNI (Java Native
Interface) to talk to this DLL.  a
href=http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101RNAME=ViewQuestionHOID=50650008009270ECategory=LabVIEW.LabVIEW+General;Here/a
is a link that may provide some more information on how to do this.

Lastly, you can communicate over TCP/IP.  You can write a server using
TCP/IP primitives and have the java applet connect to it and exchange
data via TCP or UDP.

Hope this helps.  Let me know if you need any more information.  Happy
Coding!

Jeremy L.
National Instruments