LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i change control values based on a read-in file?

Solved!
Go to solution
Ok, so I've been able to achieve the main goal of this thread. However, I was thinking that of the data I read in, 2 values will be numeric and 1 will be boolean (or 0 for false, 1 for true). If I put a boolean control on the front panel and have the local variable allow for changes in the boolean, it doesn't work.
Download All
0 Kudos
Message 11 of 16
(1,069 Views)
untitled.PNG

 

You should probably look at some of the introductory materials NI has openly available.

Message Edited by elset191 on 09-16-2009 02:15 PM
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 12 of 16
(1,056 Views)

controlsasindicator.PNG

Another way to do a single boolean.  The reason your code doesn't work is the Boolean is outside the loop.  If you change the value while the loop runs, it doesn't matter.  The value wired to the input of the loop is the one that gets written to the file.

Message 13 of 16
(1,051 Views)

To get your local variable to work the way it is written:

  • Right click on the boolean array > Advanced > Enabled State > Enable
  • RIght click on the boolan array again > Advanced > Show Last Element
  • Click the button to make it false.
  • Run the code.

 

Smiley Happy

might need to run it once first Smiley Wink
Message Edited by Broken Arrow on 09-16-2009 02:32 PM
Richard






Message 14 of 16
(1,043 Views)
I've now got a chunk of code that does what I want it to do! I don't know who to give the solution to. Elset started me down the local variable path and has put up with my stupid questions.But several of you helped me refine it. Thanks to all who posted.
0 Kudos
Message 15 of 16
(1,011 Views)
The way we say thanks around here is by giving kudos to the people we want to thank.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 16 of 16
(1,007 Views)