LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I put upper limit and lower limit on graph inside a while loop?

Solved!
Go to solution

Also sorry for asking so much. But this is a picture of what i tried to do for the timing,but why does this time not starting from the front?

0 Kudos
Message 31 of 37
(3,200 Views)

Ohh thanks that link sure is helpful. But would that be useful still if i have to get 2 or more data rather than just 1? Like currently I might also needa get a few more graphs out already. Like voltage, current and power.

0 Kudos
Message 32 of 37
(3,187 Views)

Hi HanKiat, 

 

You might need to reinitialize your graphs to empty them first everytime you stop and restart your program. That might help in making the graph starts at current time. 

 

Yes, you just need to bundle the signals with the time and output to the graphs (If you are outputing the signals to separate graphs), or you can bundle the signals up, then bundle with the time, then output the signals in a single graph. 

 

Try to work it out, I'm sure you can do it. 

 

Cheers, 

DS Yiauw

D.S Yiauw
National Instruments | ELP Engineer
CLAD
Message 33 of 37
(3,177 Views)

Hey, I reset the graph and all but still the results has a little problem,there is still a gap in front. As you can see in the picture below.

0 Kudos
Message 34 of 37
(3,141 Views)

Hi HanKiat, 

 

Try using waveform charts, I've tried and it is working with no gaps in front. 

D.S Yiauw
National Instruments | ELP Engineer
CLAD
0 Kudos
Message 35 of 37
(3,128 Views)

Lol I wonder what I did wrong here... once I changed it to a waveform chart, the results produced became like that, though the time problem is fixed.

0 Kudos
Message 36 of 37
(3,083 Views)
Solution
Accepted by topic author HanKiat

Hi HanKiat, 

 

Sorry for the late reply, I just noticed your reply this morning. 

 

For the waveform chart, the problem lies within the scaling for the X axis. Try modifying the X axis scaling and fix it to a certain range instead of using Autoscale. That should fix it. 

 

Hope it helps! 

 

D.S Yiauw
National Instruments | ELP Engineer
CLAD
Message 37 of 37
(2,864 Views)