04-11-2011 11:40 PM
Hi all,
I'm using the concatenating strings function to write in a text file "Write characters to file vi" however for some reason my last string goes to the next line in the text file. So for instance:
9:44 pm; 960
; 4500e-7
and then it'll repeat
9:44 pm; 960
; 4500e-7
9:45 pm; 960
; 4500e-7
how would I let the characters write in 2 lines instead of 4? Should I make the characters write in an excel file instead?
9:44 pm; 960; 4500e-7
9:45 pm; 960; 4500e-7
The last string is a global variable string, but it has to save like this since new data is coming every 30 seconds or so.
Solved! Go to Solution.
04-12-2011 12:26 AM
Hi,
I think this must help you. Attaching your vi would help everyone understand better what exactly the problem is.
Regards,
Nitzz
(Kudos are always Welcome)
04-12-2011 12:48 AM
Is there a way you can make this vi into labview 7 format?
Thanks so much!!
04-12-2011 12:49 AM
or a jpeg file is fine if you cant make it into labview 7 thanks!!
04-12-2011 01:51 AM
The above posted VI.
/Y
04-12-2011 02:00 AM
Oh sorry that wasn't what i meant, those values were an example.
the last slot of the concatenating string is actually a global string that is being written and a value of 300e-6 or so is coming from this global variable string every 30 seconds so it keeps changing.
but for some reason in the text file the last slot skips the line. how would i make it stay on the line?
if this is confusing i will post my vi tomorrow thanks!
04-12-2011 12:33 PM
Here's some pictures about the problem, the one on top is where i'm getting the information from and the bottom is where i'm storing the information.
Full vi is also attached. It is called potentiostatfinal.vi
04-12-2011 12:50 PM
also, i was wondering if there was a way i can store that string value "-1181E-7" into a graph where it reads scientific notation.
originially the data is given out as -1181, -7 but i replaced the comma with an E. so is there a way i can convert a string written in scientific notation into a number for the graph? thanks!
04-12-2011 01:18 PM
i figured out the formatting problem, but i was wondering if there was a way the scientific notation can work out? thanks
04-12-2011 02:36 PM
nevermind i solved this as well! thanks so much for your time!