LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

suggestion...

hi all... i'm using labVIEW 7.1

Got a question here... depend on the attachment... got any build in function in labVIEW can read it out and display on a waveform graph? (of course not include those string above "index").
I tried to find out those examples in labview, but seem like those can't solve my problem...

so... any suggestion here?

best regard
Jaxx
0 Kudos
Message 1 of 11
(3,142 Views)
Hello @,

hope this helps,

GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(3,128 Views)
It work very well!!!
thanks for your help GredW!!! 🙂

Jaxx
0 Kudos
Message 3 of 11
(3,099 Views)
Erm... hello GredW...
Have a request here... 😛

Can you explain your VI to me? Because I'm not very understand about your VI although it work very well 🙂

thanks!

best regard
Jaxx
0 Kudos
Message 4 of 11
(3,088 Views)
Hi... GredW...

Is me again... 🙂 sorry about keep bothering you... but i wish to know something, hope u can answer it.

When I test your VI I found that if I replace the waveform graph to a waveform chart, the function(Stack Plots) of waveform chart doesn't work, is it this relate with your VI?

please let me know the reason, thanks!

with regard
Jaxx
0 Kudos
Message 5 of 11
(3,081 Views)
Hello @,

the vi is rather simple:
It uses "Read lines from file" from the file palette. First it reads the header (12 lines), then in a while loop one line after the other. These single lines are converted to numbers by "Scan from string" using the formatstring "%d %f %f %f" as you have 4 numbers per line (decimal index and 3 float numbers). By using autoindexing these numbers are collected in arrays and then displayed in a graph.

About stacking:
I had to look for this right now, as I forgot how to do this...
You have to use a waveform chart. Then switch plot stacking on. Then set the plot legend to show the number of plot you want to stack. Et voila...
In short: the number of entries in the plot legend equals the number of stacked plots in the chart.

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(3,066 Views)
Hello @,

again on stacking:
after playing around with the vi I discovered: when changeing the way you supply the data to the wavefrom chart the chart automatically adjusts to the number of plots. Have a look at the vi...

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 11
(3,061 Views)
thanks for your clear explaination... 🙂

with regard
Jaxx
0 Kudos
Message 8 of 11
(2,946 Views)
Hello GredW...

I got what you mean...

But from your VI, I found the x-axis of the wave chart read my data one by one and auto increase the data number until the end of my data (so in the end the waveform chart only display the last few data)... from your first posted is it same with this situation?

Because what I need is show all my save data in a waveform chart with stacking it to be several plots.

with regard
Jaxx
0 Kudos
Message 9 of 11
(3,052 Views)
Hello @,

for me the chart shows the whole waveform... Perhaps you have to change the history length. It should be equal or greater than the number of points to display - in your case (sample file) the minimum is 1000. Standard history length is 1024.

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 11
(3,048 Views)