07-23-2010 12:03 AM
Hey Guys,
Bit of a noob when it comes to labview but please bear with me. Ok I have an RS232 device which has no previous drivers written for it. So I looked up and understand the VISA Basic example which connects and controls the device (Note it took a bit of reading these forums to get the \r\n term character problem sorted). No problems there. However if I try altering the write input string configuration with the exact same command string (either passing from another vi using the basic example as a subvi or changing the input so that a concatenated string is used such as "1 start" + "\r\n") the program completes without error, no read string is read back, and nothing happens with my device. I cannot figure this out and dont understand this. I have even left all the changes to the input string inside the case structure where the write string can be found in the basic example vi as can be seen from the attached pic. Has anyone got any suggestions please?
Tony
07-23-2010 12:50 AM - edited 07-23-2010 12:53 AM
Make sure your \r\n string constant is set to '\' Codes display. (also there is a end of line constant available on your string pallette you could replace that string constant with.)
I don't see any constant or control wired to your True/False case structure in your diagram.
Also include what version of LabVIEW you are using.
07-23-2010 01:05 AM
Ahhhhhhh! Success! EOL constant did the trick.
Thankyou very much GovBob.