LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure basics

Greetings,

 

I'm having some basic issues with case structures. Can anyone tell me what kind of "bonehead" mistake I'm making?

I know my counter works. What I would like to do is the following:

 

1.when the program starts, wait for stg vac signal (2nd case)

2.when stg vac signal appears, start counter acquisition (3rd case)

3.when stg vac signal is gone again, stop counter acquisition, and wait for another stg vac signal

 

Here's a copy of my "vi"

 

thanks!!

0 Kudos
Message 1 of 4
(2,979 Views)

Your code is inside out. The case structure belongs inside the loop.

 

Currrently, the code in the start case executes and then the VI completes. All over!. Think dataflow!

0 Kudos
Message 2 of 4
(2,974 Views)
You could also benefit from some tutorials. What you are looking for is a simple state machine.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 4
(2,944 Views)

kindly downgrade to LabVIEW 2013 or less the code and attached in the thread.

0 Kudos
Message 4 of 4
(2,926 Views)