02-15-2021 11:49 AM
I am creating a strip chart to display a signal. When a predetermine amplitude is reached, I would like to continue displaying signal for period of time before halting. I created a simple VI, but when the trigger point is reached, the signal display continues only for a brief time
Solved! Go to Solution.
02-15-2021 11:59 AM - edited 02-15-2021 12:01 PM
Your wait prevents the loop from spinning. Use e.g. the elapsed time express VI.
02-15-2021 12:13 PM
Tried the Elapsed Time Express VI, but got the same result
02-15-2021 12:18 PM
02-15-2021 12:22 PM - edited 02-15-2021 12:31 PM
@Larry_Kubier wrote:
Tried the Elapsed Time Express VI, but got the same result
You should really look at the help and examples. In your code, the elapsed time express VI just gets initialized, then the VI stops. You need to initialize when the condition occurs the first time, then continue spinning the loop until the express VI returns that that time has elapsed.
Also note that there is no reason for the sequence structure. It makes no difference!
02-15-2021 12:44 PM
Here's how to correctly use the elapsed time express VI.
(I prefer non-express Vis, though 😉 )
02-15-2021 12:59 PM - edited 02-15-2021 01:00 PM
Here's a cleand up version of my first code.
02-15-2021 01:24 PM
Of course you would wrap the entire thing into a resettable subVI, such as follows:
(Leave as non-reentrant if multiple instances should trigger a global condition or make it reentrant so each instance has it's own condition. Your choice.)
02-15-2021 02:24 PM
Thanks everyone. I did not fully understand the usage of the Elapsed Time Express VI