09-14-2009 12:33 PM
I understand that controls only have outputs and indicators only have inputs, but I'm looking for some help creating code that has the capabilities of both. Specifically and ideally, my front panel would allow the user to select an old spreadsheet file to read, and those values from the spreadsheet would be displayed. The user could then tweak those values to their liking, and then submit those tweaked values as a new file/overwrite the old/etc. The important part is the the indicating and controlling of the read in values.
thanks
Solved! Go to Solution.
09-14-2009 12:40 PM - edited 09-14-2009 12:44 PM
You can use Local Variables (and Property Nodes) to programatically set the values of controls after you have read the spreadsheet.
Also, see here
09-14-2009 12:49 PM - edited 09-14-2009 12:50 PM
Ok, that's something I hadn't thought about. I will give it a shot.
09-14-2009 12:56 PM
It may be unclear from the picture I posted, but use one or the other. Using both does nothing for you. Also, if you have to choose between the two, use the local variable.
If you don't know how to get one, right click on the control then create local variable.
09-14-2009 02:08 PM
09-14-2009 02:13 PM
You have to wire the values from the spreadsheet into the local. The control itself just watches. What you have wired in your VI sets the control to its current value (Obviously, kinda useless).
09-14-2009 02:17 PM
Alright, that is clearer. I will try that out and hope for the best.
I am slowly getting better at LabVIEW, but some days I just can't program worth a darn. Today must be one of those days where I can't get going.
09-16-2009 11:47 AM - edited 09-16-2009 11:48 AM
Using a local variable works well if I want to view and change a single value, but I want to view and change a few different values that are to be read in from a speadsheet. I have tried creating an array and then inserting numeric controls into the array, on the front panel. The code will run, but there is no output to the array control. I can't for the life of me pinpoint where the issue is.
Is inserting multiple numeric controls into the array, not a good idea? Should I just create 3 separate numeric controls and local variables to get around this?
09-16-2009 11:53 AM
09-16-2009 11:55 AM