LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controls problem (with positions change) :LabVIEW

Hi,

All are controlls, but when I want to change the value don't work.

Download All
0 Kudos
Message 1 of 5
(733 Views)

@Petros_Baghalyan wrote:

Hi,

All are controlls, but when I want to change the value don't work.


The Moment you click on the control it hits the Mouse Enter Event and executes the Event with For Loop for Position change.

 

if you want that Cluster Control animation it can be included at the VI Execution starts.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(712 Views)

Your problem is that when you enter the control you trigger an event that exits only after the moves and the 3 second wait, after that the control goes back to its original place.

You are locking you vi in the Mouse enter event.

Tak a look at this:

https://www.ni.com/es-mx/support/documentation/supplemental/06/event-driven-programming-in-labview.h...

https://www.ni.com/docs/en-US/bundle/labview/page/lvhowto/caveatsrecmndtnsevnts.html

You should be using a state machine design for your example

 

0 Kudos
Message 3 of 5
(678 Views)

Your event is set to lock the panel until it completes and since the event only completes after it has disappeared again, you cannot interact with it. So change it as follows:

 

altenbach_0-1682867197191.png

 

 

While this is obviously a bandaid fix, it will solve your minor problem. A bigger problem is your code architecture which is just bad. Do a proper state machine, don't have a timeout event to poll the stop button, use an event case instead., etc.

Maybe do a "mouse enter" event to move the control, and move it back again on "mouse leave", for example. Keep state in a shift register. Creating an array of 155 redundant error clusters just to determine the loop count of the second loop seems very Rube Goldberg'ish. Right?

0 Kudos
Message 4 of 5
(638 Views)

See if this can give you some ideas....

(Note that the runtime size and position is defined in the VI properties. It is easier to work on a larger front panel at edit time.)

 

altenbach_0-1682870352476.png

 

 

 

0 Kudos
Message 5 of 5
(631 Views)