NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

String Drops Blanks After Hyphen

I am trying to send a folder path from a variable in TestStand. The path unfortunately has a few spaces and a hyphen which is returning the wrong string.  The string variable contents are inside the angle brackets <"\\Six_Position_Flash_Programmer - Extra DIO\\Flash\\Datalog">. See attached image to see the outcome. There is nothing wrong with my my sequence as I use it with dozens of other folders and locations. I tried to break up the internal blanks and replace them with a +" "+ but that didn't change the outcome. What can I do here? 

 

 

0 Kudos
Message 1 of 3
(772 Views)

I don't have python so I can't test this but 2 things I can think of:

 

Option 1 - Try putting an escaped space in there? \s

 

Option 2 - Put an @ symbol before the string @"\\Six_Position_Flash_Programmer - Extra DIO\\Flash\\Datalog".  You'll need to remove the double slashes to just single slashes if you do.  The @ symbol basically tells the string to not do escape characters.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(728 Views)

I tested it with LabVIEW. It seems to be working as expected. You could try implementing Jigg recommendations

 

string.png

 

Regards,

Dharani | CLA | CTD

Regards,
Dharani | CLA | CTD
0 Kudos
Message 3 of 3
(706 Views)