LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about my program

I am having difficulties passing a long string with \s\s into the main vi. Could you please look at myprogram and suggest any changes?
Thank-you,
Ivanka Slywynska
Download All
0 Kudos
Message 1 of 3
(2,529 Views)
Hi Ivanka,

Sorry but I don't understand point of yopur program.

But, 1. will be good when you replace While Loop by For Loop with Loop Tunnel (look my vi).

2. What is goal - point of your program? Transfer string "01\s\s\s34\s\s4342\s-35.52\s\s\s-65446.6655\r\n" to Array {1,34,4342,-35.52,-65446.6655}. [Array sorting is after easy]

Bye
JCC
0 Kudos
Message 2 of 3
(2,529 Views)
Your constant array of strings on the main vi diagram (01\s\s\s34\s\s4342\s-35.52\s\s\s-) needs to be set to '\' Display for the data in it to be interpretted as space, return, and new line. Constants work the same way as do controls and indicators.

Lynn
0 Kudos
Message 3 of 3
(2,529 Views)