LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Back to OLE Variant

Example VI attached.
 
I aquire an image from a fingerprint reader, extract the template (digital way of uniquely identifying people), and save the template to disk.  Later, I acquire a new image, extract the template, and use the appropriate ActiveX method to compare the template against the stored version.  The template is OLE Variant, which cannot be stored to binary file.  If I store the Variant as an array of U8's instead, I am able to retrieve the U8's from the file, and convert to LabVIEW Variant.  The ActiveX method compares correctly, but sluggishly.  Any way to convert back to OLE Variant?
 
Thank you,
Jason

Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 1 of 3
(3,258 Views)

Hi LabBEAN,

works the compare method better if you directly connect the Varaint data (before saving it)? Did you compare the data? i think it could be a way to check if the reading data equals the written one.

Mike

0 Kudos
Message 2 of 3
(3,234 Views)

I'd like to focus on saving and retrieving OLE Variant data.  The methods used to compare fingerprints (i.e. IdentifyPrepare and Identify in my example) work properly and rely on other settings (threshold and rotation tolerance), so I'd rather not architect my own.  (Thank you for your comment, Mike).

 

Anyone ever successfully "type casted" back to OLE Variant?

 

Thanks!

Jason


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
0 Kudos
Message 3 of 3
(3,225 Views)