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: 

Simulating button clicks in sub panels

Solved!
Go to solution

Hi All,

 

I want to simulate click for buttons (with latch mechanical action) that are in sub panel VI so as to trigger its action.But I couldn't achieve it in the way I can simulate a click for any other buttons in the Main VI. I have attached a sample program to explain my problem,please let me know what is my mistake.

 

Thanks in advance,

S.G.Sree Ranjani.

0 Kudos
Message 1 of 10
(3,252 Views)
I didn't see the code

But you can register for a user event (Use event structure) in the main vi And then trigger it in the sub Vi that you call in the subpanel.
Regards
Guru (CLA)
0 Kudos
Message 2 of 10
(3,230 Views)

Hi Guru,

 

Thank you but I need to simulate this Click action without making any changes in the VI which I call in sub panel.

 

Regards,

Sree

0 Kudos
Message 3 of 10
(3,181 Views)

It's an interesting problem.  I downloaded and tried to make it work but was unsuccessful.  I'm only posting to let you know you're not alone in trying this. 🙂

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 10
(3,156 Views)
Solution
Accepted by topic author SreeRanjani

just a minor mistake.

Jim you missed it.

Here you go.

Message 5 of 10
(3,130 Views)

Thanks Neos,

 

I hope this solution will work can you please explain why this change should be made.

 

Regards,

Sree

0 Kudos
Message 6 of 10
(3,087 Views)

SreeRanjani wrote:

I hope this solution will work can you please explain why this change should be made.


Your post does NOT contain the solution and should not be marked as such.

Please mark the most helpful post as solution, not your own!

0 Kudos
Message 7 of 10
(3,077 Views)

Sorry,

I marked my post instead of the previous post

0 Kudos
Message 8 of 10
(3,069 Views)

Hi Neos,

 

Your Solution is working , can you please explain me why the change is made and how it is working now.

 

Regards,

Sree

0 Kudos
Message 9 of 10
(3,014 Views)

@SreeRanjani wrote:

Sorry,

I marked my post instead of the previous post


You can easily correct that at any time, so please do.

0 Kudos
Message 10 of 10
(2,995 Views)