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: 

string convert to array

Solved!
Go to solution

Well, you are changing specifications on us.

 

Before it was:

 

point 1; voltage 2; current 0.5;

point 2; voltage 3; current 0.7;

...

 

Now its:

 

"chan 1;inp on;curr 1;chan 2;inp on;curr 0;chan 3;inp on;curr 2;...."

 

Do you need the "inp on" part? If so, as what?

Message 11 of 14
(1,324 Views)

Your file also seems corrupted. Sometimes there is no ";" delimiter.

 

for example

 

"...curr 0.5chan 8...".

 

Shouldn't that be

 

"...curr 0.5;chan 8..."

 

for consistency. Where does the file come from?

Message 12 of 14
(1,317 Views)

You are right, ther's always a delimiter ; and I need the Inp On to set on my channel.

 

This file is created by a compilation of other files that got only all the parameters (that represent one line of my test file)

 

for example my test.txt is made by : point 1. txt+ point2.txt+ point3.txt

 

and each point?.txt is like:

Chan 1;inp on;curr x;

Chan 2;inp on;curr y;

etc...

 

0 Kudos
Message 13 of 14
(1,309 Views)
Solution
Accepted by akim_10

Maybe you can try something like the following?

 

 

If needed, you can parse out the numbers inside the FOR loop when you precess each row, for example.

 

Message Edited by altenbach on 03-05-2009 02:44 AM
Message 14 of 14
(1,305 Views)