Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication with a network device

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

0 Kudos
Message 1 of 8
(5,351 Views)

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

0 Kudos
Message 2 of 8
(5,333 Views)
What have you tried? In MAX, you can add network devices and use VISA for communications. There are also the TCP/IP functions.
0 Kudos
Message 3 of 8
(5,331 Views)

I am trying TCP/IP communication in Labview.....but so far didn't got any success!

 

 

0 Kudos
Message 4 of 8
(5,327 Views)

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

0 Kudos
Message 5 of 8
(5,316 Views)

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.

0 Kudos
Message 6 of 8
(5,313 Views)

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


 

0 Kudos
Message 7 of 8
(5,292 Views)

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.

0 Kudos
Message 8 of 8
(2,854 Views)