LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Run button

Solved!
Go to solution

Hello everyone,

I have two questions for you:

  • First Q.:

I have Base Development System-Labview 2014. I try to create a run button for my user interface. I searched it on internet and I found this: https://www.youtube.com/watch?v=oMSFBQV67XE. A helpful man tells us how to create run button in Labview (Please look it!). This man clicked on  file-> new -> other files -> X-controls-> Facade2. When I want to open Facade2 in my Labview, I can't see it. I can click on file -> new -> Xcontrols. I don't have Facade2  below Xcontrols in my Labview. Do you know why ? Please tell me a reason if you know.(I want to create a run button that works similar to operating prenciple of run button on above link.)

  • Second Q.:

I want to create a run button by another way because I can't apply above method. Do you have another suggestion?

 

 

0 Kudos
Message 1 of 20
(3,574 Views)

Hi Pretty,

 

why do you think you need an XControl to run a VI?

 

What is the purpose of all those questions?

 

Usually you start a VI by using the run arrow in the edit menu, when in development environment.

After you created an EXE the EXE starts automatically…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 20
(3,555 Views)

I am experiencing De Jevu.

 

Didn't we live through this nightmare a few weeks ago?

 

Forget that video and learn how to create a state machine that presents a button that must be pressed before the state machine transitions to an active state.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 20
(3,543 Views)

Do some research on state machine architecture.

0 Kudos
Message 4 of 20
(3,540 Views)
Solution
Accepted by topic author prettywoman

@Ben wrote:

I am experiencing De Jevu.

 

Didn't we live through this nightmare a few weeks ago?

 


Some links to similar posts (I also recall a recent example, but can't seem to find it...):

Adding-Run-Button-to-VI

How-to-start-a-vi-without-using-the-run-button-on-the-top-left (links to first thread)

How-to-create-a-start-button-instead-of-clicking-on-Run

Creating-a-run-button

Most of these suggest the Run when Opened and then a State Machine architecture.


GCentral
Message 5 of 20
(3,504 Views)

I wonder if that thread got deleted?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 20
(3,495 Views)

See my reply to this recent similar thread.

 

I really wish somebody would take down this absolutely ridiculous video. All it does it waste valuable time, promote poor programming practices, and confuse newbies.

 

(Don't learn about xcontrols! They are basically obsolete technology and won't even exist in LabVIEW NXG)

Message 7 of 20
(3,490 Views)

@altenbach wrote:

See my reply to this recent similar thread.

 

I really wish somebody would take down this absolutely ridiculous video. All it does it waste valuable time, promote poor programming practices, and confuse newbies.

 

(Don't learn about xcontrols! They are basically obsolete technology and won't even exist in LabVIEW NXG)


Thank you Christian!

 

It was disturbing me that I could recall the video and thread but could not find the thread.

 

I can relax now thanks to you!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 8 of 20
(3,483 Views)

@Ben wrote:
It was disturbing me that I could recall the video and thread but could not find the thread.

Blame the forum. 😄 I only found the post after changing the search list to sort by most recent date. initially it was buried way down in the list.

Message 9 of 20
(3,471 Views)

@GerdW wrote:

Hi Pretty,

 

why do you think you need an XControl to run a VI?

 

What is the purpose of all those questions?

 

Usually you start a VI by using the run arrow in the edit menu, when in development environment.

After you created an EXE the EXE starts automatically…


1. No, I don't think to use X-controls. X-controls are complex for me. I am a beginner programmer for Labview. I was just searching how to create a run button and  this video is came out.

 2. I wonder the differences between my Labview system and his Labview system. He is working with X-controls and he finds Facade2 in his system, but I cannot see Xcontrols -> Facade2. I wonder why I cannot see Facade2 in my system. I just want to create a run button in my front panel without using top left corner arrow. That's all.

3. Do I need to a run button when I create an EXE? Is this button important for user interface? (Maybe ,it will make effective front panel?)

4. What happens when I create an EXE?  Will EXE automatically run when I do 'run when opened' in execution option? Is this enough for users?

 

0 Kudos
Message 10 of 20
(3,413 Views)