10-03-2007 03:06 AM
10-03-2007 03:34 AM - edited 10-03-2007 03:34 AM
Hi mem07,
I'd be inclined to use the FP string as the storage device (instead of a global), and let other parts of the program read it when they need to. The Value of the string is one of the string's Properties accessible via its reference. The reference could be put in a global, and shared that way, but this is a great application for a little "Driver" for the FP control - see attached. Initialize the driver once (passing it the FP string's reference) and after that just use the "driver" to manipulate the string. To get an object's reference, right-click on the object and choose create reference - wire this to initialize!
Cheers!
Message Edited by tbd on 10-03-2007 03:36 AM
10-03-2007 07:32 AM
10-03-2007 08:08 AM
10-03-2007 03:17 PM
Hi Jim,
A slightly faster method is to right click your terminal and create->property node, selecting the value property. This property node is "implicit" because it doesn't use a reference.
Not sure if you've missed the point here... mem07 needs to maintain/update a string from other parts of the program, the VI I attached allows that but needs the string's reference. You've described how to access the FP control-value - but only from the same diagram as the FP - by the property-node Value.
mem07 is probably finding all this very confusing!
Cheers.
12-07-2010 09:36 PM
Hi, im trying to do a similar thing here, refresh an indicator from within a subVI.
The change is taking place two subVI levels down into the program and i want this to come out represented by a boolean change on the top level.
How might i go about this?
12-08-2010 07:56 AM
There are several ways to do this, all complicated by the fact that you want to use a boolean. Booleans can only be remotely manipulated if the mechanical action is compatible with remote manipulation. So, first, you need to change the mechanical action of the boolean to either switch when pressed or switch when released. Add code at the beginning of your program to initialize the boolean to the correct value (use a local variable or the boolean's terminal for this). Make sure the initialization code runs before the rest of your program (you may need a sequence structure to ensure this). Now, right-click the boolean and create a reference - this will show up on the block diagram. Pass this reference into the your subVI and use the Value property to change the value of the boolean.
Other options include:
12-11-2010 12:59 AM
Thanks for the help! I will try to implement it a few different ways to see if i can get the hang of them all.
I am most certainly just starting out 🙂 absolute newbie diving into the deep end..
Thanks again!