LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communicating with an http device

Hi

 

I have a new AC power switch whom I can control via http commends (from my browser).

my question is how do I build a vi to do the same without opening the browser (by direct access to the device).

 

thanks in advance

shai

0 Kudos
Message 1 of 5
(2,830 Views)

If you're on Windows then you could simple embed a web browser right on the front panel of the VI using the ActiveX "Web Browser" container (in the .NET and ActiveX palette).

 

Other solutions:

  • Use the TCP/IP functions to send/receive HTTP requests. This is a bit involved, but not that hard.
  • You may be able to use DataSocket.

There are several examples for the abobe that have been put together over the years. Search the site and this forum and you'll come across them.
Message 2 of 5
(2,823 Views)

let me rephrase...

can you give me some exemples for using tcp/ip VI's in order to send /receive an http massage such as  

http://username:password@XXX.XXX.XXX.XXX/XX.cmd?para1=*+para2=*+para3=*..

 

thanks

shai

0 Kudos
Message 3 of 5
(2,818 Views)
Check your instrument to see if is a VXI/11 or LXI device. If so, you just need to use VISA and can communicate to it just like a GPIB instrument. You add TCP/IP instruments in MAX.
0 Kudos
Message 4 of 5
(2,808 Views)

shaicoh wrote:
can you give me some exemples for using tcp/ip VI's in order to send /receive an http massage such as  

Have you tried a search as I had suggested? Examples have been posted in the past. Such as this one.

0 Kudos
Message 5 of 5
(2,799 Views)