LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Start button not working

Hi guys,

 

I have a problem with "Start" Button on labview. When I click it the tool dont work and stay on "true".

 

cliccato.png

 

 

non cliccato.png

 

Im sure is not issue of code, because I tried this tool on several pc and always worked.

 

Thanks in advance

0 Kudos
Message 1 of 9
(1,466 Views)

Hi Scrizzo,

 


@Scrizzo88 wrote:

I have a problem with "Start" Button on labview. When I click it the tool dont work and stay on "true".

 

Im sure is not issue of code,


This is not a "Start button on LabVIEW", it is a button labelled "Esegui" on your "tool" (VI or EXE?) created with LabVIEW!

 

I guess the problem is in your code: it seems it somehow does not process the button value change event…

 


@Scrizzo88 wrote:

I tried this tool on several pc and always worked.


So the problem is that specific computer…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(1,450 Views)

Hi GerdW, 

Thanks for your help. Yes, my bad on explanation. The tool is an exe

 

Yes, seems the tool don't "catch" the value change.

 

Any possible solution?

0 Kudos
Message 3 of 9
(1,441 Views)

@Scrizzo88 wrote:

Any possible solution?


Debug your tool so you know why it doesn't handle that button when running on this specific computer!

 

General answer: as long as you don't provide any substantial information we cannot help you with your issue!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(1,427 Views)

Have you seen your app beign stucked somewhere thus making the button not working (in the init for example)?

Has this app even once worked on that computer ?

 

Please try to attach your VI if you want some help. We are blind with screen partial pictures.

0 Kudos
Message 5 of 9
(1,412 Views)

I'm assuming that this is a Boolean control.  All LabVIEW Boolean controls have a "mechanical property".  The ones on the Boolean Palette that are rectangular (like yours, which include Stop, OK, and Cancel) have the mechanical property "Latch when Released".  This means that when you push them, they stay "pushed" until you read them, when they reset to their default value (False, in most cases).

 

Square Booleans (with this Latch property) are designed to work inside an Event Structure, with the control itself placed inside the Event so that it is reset only when the Event "fires".

 

If you want to change the Mechanical Action of your Esequi button, right-click it on the Front Panel, select "Mechanical Action", and choose which one you want (probably "Switch when Pressed", from your question).

 

Bob Schor

0 Kudos
Message 6 of 9
(1,404 Views)

@Bob_Schor wrote:

 

If you want to change the Mechanical Action of your Esequi button, right-click it on the Front Panel, select "Mechanical Action", and choose which one you want (probably "Switch when Pressed", from your question).

 


I think the problem that the OP is having is that it works on one computer but not another. "because I tried this tool on several pc and always worked."

My first guess, and that is all we can do is guess, is that the computer that is not working is missing drivers. The computer that is working is probably the development machine. But that doesn't explain the "several" part of the above statement.

 

To the OP: Is the code for "tool" developed by yourself? If it is, can you share it? What does this tool do? (IE gather data from instruments? Or maybe read files for data analysis?...)

 

 

---------------------------------------------
Certified LabVIEW Developer (CLD)
0 Kudos
Message 7 of 9
(1,396 Views)

@Frozen wrote:

@Bob_Schor wrote:

 

If you want to change the Mechanical Action of your Esequi button, right-click it on the Front Panel, select "Mechanical Action", and choose which one you want (probably "Switch when Pressed", from your question).

 


I think the problem that the OP is having is that it works on one computer but not another. "because I tried this tool on several pc and always worked."

Oops -- sorry I missed that!  We need to see the code (and have our morning coffee).

 

BS

0 Kudos
Message 8 of 9
(1,387 Views)

I agree.

 

Obviously, this seems to be a latch action button and one PC encounters a condition where the terminal is not in the dataflow for some reason. Where is the terminal located? Inside a case structure? Does it eventually reset, just much later?

 

What else is different on that computer? Does it otherwise work correctly (i.e. it is only a cosmetic problem)? Do you do proper error handling? 

 

If it is a switch action button and it gets reset via a local variable, maybe there is a race condition that microscopically changes the execution order on hardware with e.g. more cores.

 

We need to see a simplified version of your code.

0 Kudos
Message 9 of 9
(1,371 Views)