LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using event structure with ADSOCX read

I am new to event structures but I like what I am seeing. I have a loop that grabs a picture from a camera and processes the picture only when a bit is true from Beckhoff Twincat PLC (using ADSOCX to read the memory location) My attempts at using this with an even structure has not proven fruitful. Any help would be appreciated see attached document
0 Kudos
Message 1 of 4
(2,988 Views)

You have an event case where Beckhoff Camera Read Input value change.  How is that event being fired?

 

Beckhoff Camera Read Input is an indicator, so there is no way user interaction can trigger it.  Only by using a Value (Signalling) property node will that event occur, and I don't see that in your code.

 

(Please don't post screenshots in word documents.  Attach an image as a .png file.  Or better yet, attach the actual VI)

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

The ADSOCX is reading the memory location of the boolean from Beckhoff's Twincat PLC which is programatically changing the value.  It is not a user event.  I've attached the VI as requested.

0 Kudos
Message 3 of 4
(2,919 Views)

From what I am seeing, I think you would benefit a lot more from a State Machine architecture.  You can have a state to look for the input boolean and progress to the read state when true.  If false, just call the same state.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(2,912 Views)