07-14-2005 04:23 PM - edited 07-14-2005 04:23 PM
Message Edited by Novatron on 07-14-2005 05:24 PM
07-14-2005 04:40 PM
I don't understand the connection you're making between the control's reference and its terminal. Are you refering to the Value property?
You're saying you moved the terminal into the first frame and wired it through. Into what? The property node wouldn't accept it as a reference. And in any case, the terminal's location should not affect the program in the sense that the program will run anyway.
You were probably getting the error from trying to get to an object which doesn't exist (like plot #4 on a graph with only 3 plots).
07-15-2005 07:17 AM
07-15-2005 07:26 AM
As far as I can tell, the only possible difference between those two pieces is if you somehow give the reference a value in the first frame. Other than that case, they should be identical, barring any other alternatives I can't think of.
We will need some actual code we can play with to see what you're saying.
07-15-2005 10:29 AM
There should be no difference between the two code versions IF you adhere to proper dataflow.
(Of course it is conceivable that the program is a mess and there is a race condition, e.g. if the reference is initially invalid and you set it elsewhere in the code via e.g. a local variable of the reference. In this case, a subtle change (e.g. the sequence structure) can rearrange the execution order for it to suddenly work by accident.)
I would be very curious to see a working example that demonstrates your described behavior. 🙂
07-15-2005 12:12 PM
07-17-2005 02:01 AM
A couple of points:
Is this a subVI? Are you getting the reference from a calling VI?
What object does the reference point to? This may give us a clue.
You can test (and potentially release) this, if you make a copy of the non-working version and start deleting pieces of the code until it works. Then, you can probably understand where at least some of the problem originates.