09-23-2009 08:48 PM
Hi,
I am trying to determine the maximum value when running a CD and Simulation loop. I know if using another type of loop, I could use a shift register and continue to build an array, but I can't seem to form a shift register with the CD and Sim loop. My CD and Sim loop has 100 iterations. Is there any way I can log all 100 values into an array?
Thanks
09-23-2009 08:54 PM
09-23-2009 09:03 PM - edited 09-23-2009 09:04 PM
So I should probably have mentioned that I am a labview novice....
If I use the build array function inside of the CD and Sim loop it will only store the last value. I have verified this bychecking the size of the array and it returns a value of 1.
09-23-2009 09:09 PM
09-23-2009 09:12 PM
I have posted the VI. The value that I have labeled as "VITAL VALUE" is the one that I am trying to get the maximum for. It is displayed on the graph in red.
Thanks!
09-23-2009 09:16 PM
could you post it as 8.6?
09-23-2009 09:20 PM
Ooops,
Sorry about that. Hopefully this one will work a little better.
05-10-2017 09:00 PM
hi guys .. didnt found any relative thread to post my problem hence posting here only... sorry for that.
i want to take an output value out of the simulation. is it possible?
05-11-2017
10:58 AM
- last edited on
05-30-2025
09:33 AM
by
Content Cleaner
Hi JUSTBEGINE,
Since this thread is older, you would probably be better served creating a new post for issues like this in the future. As for your immediate question: Yes, you can pass a value out of a Control & Simulation loop like you'd pass any other value out of a loop in LabVIEW. If you're unfamiliar with how to do that, here's some getting started information about using loops in LabVIEW: https://www.ni.com/en/support/documentation/supplemental/08/labview-for-loops-and-while-loops-explai...
In addition, you should be able to find examples in the Example Finder (Help >> Find Examples >> Control and Simulation) regarding how to do this.