LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store the simulation data

Hi,
I am using Labview 7.1 and simulation module 1.0 to solve 12 ODEs. I have used Formula Node into the simulation loop and used integrator to give the feedback. I am trying to save the simulation data output in an array but I am not able to store the complete data. Only the final valu is displayed. I want the plot of the value with time for all the intermediate steps of simulation.
 
regards,
 
Rashmi
0 Kudos
Message 1 of 4
(3,104 Views)

Rashmi,

You can use a Simulation VI called "Collector". What it does is store in input of this block internally until the simulation ends. You can use a XY graph to see the whole simulation.

Let me know if that doesn't work for you.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 4
(3,082 Views)
Hi, I tried to use Collector but the XY graph could not be connected to it as it was giving error.(Not matching data types) I was not able to connect any Graph indicator to that. I would like to store the data as 2D array(value, timestep) also. How can I do that? Rashmi
0 Kudos
Message 3 of 4
(3,036 Views)
Hi Rashmi,

The reason you get that error is that the output of the Collector is the Dynamic Data Type.  For more information on how to use this type of data, see the LabVIEW Help under Fundamentals >> Building the Block Diagram >> Concepts >> Express VIs, and scroll down to "Converting from Dynamic Data." 

You may also be interested in the solutions posted in this thread.

Try playing around with things a bit, be sure to look in the LabVIEW help and the example finder (both found under the Help menu), and don't forget to use the context help (Ctrl-H)!

Brian A.
National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,017 Views)