05-17-2013 01:55 AM
05-17-2013 02:00 AM - edited 05-17-2013 02:03 AM
What should happen if "a" is something else (not 0.001 or 0.002)?
Typically, you would use a case structure. Try it!
Of course you need to be very careful comparing floating point values. Whree does the "a" data come from?
05-17-2013 02:19 AM
Hope this is what you are looking for.
Run the VI and change the value of a.
Thanks
05-17-2013 02:48 AM
Ranjeet_Singh wrote:Run the VI and change the value of a.
(You might want to add a small wait to that loop.)
Here's an alternative version using arrays.
05-17-2013 03:37 AM - edited 05-17-2013 03:37 AM
Sir altenbach,
How you changed the controls and indicator. Never saw like this before.
05-17-2013 05:41 AM
@Ranjeet_Singh wrote:
How you changed the controls and indicator. Never saw like this before.
If your create a front panet using 'Silver Controls' (and of course indicators) and downgrade it to any LabVIEW version lower than 2011. You'll see the same.
05-17-2013 06:03 AM
friend,
Looks like some kind of magic for me.
Thanks
05-17-2013 09:06 AM
Yes, I started out with your code (which was silver style), but downconverted, because the OP did not say what LabVIEW version he has.