LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String to Write characters to file vi

Solved!
Go to solution

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.

0 Kudos
Message 1 of 10
(4,306 Views)

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 WelcomeSmiley Wink)

0 Kudos
Message 2 of 10
(4,301 Views)

Is there a way you can make this vi into labview 7 format? 

 

Thanks so much!!

0 Kudos
Message 3 of 10
(4,299 Views)

or a jpeg file is fine if you cant make it into labview 7 thanks!!

0 Kudos
Message 4 of 10
(4,298 Views)

The above posted VI.

/Y

 

LV-forum-help.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 10
(4,288 Views)

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!

0 Kudos
Message 6 of 10
(4,284 Views)

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

Download All
0 Kudos
Message 7 of 10
(4,273 Views)

 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!

 

0 Kudos
Message 8 of 10
(4,270 Views)

i figured out the formatting problem, but i was wondering if there was a way the scientific notation can work out? thanks

0 Kudos
Message 9 of 10
(4,260 Views)
Solution
Accepted by topic author jabano

nevermind i solved this as well! thanks so much for your time!

0 Kudos
Message 10 of 10
(4,246 Views)