06-26-2012 09:39 AM - edited 06-26-2012 09:42 AM
Hey all,
I know this type of question has been asked many times before, but I have been scouring the forums and have been unable to solve my problem after hours of work. To be honest, I am not sure what is wrong. The program was working fine yesterday and then randomly stopped working. I'm hoping that someone here can take a look at the code and give me some insight.
Thanks
LANL13
Solved! Go to Solution.
06-26-2012 09:44 AM
You did not include the subVIs.
06-26-2012 10:00 AM
My bad. I thought that they would be automatically included. Here they are.
06-26-2012 10:19 AM
Since it appears you need the carriage return as a terminator, I would use the VISA Initialize Serial Port, set the correct terminator, and then get rid of all of those VISA Bytes at Serial Port and the associated delays. Just use some high arbitrary number for the number of bytes to read.
Since it was working at one point, I would also recomend you try using terminal emulation program such as Hyperterminal, putty, etc. to also test communication. If that also fails, then it's not a problem with LabVIEW.
06-26-2012 10:23 AM
I'm pretty new to LabView so I'm not really sure what you mean in the first paragraph (I am trying to fix someone else's code). Could you dumb it down or provide an example?
Thank you so much for your help
06-26-2012 10:34 AM
Look at the VISA Initialize Serial Port. It would be used instead of the existing property node that sets the baud rate, parity, etc. It has an input for termination character. This is a character that when detected, will cause the VISA Read to terminate. You need to wire a decimal 13 to the input.
06-26-2012 10:56 AM
I was unable to find VISA Initialize Serial Port, but I found VISA Configure Serial Port. Is that the same thing? Also what do you mean by "wire a decimal 13 to the input"?
06-26-2012 11:12 AM
Sorry, I meant VISA Configure Serial Port.
Perhaps you should spend some time with the LabVIEW 101 tutorial before you do anything else. Move your mouse over the input called 'termination char (0xA = '\n' = LF)' and right click and select 'Create>Constant'. When the constant appears, enter 13 as a value.
06-26-2012 11:15 AM
It works! Thank you for your help! Now I just need to figure out how to fix the main program that this one feeds in to.
06-10-2013 08:45 AM
Hello,
I am facing a similar sort of problem. I am trying to connect a Lock In Amplifier with a USB Cable communication. In the VISA read, write sub VI, I get error -1073807339.
I am attaching the .llb file for reference.
In the file,
The main VI that I want to run is : SR7270 Front panel- Single Reference Mode.vi
the sub VI giving this error is called SR7270 VISA write/read.vi
Please help! I am sure that drivers for this device is correctly installed.