LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change network controller settings from LabVIEW

Hi. I have a controller connected over the ethernet and appears as network device in NI MAX. I can access the setting of the controller from the web browser via its IP address and change the settings. I want to open the webpage from the LabVIEW, which is easy, but the part that I am stuck with is that how to change the setting of the controller from LabVIEW. The HTML code of the webpage is attached. I want to change only one parameter from the LabVIEW i.e. Brightness (%):</font></td><td><input maxlength=10 size=10 value=50.0 name=cbri. On the webpage to change this parameter first write the new brightness value in the text box and then press the submit button to update brightness value (webpage screen shot attached). I found only one VI over the forum (attached) which resembles with my application but I cannot modify it as I am new to html, so any help will be appreciated. Cheers.

 

0 Kudos
Message 1 of 7
(2,695 Views)

Any help.....

0 Kudos
Message 2 of 7
(2,645 Views)

What type of controller is this? 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 7
(2,639 Views)

Its Gardasoft RT220 led controller. Here is the link http://www.gardasoft.com/LED-Controllers/RT-PP/RT200.aspx

0 Kudos
Message 4 of 7
(2,633 Views)

The webpage is a simple form using the GET method and no action attribute specified.  When you submit that form it simply calls the same URL with the form data appended to the URL.  http://<address>?name=val&name2=val2

 

You should be able to send a GET request to the instrument with just the value you want to change specified.  The simplest way is to use Datasocket Read with the connection set to 'http://<address>?cbri=##.# [text]'  Of course you change <address> to the IP address of your box.  Don't forget to put '[text]' at the end or you'll get an error from the Datasocket Read function.

0 Kudos
Message 5 of 7
(2,614 Views)

@iiirfan wrote:

Its Gardasoft RT220 led controller. Here is the link http://www.gardasoft.com/LED-Controllers/RT-PP/RT200.aspx


I thought that webpage looked odd for a Network Controller...

 

When you said "Network Controller", I was expecting some sort of Ethernet switch or similar device that might have had a SCPI command set for remote control along with the webpage like an LXI instrument has, not an LED lighting controller.

 

But it sounds like  Darin.K has pointed you in the right direction.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 7
(2,611 Views)

RTFM:

 

This device can be controlled via Ethernet or it's serial port using its command set OR the webpage

 

Read sections 10 through 12 to learn the interface details and command structure.

 

Then write a set of VI's to do the commands you want instead of using the webpage.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 7
(2,607 Views)