LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add CR and LF on a command in Labview?

Hi,

I am using the Walker MG-10D Gassmeter, and this instrument requires that all commands must be terminated with CR and LF. How can I do that? Could you please give me an sample example for " *IDN? " command? I am using Labview 6.0.

Thanks a lot.
0 Kudos
Message 1 of 3
(4,934 Views)
You just need to form a string that contains these special characters. There are several possibilities, two are shown on the attached image.

(1) right-click on the string constant and select '\' Codes Display. Now you can add \r for carriage return and \n for linefeed.

(2) Just use "concatenate strings" with the special diagram constants found in the strings palette.

Now send the final string to your device.
Message 2 of 3
(4,934 Views)
whuili,
Please consider sharing your instrument code with the rest of the LabVIEW community. You can do this by submitting your code to be included on the Instrument Driver Network (www.ni.com/idnet). Select the link to Submit Driver and complete the form. I would be happy to help if you have any questions about developing a certified instrument driver: http://www.ni.com/devzone/idnet/development.htm

Jason
0 Kudos
Message 3 of 3
(4,934 Views)