06-18-2020 09:08 PM
Hi
I am getting 4 waveforms from my program, 2 time domain and 2 frequency domain. Currently I have to save them manually. What I need to do is make it automatic so that when I run the program it saves the 4 waveforms every 10 seconds. Is that doable? Can anyone please help?
06-18-2020 09:12 PM
Hi mna,
@Beginnermna wrote:
What I need to do is make it automatic so that when I run the program it saves the 4 waveforms every 10 seconds. Is that doable?
Yes 🙂
@Beginnermna wrote:
Can anyone please help?
It would be easier if you could add your code. Then we can make better suggestions as to what you should add and where.
Also, how do you want to save them? E.g. TDMS, binary, csv as text, ...?
06-18-2020 09:21 PM
Please have the code
06-18-2020 10:53 PM
@Beginnermna wrote:
Please have the code
I opened your block diagram. Then I closed it right away. It's way too messy for me to deal with.
06-18-2020 11:08 PM
I abhor messy code. I cleanup up one of your subVIs (Sum Waveforms .vi) just to illustrate the difference between clean and messy code.
Here is your original:
Here it is after I cleaned it up:
06-18-2020 11:38 PM
I cleaned up one more. The original:
Inexcusably bad.
Cleaned up:
06-19-2020 12:46 AM - edited 06-19-2020 12:47 AM
Hi Beginnermna,
@Beginnermna wrote:
What I need to do is make it automatic so that when I run the program it saves the 4 waveforms every 10 seconds.
The code really is bad…
One more cleanup (RollingAverage):
Hint: In case of "Rolling Average"=FALSE the average calculation might be wrong…
After implementing all those cleanups you should learn to use the ElapsedTime ExpressVI: it will give you a simple way of getting a boolean TRUE signal after each 10s…
06-19-2020 10:58 AM
Hello
Thanks for your help. Can you please tell me where I can find the Elapsed Time Express VI?
06-19-2020
11:28 AM
- last edited on
10-09-2024
03:30 PM
by
Content Cleaner
@Beginnermna wrote:
Hello
Thanks for your help. Can you please tell me where I can find the Elapsed Time Express VI?
The VI can be found under the Express VIs palette when right clicking on the block diagram, in the Execution Control subpalette.
Documentation can be found online here: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/express/express-execution-control/e...
06-19-2020 02:10 PM
Hi beginner,
@Beginnermna wrote:
Can you please tell me where I can find the Elapsed Time Express VI?
Have you had a look into the time functions palette?