LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timing of graphs

hello, i'm having trouble getting the time on the graphs x-axis to shows the real time. It seems to be the time delay function that messes with the graphs, but the time delay is an important part of the programme. How can i get the graphs to show the real time, and still plot the graphs with more than one point per second. 

 

Hope someone can help.

 

Christian 

0 Kudos
Message 1 of 2
(1,123 Views)

Hi au,

 


@au123456 wrote:

 It seems to be the time delay function that messes with the graphs, but the time delay is an important part of the programme


Wow, do you really need MathScript nodes, Matlab nodes, ExpressVIs, and other strange stuff in a simulation loop?

And yes, the timing in the loop (probably) is enforced by those two Stall.vim calls…

 

Suggestion:

  • Replace the simulation loop by an ordinary while loop. I see here no reason for "simulation"…
  • It seems both Matlab nodes do the same calculation: place them in a subVI and call the subVI two times…
  • Check if you can replace the Matlab nodes by plain LabVIEW functions.
  • Do you really need that MathScript node for calculations? Can you replace it with plain LabVIEW functions?
  • Replace that FromDDT, ToDDT, FromDDT dance by a single FromDDT function and set it to the needed output datatype! Place that single FromDDT more upstream the dataflow, so your calculations are done with just a scalar DBL datatype!
  • Combine both AO DAQAssistents into just one DAQAssistent.
  • Even better: learn to use simple DAQmx functions and get rid of all 3 DAQAssistents in your loop!
  • No need for ExpressVIs just to calculate a Mean: there's a Mean function available!

 

Best regards,
GerdW


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