I may be faced with the task of controlling a device which only serves up web pages as a user interface. Does anyone know how I'll need to format commands for button clicks, text boxes, pull down menues, etc. I've done a few experiments with TCP Write but haven't had much luck yet. In case it matters, I'm using LabVIEW 6i on Windows NT and I also have the Internet Toolkit.
> I may be faced with the task of controlling a device which only serves up > web pages as a user interface. Does anyone know how I'll need to format commands > for button clicks, text boxes, pull down menues, etc. I've done a few experiments > with TCP Write but haven't had much luck yet. In case it matters, I'm using > LabVIEW 6i on Windows NT and I also have the Internet Toolkit.
Basic guideline looks like follows: 1.Use TCP connection to port 80 (most likely client is using this port if not search exact port number in documentation) 2.Get client's web page with buttons and controls. Parse HTML code for the following: These will form prototypes for you r commands to client. 3. prepare your data and put it into found controls on appropriate position. 4.send prepared commands back to device 5. get the reply from device.
The all communication going through strings. There are some details,so you should be familiar with an HTTP format and forms. It depends on your client's web server protocol and specific.
Hope this helps a little. -- Sergey Krasnishov ____________________________________ Automated Control Systems National Instruments Alliance Member Moscow, Russia sergey_acs@levsha.ru http://acs.levsha.ru