07-28-2009 05:10 AM
Hello,
I am using a General Eastern Dew Point Hygrometer (Optica model) and communication it using a network cable (LAN). Mozilla firefox or IE are Ok for giving commands to the device and configuring it. But when it comes to data logging I don't have any clue how to make it possible!
Can anyone help me out in Labview with how to communicate with and log he data with a network device.
Just for example a general command for displaying the current data is:
http://3.112.160.36:28005/OpticaAPI.xml?GetCurrentData+0
Thanks a million.
Aidy
07-28-2009 10:14 AM
The device I am using is a Optica Dew point Hygrometer having a screen to display data and to configure the device. It is indepent device running on Windows CE 3.0 Runtime.
A facility is given in the device to operate the device remotely through Ethernet using a network cable.
I am doing the same. But how can I control the instrument using Labview and log the data ??
I am in a fix! Please Help.
Aidy
07-28-2009 10:36 AM
07-28-2009 11:19 AM
I am trying TCP/IP communication in Labview.....but so far didn't got any success!
07-28-2009 12:07 PM
By looking the examples given in the Labview....I think I can use TCP/IP communication.
But again I have feq Q's!
Is the device I am using will be a host or a client? What Should I use for initiating a TCP communication? TCP open? or TCP Listen? or TCP create Listner?
What are the fields: Service name? Port? Address?
I guess address is : 192.268.0.7 ?
Port: 288065 ?
Aidy
07-28-2009 01:22 PM
I think the best way would be to start with something like the TCP Communicator - Active Example. This will allow you to make a connection and then do a write/read. All of this working will depend on the network interface of the instrument. It would be nice to see some details on this.
07-29-2009 05:16 AM
Hello,
I would try Dennis' suggestion, as for IP address and port, if your original example of:
http://3.112.160.36:28005/OpticaAPI.xml?GetCurrentData+0
is what you use to get the data in your browser and it works, then the IP address is 3.112.160.36 and the port is 28005
07-24-2020 03:31 PM
Although this thread is 11 years old, I've been experimenting with the same instrument with the same command structure.
The simplest approach I've found is to pass the string as shown into the HTTP "Get.vi" (Data Communication -> Protocols -> HTTP Client), and then parse the XML string output in the body.
Using the Spreadsheet String to Array function with a format string of "<fAllData>%f</fAllData>" quickly converts all of the data readings into an array of doubles that can be indexed for the data needed.