LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger case structure using OPC variable

Hi,

 

I am using OPC to communicate Labview with a Siemens PLC. One memory location from the PLC will work as a flag that triggers a case structure in Labview.

However I only want to trigger that case structure once.

 

So far the vi seems to work but the case structure just keeps on executing because I do not know a way to use the flag of the PLC as a edge trigger.

 

Could anyone help me please?

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

OpenG toolkit actually has a Boolean Trigger which may be useful. Here is a simple implementation with shift registers. I'll let you fine tune it if you only want it on the rising edge 🙂

 

temp.png

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

If you are feeling stuck I would search more specifically for LabVIEW FPGA rising edge detection. It is something that is done pretty often in FPGA and there are some really clever implementations. A lot of the examples will use feedback nodes which will make it really easy to put in a subVI as well.

Matt J | National Instruments | CLA
0 Kudos
Message 3 of 4
(2,910 Views)

Thanks a lot man! I didn't know about openg libraries, the boolean trigger over there saved me.

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