annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Fanuc Development (may not need specific Fanuc Knowledge)

Risolto!
Vai alla soluzione

Sorry it took a while for a reply, I've been away from work since the weekend.  I did something similar to what you said as this was my initial approach, but since it wasn't identical I gave your method a try.  I believe the following picture illustrates what you were talking about.  The error that I receive is the same as described before:

 

Class not registered in LV using ActiveX.vi (whereby LV using ActiveX.vi is my file).  

 

Let me know if this is what you were describing, if not, please let me know what would need to be changed to accomplish your method rolf.  Thank you for your patience and assistance.

 

 

0 Kudos
Messaggio 11 di 15
1.439Visualizzazioni

No I didn't mean that. Don't use the Automation Open on the FRRobot.IJoint refnum. That refnum is only used as typedef for the Variant to Data function and does not need to be a valid object.

 

Automation Open will try to create such an object but if the Automation server interface does not expose a function to do so you will get the error message you see.

 

Rolf Kalbermatter

Message Edited by rolfk on 08-12-2009 08:26 PM
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Messaggio 12 di 15
1.421Visualizzazioni
Sorry, perhaps it is unclear in the picture, but the wire from the Automation Open terminates in the type def for Variant to Data.  The output from Variant to Data serves as the reference for the Invoke Node.  This is what you meant, correct?
0 Kudos
Messaggio 13 di 15
1.411Visualizzazioni
Soluzione
Accettato da m4r7in

m4r7in wrote:
Sorry, perhaps it is unclear in the picture, but the wire from the Automation Open terminates in the type def for Variant to Data.  The output from Variant to Data serves as the reference for the Invoke Node.  This is what you meant, correct?

Just remove the Automation Open altogether. It is the function that causes the error message you see. You can simply wire the FRRobot.IJoint terminal directly to the Variant to Data function.

 

It is only needed to tell the Variant to Data function in what refnum type the variant needs to be converted. The valid object is in the refnum contained in the variant and you do not need to create another object here. 

 

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Messaggio 14 di 15
1.406Visualizzazioni
Thank you very much Rolf.  Now that I have understood what you were talking about it works as expected. 
Message Edited by m4r7in on 08-12-2009 01:37 PM
0 Kudos
Messaggio 15 di 15
1.403Visualizzazioni