How do you pass an ActiveX Variant from an external application to LabVIEW?

Background: I created a LabVIEW ActiveX server. I can access it with my external application (Matlab). I have a control variable in my LabVIEW executable. I want to use Active X to set the value of my control variable from my external application.
Documentation: The only reference in the documentation for this task is in the Using ActiveX with LabVIEW in the LabVIEW 2009 help. It simply says "Use the variant control and indicator to pass data to or from ActiveX controls." I also went through all the ActiveX examples in the example finder and did not find any vis that passed variables using ActiveX.
Questions:
What should my control variable look like in LabVIEW? Should it be a refnum, a variant, or a data type? Does it have to be wired to a vi connector?
Do I need to do any magic on this variable, such as change its properties?
How do I pass the value from my external application to the variable in my LabVIEW executable?
Thank you.

Hello Lyn,
 The control variable should be a refnum and it would have to be wired to Automation Open with the correct reference.
Here are some great examples of using ActiveX Server in LabVIEW
LabVIEW Executable Used as ActiveX Server in LabVIEW
http://decibel.ni.com/content/docs/DOC-9647
 Calling ActiveX Code from LabVIEW
 http://decibel.ni.com/content/docs/DOC-9073
Andy Chang
National Instruments
LabVIEW Control Design and Simulation

