LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am trying to read in an ascii file and output it onto a waveform graph...

the ascii file has data such as 1.00, 3.06E-010 but it does not seem to recognize the (-) ? Any advice?
0 Kudos
Message 1 of 31
(4,338 Views)
Advice:

Post more details like the format of the file (delimiters, organization, etc), how you are reading the file, any errors, etc, and most importantly, the facts that lead you to the "does not seem to recognize" conclusion.

As a string I can get "3.06E-010" to convert to 3.06E-10 (double) quite nicely. Are you sure LabVIEW is not just displaying it as zero because the number is so small?

Good Luck.
0 Kudos
Message 2 of 31
(4,334 Views)
There are no errors reading in the file but the output on the graph shows just a linear increase which is wrong. The format is just an ascii file with points structured as:
1.00, 3.06E-10 and so on. Any help?
0 Kudos
Message 3 of 31
(4,334 Views)
Post your ascii file, please.
0 Kudos
Message 4 of 31
(4,334 Views)
Here's the ascii file... I just need it to output onto a wavegraph using labview ignoring all the headers. Thanks.
0 Kudos
Message 5 of 31
(4,334 Views)
Given the format of your data, you dont want to use a Waveform graph, you want an XY graph. You want an XY graph because you have X data and Y data. You could use and Waveform Graph, but you would throw half of your data away.

I suspect the reason you are seeing a linear increase of your data is because you are only looking at the X values, which, oddly enough, are increasing linearly.

Take a look at the attached VI and see if it does what you expect.

Good luck.
0 Kudos
Message 6 of 31
(4,334 Views)
Here's another way of parsing out the data. Basically arrives at the same thing as VIGuy suggested.

Good luck.

Tim
0 Kudos
Message 7 of 31
(4,334 Views)
Thanks for you help, I am still running on LV6.0 so can you please send me an older version of your code? Thanks again.
0 Kudos
Message 8 of 31
(4,334 Views)
Here's the 6i version
0 Kudos
Message 10 of 31
(4,086 Views)