LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use continous Simulate Signal data in Control&Simulation Loop to model spring-mass system

Hi, I would like to know how to use simulate signal as a input to my spring mass system in control&simulation loop. I´ve tried everythig that I think would help but it just doesn´t work - the waveform chart in cont.&sim. loop shows nothing during simulation.

0 Kudos
Message 1 of 3
(208 Views)

Very hard to work with pictures.  Please:

  • Tell us about your LabVIEW setup.  Mention Operating System, LabVIEW Version (year and # bits).
  • Tell us about your LabVIEW experience.  How many days, weeks, months or years have you been using LabVIEW?
  • Attach the VI or VIs that comprise the "code that does not work".
  • Because some of us won't have the Control and Simulation package loaded, tell us (in words, or with a picture (sorry) of a compact and neat version of the Timed Loop in your picture (run the wires as straight as reasonable, and keep the wires shorter).

Bob Schor

0 Kudos
Message 2 of 3
(184 Views)

Have you done any simple tutorials about dataflow yet?

 

  1. There is no reason for the outer sequence structure.
  2. Your inner sequence structure has no purpose. the stop button will get read in parallel to the sequence execution anyway.
  3. Going from dynamic data to waveform, back to dynamic data and then to a 1D DBL array is a bit circuitous. You already have the last Y array.
  4. remove your local variables and wire the control terminals directly. These local variables are completely pointless.
  5. Your lower loop depends on data from the upper loop and thus cannot start until the upper loop has completed, at which point it will get the result of the last.
  6. etc. etc.
0 Kudos
Message 3 of 3
(163 Views)