LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 91 occurred at Variant To Data

Hello,
I am getting this error message when I try to run my  vi. "Error 91 occurred at Variant To Data" Basically I am opeing an automation reference to a dll, that has a functions defined in it.i can select my methods. One of my methods it shows up as a variant. It asks for a type to be connected to variant and data block that I placed on the vi from functions palette. The function in the dll is supposed to return a bucnh of values in an array. How do i do the same?
thanks.
0 Kudos
Message 1 of 3
(3,497 Views)
The reason for the error is that the datatype contained in the variant is different from the LV datatype that you are trying to turn it into. To help prevent this type of error I like to use typedefs for the data going into the variant.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 3
(3,491 Views)
Thanks ..i could eventually figure that out and it worked. thanks a lot for the help.
0 Kudos
Message 3 of 3
(3,476 Views)