LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

invalid reference

Can someone please explain this invalid reference error. It is driving me crazy. Note: it only happens the first time the Example vi is ran. To get it to happen again you hav to close the vi and reopen it.
0 Kudos
Message 1 of 4
(2,991 Views)
The problem is that you have the reference from a USR wired into the leftmost property node. Since in the first run it has the default value, which has no meaning, it errors.
The solution would be either to move the code into the case structure or to use the First Run? VI (from the advanced palette) to take the value from the control the first time and the value from the SR in subsequent runs. Or to clear the error in the init case and so on.

___________________
Try to take over the world!
Message 2 of 4
(2,983 Views)
I thought you were crazy for a minute. I was thinking the error was happening in the initialize case. Now I see the problem. I must have been looking at it to long. Thanks for the second set of eyes.
0 Kudos
Message 3 of 4
(2,976 Views)
In these cases you should always use probes to determine the node from which the error originates. The error source description will only get you so far.

___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,959 Views)