LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with strip chart display

Solved!
Go to solution

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 

0 Kudos
Message 1 of 9
(4,031 Views)

Your wait prevents the loop from spinning. Use e.g. the elapsed time express VI.

0 Kudos
Message 2 of 9
(4,025 Views)

Tried the Elapsed Time Express VI, but got the same result

 

 

Larry_Kubier_0-1613412803584.png

 

0 Kudos
Message 3 of 9
(4,008 Views)

Here's a quick draft. See if it makes sense.

 

 

0 Kudos
Message 4 of 9
(4,004 Views)

@Larry_Kubier wrote:

Tried the Elapsed Time Express VI, but got the same result

 

 

Larry_Kubier_0-1613412803584.png

 


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!

0 Kudos
Message 5 of 9
(3,997 Views)

Here's how to correctly use the elapsed time express VI.

(I prefer non-express Vis, though 😉 )

 

 

0 Kudos
Message 6 of 9
(3,986 Views)
Solution
Accepted by Larry_Kubier

Here's a cleand up version of my first code.

 

  • You only need to build the array once, you can branch later.
  • Try to avoid all these duplicate diagram constants.
  • Feedback nodes are easier here than shift registers.
  • When attaching code, fill all controls with typical default values.
  • etc.

 

altenbach_0-1613415524142.png

 

0 Kudos
Message 7 of 9
(3,979 Views)

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.)

 

altenbach_0-1613416872808.png

 

0 Kudos
Message 8 of 9
(3,942 Views)

Thanks everyone.  I did not fully understand the usage of the Elapsed Time Express VI

0 Kudos
Message 9 of 9
(3,933 Views)