Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

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
(10,021 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
(10,011 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
(10,008 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
(10,002 Views)