ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing command to VISA write

I'm passing a command from the main vi to subvi. There's a problem that the subvi always attach extra"\" before an "r" which is the carriage return, example if the comman uses is "reset" for resetting I write "reset\r" in the main vi and passes it to subvi, but we I look at the subvi it attach extra"\" so the command to be sent now looks as "reset\\r". Why is that the case? Is there any way to fix the problem?
0 Kudos
Message 1 of 3
(2,802 Views)
Don't worry, there is no extra "\" really. The lower level control has a property called "\ codes" enabled that allows you to see characters that are nomally invisible.

\r = carriage return
\n = lineeed
\t = tab
\s = space

Hope this helps.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 3
(2,802 Views)
Thanks Mike!!
0 Kudos
Message 3 of 3
(2,802 Views)