08-26-2025 09:10 AM
Hi all,
Well my main motive is to create a labVIEW code which will extract the txt data and blow all the results on waveform Graph but when I get 2d data in array all data is matching with txt file but not showing the correct data on waveform graph as on x-axis its has to be absolute time but it seems like it stuck in seconds as you can see in txt file, time is just number. Also, in y-axis we got pressure values which is in exponential but on graph it is showing weird values so can anyone tell me what to do.
For the reference, please find attached txt file(test result) and VI
Solved! Go to Solution.
08-26-2025 09:55 AM
Waveform graphs assume uniformly spaced samples. If you wire an array to a waveform graph, you have to specify the spacing explicitly, otherwise it defaults to 1 second spacing.
The txt file contains a header. The actual data starts 33 rows in. So you have to ignore the first rows.
If you have exponential formatting, you need to tell that to Read Delimited Spreadsheet. Use %.;%e for locale-independent decimal separator.
You end up with something like this:
08-26-2025 10:22 AM - edited 08-26-2025 11:55 AM
@zb wrote:
...s on x-axis its has to be absolute time
EDIT: actually your times are only approximately a linear ramp, so you need to use an XY graph if that small deviation from linear really matters)
08-26-2025 10:59 AM - edited 08-26-2025 11:58 AM
@cordm wrote:
If you have exponential formatting, you need to tell that to Read Delimited Spreadsheet.
Actually, %f (or %.;%f) will read the exponential format just fine.
(I have never seen exponent fields that are zero padded to three digits, but they get parsed correctly)
08-28-2025 03:41 AM
Thank you. It is working fine now.