LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automate button click for event case trigger

Hi all,

 

I am using LabVIEW to automatically control a BEAMAGE-4M Gentec beam profiling camera.

 

I am modifying the existing code that Gentec provides for this camera (see attached), which controls the "PC-Beamage" software it otherwise uses. Their code uses a sequence of case structures to react to button presses on the Front Panel. I essentially want to be able to control these buttons to capture images at many (hence the need to automate) motor stage positions. To be able to save an image, one must first press "Stop Capture" then press "Save Current Image", before then pressing "Start Capture" again, for reference.

 

I have tried automating these button presses / clicks, particularly for the "Save Current Image" button, by writing over the local variable they have created for it (setting it to true, then back to false).  However, this does not seem to function as the button presses do. I feel as though I must be missing something obvious?

 

Thank you for your time and help.

0 Kudos
Message 1 of 4
(143 Views)

Link to example software download here, under "Download" tab:

 

https://www.gentec-eo.com/products/beamage-4m

0 Kudos
Message 2 of 4
(129 Views)

Writing to local variables doesn't trigger events.  You can trigger a control's Value Change event by writing to it's Value (Signaling) property.

paul_a_cardinale_1-1732555585518.png

 

Also, you are abusing sequences.  You should create a sequencer.

0 Kudos
Message 3 of 4
(106 Views)

Brilliant, thanks! The Value Signalling worked as planned.

 

I will need to have a look at the Sequencer as trying to optimise the run speed of the code with the current sequence stack will be challenging.

0 Kudos
Message 4 of 4
(49 Views)