11-25-2024 10:30 AM
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.
11-25-2024 10:48 AM
Link to example software download here, under "Download" tab:
11-25-2024 11:27 AM
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.
Also, you are abusing sequences. You should create a sequencer.
11-29-2024 10:38 AM
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.