From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 97

Solved!
Go to solution

I registered a type library file as explained here: http://digital.ni.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A. The library I registered is available to select using invoke node. I tried running a simple method as shown below:

 

program.JPG

 

When running the VI I get Error 97:

error.JPG

 

As this is my first VI using refnum's I am confused about how this error can occur as the refnum was created by right clicking on the invoke node and selecting Cayman.ICayman from the registered options. The only reason I created the control was due to the invoke node requiring a wire to reference in order to run the VI.

 

Thanks,

 

Michael

0 Kudos
Message 1 of 2
(2,775 Views)
Solution
Accepted by MTHPCB

All you've done is pass in an empty reference. The type of the reference may be of the type "Cayman", but its value is null. Hence the error. You must actually create a valid reference. With an ActiveX component this is done using the Automation Open function. Thus, you have to insert an Automation Open function between the control you created and the Invoke node.

0 Kudos
Message 2 of 2
(2,770 Views)