Similar Messages

  • How do you play music in itunes from an external drive?

    if the library and itunes folder are on the external drive, how do you play the songs from there through a laptop? I have gotten that dreaded "original file not found" message over and over again. Thanks.

    Hold down the Shift key while launching iTunes. You'll be given a dialog box where you can select the iTunes library you want to use. Navigate to and select the iTunes folder in it's new location.

  • How can you erase old back up from my external drive which i placed in the trash?

    I removed some old back up from time machine which are on my external drive and it now in the trash. But the old back up is not erasing from my trash can. How can you removed this from the trash without reformatting the external drive.

    You really should not remove any Time Machine backups using that or any other method.
    Go to > Time Machine - Frequently Asked Questions 12 and scroll down to the section in gray at the bottom of the article.
    For more great Time Machine info, see > Apple  OSX  and  Time  Machine  Tips

  • How do you run a (Word) Document from a Swing application

    I want to create a Word Document and then open it from a Swing application. If you can't do that directly, what else can you do to get that result.

    gwils wrote:
    How do you recover a word document on a macbook pro?
    Just as you do it on a Mac Pro or a Mac Mini.
    What version of Mac OS X? What version of MS Word?
    If you're thinking of the AutoRecover feature, you have to enable it first. If it was enabled, this
    <http://kb.iu.edu/data/ahnd.html#FindingfilesMac>
    will tell you what to do.

  • How do you transfer your itunes library from an external hard drive?

    I've just bought a new internal hard drive for my macbook because I've run out of space. I'm planning on putting my itunes library on an external hard drive then putting it on the new internal hard drive... but i have no idea what the best way to do that is, since it isn't just the files that are important, my playlists and all the changes to song names need to stay intact. and also i'm gonna put snow leopard on the new hard drive if that makes any difference?
    Hope some one can help me find the best way!
    peacexx

    I have much the same problem. I have my iTunes files on an 80GB external drive along with my iPhoto files. Currently, my MacBook Air sees and operates from the iTunes setup on the 80GB drive. To provide more space to handle these files I got a 500GB portable external drive. Now I want to bring the iTunes files back into my MBA and, when complete,put them out on the 500GB drive from which I'll operate my iTunes. This might be simpler if the MBA had two USB2 ports instead of one. I've tried the method noted in "Transferring Your iTunes Library" (http://www.ilounge.com/index.php/articles/comments/moving-your-itunes-library-to -a-new-hard-drive/), but couldn't seem to get the 80GB files back to the MBA such that iTunes would see them there. (I copied the files over, but the link's broken.) Ideas?
    Thanks in advance

  • How do I invoke a Adobe Plugin from another Client application

    Hi,
    I have written a plug in for Adobe.
    I need to know how do i invoke this plug in from an external application
    For
    e.g a VB.NET Form has a button which on clicked would invoke this plug in
    Thanks for your suggestions in advance

    Leonard
    I would like to know how to do it
    I know that you can use IAC to call a plug-in
    I need to know the function call that i need to make in order make it happen
    MenuItemExecute doesnt seem to work for me.. or maybe i am doing something wrong there
    I can call menuitemexecute("SaveAs") but menuItemExecute("MyMenuItem")
    doesnt work
    Please advise

  • Passing an ActiveX reference from TestStand to Labview

    How can I pass and ActiveX reference (for a dll) created and used in a TestStand sequence (under Locals) to a VI running within that sequence so that I can then call the same instance of the dll from Labview?
    (I know this isn't the best approach to programming but I'm more interested in proving the point than anything else)
    Cheers
    Dan

    Here's what I think you are tyring to do. Within your sequence, instantiate an object from an ActiveX DLL, storing a reference to it within a TS variable. Then, within a VI called by this sequence, call a method of the intantiated object.
    To do this, when specifying your module on your LV step you must check the Sequence Context ActiveX Pointer check box. In the called VI you must have the a Sequence Context control on your front panel and have it wired to your connector pane along with a TestData cluster control and a LV Error Out cluster control.
    Within the VI you use an invoke node to invoke the AsPropertyObject method on the SequenceContext (Make sure you use the ActiveX close function on this new reference when you are done with it.). Use another invoke node to call GetValInterface method on the sequence context property object reference (you could probably also use the GetValIDispatch method. See the help). For this invoke node you will want to use a lookupstring that reference the variable, relative to yo sequence context, in which you stored the refernce to the instantiated object in your sequence file. This will return a variant reference. You must convert this reference to a LV reference using the "To G Data" function in the ActiveX palette. The "To G Data" function requires a type input. You will need an ActiveX Automation Refnum control as the input to this (see ActiveX control palette). You will need to right click on this automation refnum control and browse the ActiveX automation server until you find the DLL ActiveX server from which you instantiated your object within your sequence. Once selected, also select the object that you instantiated. The "To G Data" function will then give you a reference to you object on which you can happily used in your desired manner. Make sure to close this reference with an ActiveX Automation close function when you are done with it.
    I would definitely clean this up with a subVI to perhaps generalize the solution.

  • How do you pass XML as a URL param?

    How do you pass XML as a URL param?
    Thanks!

    I don't know why I wasn't thinking about this when I made my
    last post. If they're pasting some XML into a form, that's one
    thing. But if they need to send XML to your site from their own,
    you can setup a Coldfusion Component (CFC) as a Web Service to
    accept XML through a WSDL call.
    Check out the
    Coldfusion
    Developers Center for
    articles
    on creating web services

  • How do I pass an error status from my java code back to the Program Job Ser

    How do I pass an error status from my java code back to the Program Job Server?
    I have a jar program object that reports a scheduled status of "Success" even if the java code errors out.

    Exceptions thrown from the program object are ignored by the program job server.
    You need to configure the Program Object, then stream out a special string sequence to the stdout of the Program Object, to set the scheduled instance status to Failed.
    Look up SAP KBase  1201804 - How to programmatically set the status of a Program object to "Failed"
    Sincerely,
    Ted Ueda

  • How do you get your money back from a charge you never even made on the app store?

    How do you get your money back from a charge you never even made on the app store?

    Contact iTunes.
    How to report an issue with Your iTunes Store purchase

  • How do you remove a web site from popular list?

    How do you remove a web site from popular list?

    luckyfromhialeah wrote:
    How do you remove a web site from popular list?
    If you mean from the Safari menubar item "Popular"
    Choose "Show All Bookmarks" from the Bookmark menu in the main menubar, or click the icon for that in Safari's menubar -
    The page that opens should show a list of Bookmarks. In the Left column, click the item under Collections named Bookmarks Bar.
    In the new view, locate the folder named Popular and click the reveal triagle to the left of its name - it will open and reveal all the items listed in Popular.
    Find the one you want to remove, click it once to select it, then press the Delete key on the keyboard.

  • How do you remove a web address from compatibility view option using a script?

    How do you remove a web address from compatibility view option in IE using a script or a GPO? 
    Not seeing any options.
    Casey
    This topic first appeared in the Spiceworks Community

    luckyfromhialeah wrote:
    How do you remove a web site from popular list?
    If you mean from the Safari menubar item "Popular"
    Choose "Show All Bookmarks" from the Bookmark menu in the main menubar, or click the icon for that in Safari's menubar -
    The page that opens should show a list of Bookmarks. In the Left column, click the item under Collections named Bookmarks Bar.
    In the new view, locate the folder named Popular and click the reveal triagle to the left of its name - it will open and reveal all the items listed in Popular.
    Find the one you want to remove, click it once to select it, then press the Delete key on the keyboard.

  • How do you delete an email address from your iPhone that's not in your contacts?

    How do you delete an email address from your iPhone that's not in your contacts?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

Maybe you are looking for

  • Windows 8 - Folder Redirection policy missing from GP Results.

    Hi guys! This has been giving me a hard time the last day or so.  I've got some Win8 machines in our 2003 domain. I've got some GPO's applying with WMI filtering for win8 machines. Mostly these are ok, but i'm having a huge problem with Desktop Folde

  • Is it necessary to have bit defender on my macbook pro?

    i have a 13in. late 2011 macbook pro i was wondering if its a must for me to have this bitdefender virus scanner app installed. i was also wanted to know how i can speed up my macbook. i don't have much programs installed but i read that there are ce

  • How to get file name for failed request in JSOM

    hello friends, i am uploading files to sharepoint 2013 document library. due to some problem when a file is not uploaded request is failed and failed callback handler is executed. at this time how i can know for which file has not been uploaded. as i

  • Newbie import HEADACHES!

    Hi everyone, I am trying to import some stuff from jar files... First i set the class path to all the jar files using autoexec.bat but still i got compile time errors on import... Next what i did was copy all those jar files that were needed and thes

  • It truncates images that are normal in Safari. Can I send you screen captures to illustrate?

    Go to this site: http://www.howtosucceedbroadway.com/ On the right there are three prompts, How to get tickets, etc. Only in my Firefox it only says: "How to Get..." The word "Tickets" is cutoff, as are the ends of the other two prompts. This does no