LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform graph and waveform chart

Solved!
Go to solution

Run WHILE loop for 100 iteration (1 iteration per second), the loop will stop automatically after 100 sec and the data in waveform graph and waveform chart should be same at the end. The Graph should display/update the data similar to chart in every iteration.

 

0 Kudos
Message 1 of 13
(1,174 Views)

Hi tan,

 


@tan0709 wrote:

Run WHILE loop for 100 iteration (1 iteration per second), the loop will stop automatically after 100 sec and the data in waveform graph and waveform chart should be same at the end. The Graph should display/update the data similar to chart in every iteration.


This sounds like homework: what have you tried and where are you stuck?

The task is quite simple...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13
(1,172 Views)

tan0709_0-1708075950900.png

This is what i tried. It seems like i have to show continuous and history data too in a waveform graph. This is where i am stuck.

 

0 Kudos
Message 3 of 13
(1,169 Views)

tan0709_0-1708075950900.png

This is what I tried. It seems like I have to show continuous and history data too in a waveform graph. This is where I am stuck.

 

0 Kudos
Message 4 of 13
(1,168 Views)

Hi tan,

 


@tan0709 wrote:

This is what i tried. It seems like i have to show continuous and history data too in a waveform graph.


You need to use a shift register and a BuildArray function to build the array for your graph.

 

While you might use ElapsedTime to stop the loop after the time has elapsed you might also run the loop simply for 100 iterations: the stop condition reduces to a simple comparison function.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 13
(1,155 Views)

tan0709_0-1708078734142.png

are u talking about this? this is still not working.

0 Kudos
Message 6 of 13
(1,124 Views)

Hi tan,

 


@tan0709 wrote:

are u talking about this? this is still not working.


Not exactly...

 

Right now you create an array of just one element. But instead you should create an array of increasing number of elements by appending the new element to the exisiting array!

Hint: use the shift register output at the left side of the loop!

 

Another hint: THINK DATAFLOW! When your graph should display the plot already inside the loop then your should place its terminal inside the loop...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 13
(1,115 Views)

tan0709_0-1708080562749.png

still not working

0 Kudos
Message 8 of 13
(1,108 Views)

Hi tan,

 


@tan0709 wrote:

still not working


Because you still create an array of exactly one element.

 

I told you you need to append new elements to already existing elements of the array!

Another hint: you can resize BuildArray to have two inputs: one for the "existing elements" and one for the "new element"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 13
(1,102 Views)

Can u solve it? I have started learning labview this month itself.

tan0709_0-1708322639603.png

I tried doing this, but i want an array to hold 100 instance data, this is just 10.

0 Kudos
Message 10 of 13
(1,058 Views)