From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic button press

Hi everyone,

 

I have a "Flat sequence structure" as shown below.

automatic_button_press.png

on the second "frame" I have an "OK" button.

this OK button is triggering an event.

 

I want the button will be pressed once automaticly when the program enters to the second frame.

Do you have a nice solution?

 

I thought to change the event to "change value" and to  make a property node

"value (signaling)" that getting value from text file. I think that my solution isn't elegant.

 

maybe you have a better solutions?

 

thank you very much

 

 

 

0 Kudos
Message 1 of 4
(3,281 Views)

You're right, that probably wouldn't be an elegant solution.

 

The questions are:

  Why is the terminal for that button in that frame?

  Why is there even a control?

  You say that you might change the event to a "Value Change" event ... what is it right now?

  What do you really need to do?  Raise an event that is handled by an Event Structure?

 

If you just need to raise an event that will be handled by an Event Structure, then I think that a User Event is the proper solution.



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

I am using frames because I want to control the order of the events.

 

I have a pretty big program that controled by event structure.

 

Originally, this program was driven manually by the user.

 

but I want to use this program automaticaly.

 

my question is if you have a solution for making an automatic button press.

 

thank for all helpers

 

 

0 Kudos
Message 3 of 4
(3,263 Views)

You still don't make a lot of sense. It would probably help to attach the actual VI instead of a highly truncated picture.

 

What is the mechanical action of the button?

Do you really need to press the button programmaictally or would it be sufficient to simply triger the same code parts as if somebody had pressed the button?

Why do you need the FOR loop?

0 Kudos
Message 4 of 4
(3,256 Views)