View Single Post
  #10   Spotlight this post!  
Unread 27-01-2011, 18:09
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Saving Text to a File on cRIO

Quote:
Originally Posted by AB Steven View Post
I can get what I'm writing into Excel just fine, but I can only write one variable to the file. For example one potentiometer is at 70 the other at 450, I can only write the 70 or the 450 not both with a comma or some such thing in between. Currently I get it to write one number per line for example:
70
71
72
70
65
68
So that is keeping track of one potentiometer. I want both in one like this:
70,450
71,451
72,452
70,450
65,445
68,468
That would be potentiometer1,potentiometer2. Hope that helps, here is what I have right now.
I'm not a LabVIEW guru so I can only speculate:

Does LabVIEW have a function analogous to printf? If so use that to write both variables in one operation to one line in the file.

or...

Does the LabVIEW file output function you are using have an option to allow you to suppress the newline? If so, write the first variable without the newline, write the comma without the newline, and finally write the second variable with the newline.


Reply With Quote