09-07-2011 07:30 AM
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:
When running the VI I get Error 97:
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
Solved! Go to Solution.
09-07-2011 08:31 AM
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.