LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

uncheck radio button

why is that delay...anyhow the code doesn't work
Regards
RobinHood
0 Kudos
Message 11 of 21
(2,000 Views)
thanks Dave
Regards
RobinHood
0 Kudos
Message 12 of 21
(1,995 Views)

Robin Hood wrote:
why is that delay...anyhow the code doesn't work

 

Delay is needed for avoiding 100% CPU load in While loop

 

The code is work. What is your expectation?

 

Andrey.

 

0 Kudos
Message 13 of 21
(1,995 Views)

Andrey,

 

besides the original discussion: i would expect code without any sequence structure 🙂

 

Norbert

 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 14 of 21
(1,990 Views)

Norbert B wrote:

Andrey,

 

besides the original discussion: i would expect code without any sequence structure 🙂

 

 


Norbert,

 

Impossible is nothing, sure:

 

rb2.png

 

More wishes? 🙂

 

Andrey.

0 Kudos
Message 15 of 21
(1,984 Views)

How did you get that radio buttons in the first frame. and i've wriiten like this.is it correct?

untitled.JPG

Regards
RobinHood
0 Kudos
Message 16 of 21
(1,975 Views)

Robin Hood wrote:

How did you get that radio buttons in the first frame. and i've wriiten like this.is it correct?

untitled.JPG


No need of the sequence structur. will work the same way...

0 Kudos
Message 17 of 21
(1,962 Views)

Robin Hood wrote:

How did you get that radio buttons in the first frame. and i've wriiten like this.is it correct?

 


You can createe Property Node for whole Radio Button Group of for each Button individually. It depends from the Mouse Click Position:

 

See differences:

 

rb3.png

 

vs

 

rb4.png

 

Also you can create property node from Block Diagram (for whole group):

 

rb5.png

 

 

Andrey.

 

0 Kudos
Message 18 of 21
(1,960 Views)

Well, great improvement, Andrey 🙂

But there are always places for improvement as you know 😉

 

Regarding RobinHood: You are a fan of the Abort Button, aren't you? Please note that it is sign of bad programming style if you are depending on it!

Please implement something like Andrey has shown or improve it further by using a Statemachine, a UI Event Handler or another standard architecture like shown in the Template Browser in the folder "Design Pattern".

 

Norbert

 

PS: To quote the most famous signature of this forum: "Never use the Abort Button to stop a VI. It's like stopping your Car with a tree; it works, but it may have consequences!"

Message Edited by Norbert B on 02-11-2010 04:44 AM
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 19 of 21
(1,957 Views)

muks wrote:

No need of the sequence structur. will work the same way...


Only if error outputs of the property nodes will be connected to the border of the while loop. Otherwise data flow will be changed (well, in the given example user will probably never seen the changes, but formally just removing sequence structure will caused race conditions immediately)

 

Andrey.

 

0 Kudos
Message 20 of 21
(1,948 Views)