05-01-2006 06:48 PM
05-02-2006 07:29 AM
05-02-2006 04:34 PM
05-03-2006 08:07 AM
Windows 9x To use a DOS command, insert command.com /c before the command, and set working directory to the location of command.com.
Windows 2000/XP To use a DOS command, insert cmd /c before the command. You do not have to set working directory. If you do specify working directory, standard output returns the same directory list.
- depending on the version of Windows you have, add this before the HTTPGET command
>> working directory is the file system directory from which you want to execute the command.
- I think you have to define where HTTPGET.exe is
>> If run minimized? is TRUE, the VI minimizes the run of your executable program. The default is FALSE. run minimized? is unused on Linux platforms
- even though it just say minimize, it actually hides the window (at least it did for me)
>> standard output returns information from the program you called if wait until completion is TRUE. If wait until completion is FALSE, System Exec returns an empty string.
- output that you want to parse into legimate readings
I have a iSeries temperature controller, and sending cmd /c httpget -r -S "*02X01\r" 172.23.1.134:2000 in the command line input will read the temperature (at address 02), but then it takes a long time and won't return the output until timeout. This is because the httpget command continuously read the device and update the output (I think). You might want to contact Newport (I think they're in the west coast, so make sure you're not calling too early in you're in the east coast ^_^ i kept calling when they were out to lunch, and took me a while until i could get someone to help) and ask them how to read just one time instead of continuously using httpget.
after reading it, just use the fractional string to number function to convert the reading to numbers and pass it to the graph
See-Ming
05-03-2006 11:29 AM
Thanks again,
I'm coming to the conclusion that HTTPGET is probably not going to be a viable solution. It is intended to change one parameter, or get one response and then be done. This makes it a poor way to querie the 4 parameters repetitively.
I see that Hyperterminal is an alternative communication method, which allows continuous communications. Is there a Labview plugin for Hyperterminal, or perhaps a terminal emulator function within Labview?
Cheers,
Stephen
05-03-2006 11:35 AM
05-03-2006 12:08 PM
OK, I think I've made the big breakthrough...
Using the Instrument I/O assistant, I've managed to contact the device. Now, I can either querie the device for responses, or let it send a continuously streaming string such as...
TA77.4F
TB73.2F
HA43%
etc...
The speedbump was in the "number of ports" setting in the web based setup for the device. It only makes sense that it needs to be non-zero, but it's taken me this long to realize that it was set to zero.
Thanks for the help! If I can answer any questions about what I've done on this end, I'd be happy to...
Cheers,
Stephen
05-03-2006 12:59 PM
05-03-2006 01:11 PM
Yes, the device is connected to our LAN via the ethernet port and serving a webpage at the IP I selected. Then, I used the configuration section of the web-based Java controller to setup the communications (that's where I missed the fact that I had zero ports open). Using the Measurement and Automation Tool, I created the ethernet communication as an "Instrument". Now, I can place an Instrument I/O Assistant in my block diagram and wire it to my graphs.
Funny how missing one setting can cost so much time...
Cheers,
Stephen
05-03-2006 01:23 PM