12-08-2005 01:48 PM
I am having some trouble with using VISA to communicate with a serial device. I am trying to control an advanced illumination line light. The attached program writes information to it just fine, nothing fancy there. However it seems that if I try to update any faster than about 300mS the line light controller will not properly receive the information and does not adjust the light. The device came with a simple program to control it which can update faster than 100mS. Any suggestions for faster updates?
Thanks,
Rob
12-08-2005 02:41 PM
12-08-2005 03:44 PM
I only get errors that are sent back from the device (when I have a Visa read in the code of course). These problems only occur if I try to update faster than 300mS
The current program sends an intensity value to the device, upon accepting this value the device replies with the intensity that it was just set to.
12-08-2005 04:08 PM
Download portmon from this website. It will let you spy on the serial port data while the commands are flying. Use it with both programs accessing the device. You can save the data stream and print them out to compare.
12-09-2005 01:09 PM
Looks like this will be a rather useful program...
I ran the program and the results are in the attached files. 250mS.txt is of course running the LabVIEW application with a 250mS wait and 350mS.txt is using 350mS. As can be seen from the files everything returns a success each time, however the line light does not properly adjust its self when I use 250mS.
12-09-2005 01:20 PM
12-09-2005 03:58 PM
12-13-2005 01:05 PM
After looking at the manufactures VB source code it seems that a carriage return and line feed constant should be included at the end of every string sent. After making that change the program worked fine and can update faster than 40mS.
Thank you all for the help.