LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

object reference invalid

Hello,
 
in my application I want to control numeric and string controls. I attached the vi's.
in another application this structure works with boolean controls.
i've got no idea to solve this problem.
 
thanks
 
markus
0 Kudos
Message 1 of 4
(9,871 Views)

Hi Markus,

only this vi can do nothing because all the references are invalid. Where do you call this vi? You have to insert valid references into you Cluster.

Mike

Message 2 of 4
(9,861 Views)

Hello Mike,

thanks for your answer.

I found the problem.

I have no valid refnum connected to the vi.

thanks

 

markus

0 Kudos
Message 3 of 4
(9,858 Views)
This is expected because the references in the cluster are not linked to any control/indicator. They return the default value which is 0. Put a probe to see what's going on. You must initialize every reference in the cluster by wiring the reference of the corresponding control/indicator of the front panel.


0 Kudos
Message 4 of 4
(9,852 Views)