06-11-2013 11:37 AM
Is there a way to change the significant digits in an LVM data file? I'm using "Write to measurements file"
Solved! Go to Solution.
06-11-2013 11:53 AM
Depends. What do your "signals" data look like?
06-11-2013 12:13 PM
Signals? They're waveforms, voltages...
06-13-2013 08:01 AM
Hi,
I'd use the "Write to Sreadsheet File" VI instead. It'll write your results to a text file and you can specify the format.
-CC
06-13-2013 09:27 AM
I'm not sure I can do it with "write to spreadsheet." It doesn't have a "Saving Data" boolean. A lot of my program is dependent on that. Is there any other way to change the significant digits in a "write to measurements file"?
06-13-2013 09:34 AM
Put the Write to Spreadsheet File function inside a case structure.
There is no easy way to change the number of digits using the Express VI. You'd have to convert the Express VI to a regular subVI through the Open Front Panel menu option. Then you'd have to drill down quite a few levels of subVI's and find where the format string is and change it. Then you'd have to save that entire hierarchy of subVI's under new names. I don't recommend any of this.
06-13-2013 10:02 AM - edited 06-13-2013 10:02 AM
Caution! This will change files in vi.lib. I suggest you rename and move the affeted vis (do not blame me if other things break)
Convert the express vi to a vi
Drill to here in the heirarchy
Change this constant format specifier
06-13-2013 12:02 PM
Jeff, I think I tried this method before...exactly what do I put in the string to output only 3 significant digits?
06-13-2013 12:23 PM
%.3g
06-13-2013 12:35 PM
does the semi colon stay?