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
Wait for Flag / Set Flag
Separate Views from Implementation for Strict Type Defs
Attachments:
Retrive Stored Fingerprints & Identify Current.vi ‏30 KB

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
Wait for Flag / Set Flag
Separate Views from Implementation for Strict Type Defs

Similar Messages

  • Converting OLE variants in a FileSystemObject script

    I am currently exploring the scripting power of labview and have some serious issues with converting a simple OLE variant to a LV datatype. I also tried with OpenG tools. Take a look at my example script
    The ActiveX reference to FileSystemObject works with windows XP and maybe some older windows operating systems. Thanks
    Aart-Jan
    Attachments:
    list_drives.llb ‏293 KB

    aartjan,
    OpenG Data Tools are for LabVIEW Variant data only. AcviveX Variant is a totally different beast under the same clothes.
    However, the solution to your problem is simple. The variant type VT_R8 tells that it is a 8 byte real value, e.g. a LabVIEW double. You simply use "Variant to Data" to convert it to a LabVIEW double. See the attached VI. Also notice the use of "Format into String" to generate the string, a node that is much more convenient to use than string concatenation.
    LabVIEW, C'est LabVIEW
    Attachments:
    list_drives.vi ‏35 KB

  • Is it possible to convert LabView data into OLE variant?

    Hi. I'm using Activex Data Objects (ADO) to communicate with MySQL. Some ActiveX methods give OLE variant output, with "Variant Type" like "VT_ARRAY|VT_UI1", "VT_UI1" or "VT_BSTR". With some deduction and trial and error is relatively simple to extract data from this OLE variants and convert them to LabView data types. The problem is when I try to input variant data to some ActiveX methods, it almost always give me errors, I suppose because it expects the same type of the outputs, this is: OLE variants. Now, the question is: ¿Is there any way to convert LabView data into OLE variant data? ¿How?
    I've been searching and found a lot of posts about problems when passing variant data into ActiveX, saying that sometimes SAFEARRAYs are needed, sometimes saying that there were some bugs in LV6, giving some workarounds to this bug and saying that it is fixed in LV7.1, but the supposed workarounds don't work and the bug is still present in LV7.1, if it is really a bug.
    I think that if I could put LV data into OLE variant shape I may find an answer and solution to this matter.
    Thank you
    Daniel R.
    UdeC - Chile

    Below I describe how to handle OLE Variants, but I wanted to mention that LabVIEW does have a Database Connectivity toolkit (http://sine.ni.com/nips/cds/view/p/lang/en/nid/6429) that has already created a set of VIs for ADO. You might check that out first.
    However, handling OLE Variants in LabVIEW is automatic. LabVIEW itself has a variant datatype. When you use the ActiveX property or invoke nodes and one of the parameters is an OLE Variant, it is automatically converted to a LV Variant. You can then use the LV Variant VIs (such as "Variant to Data" and "To Variant").
    Brian Tyler
    http://detritus.blogs.com/lycangeek

  • Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text.  I didn't have this problem with Acrobat 9 standard.  What is the remedy for this.  If this is the best I can expect, I won't be able to use X standard.

    Adobe X PDF files converted to jpg, edited and converted back to PDF have ragged, unclear text.  I didn't have this problem with Acrobat 9 standard.  What is the remedy for this.  If this is the best I can expect, I won't be able to use X standard.

    I can't imagine any worse workflow than converting to JPEG to edit text, then back to PDF. Text in a PDF is a vector thing, smooth at all resolutions. And JPEG is made for photos. EVERY conversion to JPEG and back loses quality but how much loss there is will vary.
    If you must go to an image format, try PNG.

  • Is it possible to convert from string to variant?

    Hi!
    I would like to convert a text string to variant. I'm doing this because I would like to merge a couple of signals and then save all the signals in a lvm-file. Could someone please explain how to convert from text to variant, is it possible?
    Thanks in advance!
    Regards,
    Mattias
    Attachments:
    Merge signals.JPG ‏27 KB

    What you are attempting to do is possible, but might not give you the results you expect.  All you need to do is convert your string to an array of U8s using the String to Byte Array conversion primitive.  In the file, you will get a single character per line of the file expressed as the ASCII code.  When you read it, convert to U8s, then use Byte Array to String to get your string back.
    You may also want to read up on LVM files.  There are several places to put strings that work a little better than this.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Converting Back to Original PDF Using Post Script File

    Is there any way to convert back to an original PDF using a post srcipt file that was created from that original PDF?  Allow me to fully explain my situation:
    I converted multiple pdf's that I created into a post script file.  I then utilized Adobe Distiller to convert them into a pdf that could be used for better printing and better usability by the end user.  Unfortunately, when Distiller did this conversion, it replaced my original pdf with the new one.  By the time I realized what was happening, all files had been replaced.
    I still have the post script file that was created from the original PDF file; is there any way possible using this post script file that it can be somehow converted back to the original PDF file?  There are some edits that I need to do on the original PDF.  The pdf that Distiller creates doesn't allow for anymore edits.  My goal is to be able to make my edits without having to re-create 37 pages of documents. 
    The software versions I'm using are as follows: Adobe Acrobat X Version 10.1.4, Adobe Distiller Version 10.1.438.
    If anyone has any ideas, please let me know!

    Hello, thank you for responding.
    Yes the url links start with http:
    For example when I type in
    http://canberracontemporaryartspace.wordpress.com/2013/07/06/staying-out-of-trouble/
    in the word document and click on it, the link works; but when I save it as a pdf it says "not found"
    And then when I type in
    http://www.camberwellspecialists.com.au/what-is-skin-cancer.html
    in the word document and click on it, the link works; but when I save it as a pdf it says "page not found"

  • I'm a bit confused. Since my original camera format was 720/60p, and I converted the footage to Pro Res422 in order to edit in Final Cut Pro 7, should I convert back to a higher quality format before sending the file to DVD Studio Pro?

    I'm a bit confused. Since my original camera format was 720/60p, and I converted the footage to Pro Res422 in order to edit in Final Cut Pro 7, should I convert back to a higher quality format before sending the file to DVD Studio Pro? If so, which Compressor codec is best to use in order to preserve the original 720/60p?   How do I maintain the highest quality?

    No...ProRes is a high quality format. Finishing format.  Many TV networks take that as a final deliverable. 
    BUT...DVDs aren't high definition...they are SD.  You cannot make a 720p60 DVD with DVD Studio Pro.  Any DVD you make will be SD...720x480.  The only HD DVD format out there is BluRay, and for that you need a BluRay burner.
    As for making a high quality DVD...using the BEST QUALITY settings in Compressor will work:
    #42 - Quick and dirty way to author a DVD
    Shane's Stock Answer #42 - David Roth Weiss' Secret Quick and Dirty Way to Author a DVD:
    The absolute simplest way to make a DVD using FCP and DVDSP is as follows:
    1. Export a QT movie, either a reference file or self contained using current settings.
    2. Open DVDSP, select the "graphical" tab and you will see two little monitors, one blue, one green.
    3. Select the left blue one and hit delete.
    4. Now, select the green one, right click on it and select the top option "first play".
    5. Now drag your QT from the browser and drop it on top of the green monitor.
    6. Now, for a DVD from an HD source, look to the right side and select the "general tab" in the track editor, and see the Display Mode, and select "16:9 pan-scan."
    7. Hit the little black and yellow burn icon at the top of the page and put a a DVD in when prompted. DVDSP will encode and burn your new DVD.
    THATS ALL!!!
    NOW...if you want a GOOD LOOKING DVD, instead of taking your REF movie into DVD SP, instead take it into Compressor and choose the BEST QUALITY ENCODE (2 pass VBR) that matches your show timing.  Then take THAT result into DVD SP and follow the rest of the steps.  Except you can choose "16:9 LETTERBOX" instead of PAN & SCAN if you want to see the entire image.

  • Signing Word documents or converting back to pdf

    How do I sign word document that I have converted from pdf?
    Can I convert word document back into pdf?

    Hi Jude20,
    We have CreatePDF for converting back to pdf format and EchoSign to sign pdf documents. Although if you are looking for the full package might I suggest Acrobat Pro XI or Acrobat Standard XI?
    acrobat.com is a great resource to obtain what you want/need.
    Please let me know if you have further questions and if this was helpful today!
    Kind regards, Stacy

  • 3700 AP - Best way to convert back from Autonomous to LIghtweight

    I have a 3700 AP that I have up & running as Autonomous. I recently got a 2504 WLC and would like to put the AP back to Lightweight and run it from the 2504.  
    The 2504 is running 8.0.110.0 code and I have the current 3700 Lightweight Recovery image and IOS downloaded as well. 
    I have done done some searches and most of he articles are conversion to Autonomous. Not much is out there for putting it back. Some articles just mention needing the Lightweight  recovery image while others state I can use the Mode button and just have a TFTP server running  in a specific subnet and the AP will "pull" down the code and convert back.  Almost all of the articles refer to old model APs...
    Looking for clarity in the process as I certainly don't want to brick this 3700 AP. 
    Thx. 

    Hi
    You can use either methods & it will work (even for 3700)
    If you using mode button method, make sure you rename the recovery image something like this ap3g2-k9w7-tar.default. Refer this post for detail
    http://mrncciew.com/2013/12/13/ap-conversion-using-mode-button/
    Normal method is described here
    http://mrncciew.com/2012/10/20/lightweight-to-autonomous-conversion/
    HTH
    Rasika
    **** Pls rate all useful responses ****

  • PSD to JPEG - Converts back after closing.....

    Trying to convert photo from .psd to .jpeg.   I "flatten the layers" and "save as" jpeg......but as soon as i close out of image and then reopen it converts back to .psd???? Can anyone help?

    Okay, so you are using some version of Photoshop Elements?
    In PE Organizer find your file that you just saved and right-click on it. Scroll all the way down to the bottom of window that pops up and select "show properties." This will tell you what format it is. Also, when you "save as" make sure that you are including it in Organizer, otherwise you will not see it and will only find your .psd file. Alternatively, you could search for wherever it is saved on your hard drive and double-click it to open it.

  • Converting BACK to 64 bit in CS5

    I know I went to a folder whose name I cannot remember in finder and selected "get info" and then somehow converted to 32 bit but now I wish to convert back to 64 bit,
    Can anyone help me with this?

    OK I just found the right info box. I unchecked open in 32 bit. Thank you both very much.

  • How to convert back to v10.7 Lion

    I am using 10.8.2 Moutian Lion
    but i would like to convert back to v10.7
    Reason for this is my sims 3 does not play well as all on the new update
    I would like to have Moutain Liom on macintosh HD (350GB)
    then 10.7 on Macintosh HD 2 (Mounted Patition) (Second Volume 150GB)
    or if anyone knows a way i can play my sims without crashing help

    Hold down the Command+Option+r key at startup, hold those key down until you see a Spinning Globe in the center of the screen (If you let them up before you see the globe the computer will either boot normally or to the built in Recovery HD partition). That will boot the computer from the Online Internet Recovery system where you can Re-Install Lion 10.7.5 on your other partition. When the computer boots from the Internet select Reinstall Mac OS X, and underneath that is should say "Reinstall Lion OS X on your Mac" or something similar. Click on that and click the Continue button. When it starts POINT i the install to the second partition on your drive (that is if you have already created it).
    It is best to have the system WIRED, Ethernet cable, to your router as WiFi will work but any WiFi drop outs will cancel the download and install.
    Good Luck and Best Wishes.
    P.S.
    I to have gone back to Lion but stilll have Mt Lion and Snow Leopard installed on separate partitions. IMHO Lion just runs better then Mt Lion. Mt Lion is just to iOSish for me.

  • How to convert back from UTF8 to ISO-8859-1 encoding?

    hi,
    I have a bunch of XML files which were wrongly encoded, and we lost all our accent characters.
    ie: é become é
    so how can I recover my XML files using powershell?
    so I want to change all the UTF8 ecoded characters back to the original ISO accent character
    é -> é
    I try this:
    1")
    $utf8 = [System.text.Encoding]::UTF8
    $utfBytes = $utf8.GetBytes("é")
    $isoBytes = [System.text.Encoding]::Convert($utf8, $iso, $utfBytes)
    $iso.GetString($isoBytes)
    but doesnt works.
    so is there a way to do this in powershell?
    I have to scan hundreds of files...
    thanks.

    You can't.  UTF-8 strips all of the information from the characters so you cannot know which characters are which.  If you know which characters you need to fix (requires knowing the spelling of the words) you could possible develop an matrix of
    replacements. There is no simple one line method.
    ¯\_(ツ)_/¯

  • RGB color space in LR3 - does it convert back to sRGB on export?

    First off, I've only had LR3 for two days so I am a complete novice. I've been reading my book and just came across the part about RGB color space. I shoot with and use sRGB, which apparently LR will recognize. However, it states that the develop module uses Lightroom RGB. My question is, when I export my edited photos to PSE8 (or to a folder on my desktop to save and email for my daughter's business), does it export them back as sRGB? I know there is a lot of controversy over the whole RGB thing, but after my research on the matter, I have decided that sRGB is the best for my particular situation. I'm just making sure I don't have to check something or convert them back if they don't automatically change out of LightroomRGB.

    ColeeLou2,
    Some additional thoughts to what has been said already:
    I shoot with and use sRGB, which apparently LR will recognize.
    The color space you chose on your camera (sRGB, AdobeRGB) only affects the JPEG rendering in your camera. It does not affect the RAW file, as a RAW file is not in any color space. Upon import of a RAW into LR, it will be rendered in a ProPhoto RGB color space with an sRGB tone curve (Jao will correct me if I'm wrong ) for use within LR.
    My question is, when I export my edited photos to PSE8 (or to a folder on my desktop to save and email for my daughter's business),
    I would suggest using an sRGB color space upon export for external uses (like emailing to your daughter), but use ProPhotoRGB when going into PSE in external edit. This way you will have all the color information possible available in PSE, and PSE will recognize the ProPhotoRGB color space.
    Beat Gossweiler
    Switzerland

  • Bug When Converting (Back) To Local User Account

    I am using Windows 8.1 Pro and began by setting up a local user account, which is the Administrator account. I then successfully switched the account to a Microsoft account, with the same user name.
    As a test, I then decided to switch back to a local user account.
    The bug is that I was not permitted to use the same user name. I had to select a different user name. This defeats the purpose of transparently switching a from a Microsoft account to a local account.
    Fortunately (for me) I had anticipated that something might go wrong and had performed a full system backup to a external USB drive before I began this switching test.
    L.M.Cohen

    While Windows 8.1 (Pro) allows you to create new User accounts, it is set up to "convince" you to create Microsoft-type user accounts, rather than local user accounts.
    And if you try to convert a Microsoft-type account to a local user account,
    with the same user name, it will not yet you do it. However it will allow you to convert in the opposite  direction,
    with the same user name.
    So I started all over and carefully read the small print -- to learn that you can initially set up a local user account. But this is discouraged, but if you persist, it can be done -- even though it is implied that "the sky might fall."
    This is disingenuous.
    However now that I understand the dynamics, I have no more problems.
    Regards,
    L.M.Cohen
    L.M.Cohen

Maybe you are looking for

  • How do you move apple configurator from one mac to another mac?

    I want to move the configuraton of apple configurator to a new computer. How?

  • Can't import pictures I once could  Unrecognized file type

    I recently had to reinstall some system software because my computer wouldn't reboot. When I opened up iPhoto 5 nothing was there. I went to a back up and imported the latest Librarty. When I went to import the rest of the photos I got this error mes

  • Workaround for 7.1.6 video freeze (audio continues)

    Recognizing that solutions can sometimes be difficult to search for, I'm posting this because it has helped at least a few -- particularly those with G4 iMacs. If your symptoms are o Updated QT Pro from 7.1.5 to 7.1.6 o Video files play normally up t

  • New Message type for Sales orders

    Hi, We have the message type is ORDSRP(ORDERS05) and Function module IDOC_OUTPUT_ORDRSP for the sales orders. We have lot of custom fields to be added to the IDoc. Can any one suggst if it is better extending the current message of create a new one.

  • PO should pick INCOTERMS of Goods Supplier (Vendor)

    Hi All, I have a vendor V1based in China who has 3 different supplying address there, so I maintained 3 different goods supplier to him in partner profiles. For each goods supplier he has a different INCOTERMS. So, when I am creating a PO it will ask