NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Step Module requires an input path defined

I have a sequence step that calls a LabView module requiring a file path as an input parameter.  If I select the Default checkbox in the module tab, which results in the path defined as a default value in the vi to be used, the step works successfully.  If I de-select the Default checkbox and define the exact path in the TestStand expression field, the step does not work successfully.  Note: the file path has a \N in the sequence of characters, i.e., "C:\Program Files\National Instruments\ ...".  TestStand is interpreting the \N as a new line and this causes the resulting path to be corrupted.  If I escape this, i.e., \\N, things work fine.  My question is, how do I get around this without having to escape?  TestStand documentation discusses defining strings as either ascii or binary, but this is not an option for a path data type.
0 Kudos
Message 1 of 3
(3,139 Views)
Hi meg57,

If you manually type the string value for that parameter, you will have to include escape characters, entering double backslashes for every single backslash.  However, if the string is passed as a variable, the escaping is done automatically, so in that case you wouldn't need to include the double backslashes.  Since you are entering the string directly into the "Value" field of this module's parameter, you will need to include the escape characters for this path to be interpreted correctly.
Regards,


Marty H.
National Instruments
0 Kudos
Message 2 of 3
(3,098 Views)
To get around this requirement, you could take your input path from a user prompt, which would automatically enter the escape characters for you.  If you like, you could also try using an array of unsigned integers rather than a string to represent your path.  I hope that helps!
Regards,


Marty H.
National Instruments
0 Kudos
Message 3 of 3
(3,090 Views)