From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get a digital WDT that includes all samples, not just the one for the current time step...?

Solved!
Go to solution

See block labeled ''digital data'' in my attachment for reference. Currently, only the digital data point for the current time step can be seen (it is deleted before the next one appears). However, I would like it display all the samples in the table like in the example found at this link under ''Digital Waveform Control'':

 

http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/fp_controls_indicators/ 

 

Many thanks for any suggestions! I am new to Labview, so I appreciate your help.

0 Kudos
Message 1 of 3
(2,073 Views)
Solution
Accepted by topic author westerman111

Hey westerman111,

 

If you're looking to produce have your display include the solution information from previous solver steps, you will need to buffer the previous data. The way to implement this in a Control Design & Simulation Loop is using the Memory.vi found under Control Design & Simulation > Simulation > Utilities > Memory.vi. It will allow you to save previous information generated in the simulation environment for letter solution steps.

 

I've attached an example that should get you started in using the Memory.vi.

 

I would also make sure that what you're looking to accomplish is suitable for the Control & Simulation Loop. I know you mentioned you were new to LabVIEW so I wanted to make sure you were heading off in the right direction. Is there a particular reason why you are using the Control & Simulation Loop instead of a standard While or For Loop? The Control Design & Simulation loop is unique in that it calculates the solution of a dynamic system at a prescribed time step and ODE solver. It also provides the tools to interact with the model you are solving during execution. However, if you are simply looking to perform data acquisition and measurements (instead of dynamic model simulation) I would recommend using standard LabVIEW functions.

 

Here are some useful references for getting start with both LabVIEW and the Control Design and Simulation Module.

 

Tutorial: Getting Started with Simulation (Control Design and Simulation Module)

http://zone.ni.com/reference/en-XX/help/371894G-01/lvsimhowto/sim_h_gs/

 

Getting Started with LabVIEW

http://digital.ni.com/manuals.nsf/websearch/ba2fb433a7940e7a862579d40070cc2c

Tim A.
Message 2 of 3
(2,040 Views)

Thank you! That is exactly what I was looking for.

0 Kudos
Message 3 of 3
(2,014 Views)