LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with trigger programming

Hi all, 

 

I hope you are all well. The attached is the VI I'm working on. Apparently, it's a VI that a certain measurement is triggered by one particular sensor. I have to admit, it is only a very initial version and my idea is applying Event structure to activate the following action. The problem is, as I give a high pressure to the first sensor which is on, the 'Digital Edge Task' is not activated. Anyone knows the reason? Any better suggestion about my VI? I have studied many trigger examples, but I still can't conclude anything. 

0 Kudos
Message 1 of 3
(833 Views)

Hi Chang,

 

just some advices, more details based on what you actually need,

 

1. The initialization should be place out side of the loop, ideal would be put only the read/write functions in the loop, the configuration can be place in- or ourside the loop

2. Both channel should be initialize before all the tests starts, only the read/write functions should be place in a loop or case struce for when the action is to execute.

3. Better put two loops for two tasks, one for monitoring the physical channel 1, another one for the physical channel 2.

4. The one with sensor, you can get the edge-state boolean value saved in local variable, and read out from another loop with your case structure. 

Message 2 of 3
(829 Views)

Tanks for replying. I will try to do as you suggest and see if it works. 

0 Kudos
Message 3 of 3
(770 Views)