02-11-2010 04:00 AM
02-11-2010 04:10 AM
02-11-2010 04:10 AM
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.
02-11-2010 04:13 AM
Andrey,
besides the original discussion: i would expect code without any sequence structure 🙂
Norbert
02-11-2010 04:19 AM
Norbert B wrote:Andrey,
besides the original discussion: i would expect code without any sequence structure 🙂
Norbert,
Impossible is nothing, sure:
More wishes? 🙂
Andrey.
02-11-2010 04:22 AM
How did you get that radio buttons in the first frame. and i've wriiten like this.is it correct?
02-11-2010 04:35 AM
Robin Hood wrote:How did you get that radio buttons in the first frame. and i've wriiten like this.is it correct?
No need of the sequence structur. will work the same way...
02-11-2010 04:38 AM
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:
vs
Also you can create property node from Block Diagram (for whole group):
Andrey.
02-11-2010 04:42 AM - edited 02-11-2010 04:44 AM
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!"
02-11-2010 04:55 AM
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.