03-05-2009 04:08 AM
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?
03-05-2009 04:24 AM
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?
03-05-2009 04:36 AM
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...
03-05-2009 04:43 AM - edited 03-05-2009 04:44 AM
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.