How to invoke VI application upon attaching a USB device without LabVIEW running?

Hi
I have a VI to communicate with an instrument with USB interface.
Now i have to run the VI application after attaching a device.
Is it possible to have an arrangement, such that, the VI application will automatically opens upon attachment of device ??
Thanks
Ishant

Ishant,
I hope you are doing well
today! What you are asking for is to enable the Autorun feature for that USB instrument. You can then call a LabVIEW executable using the .inf file. You will need to tinker around with the driver file for that instrument or the file storage system within that instrument; and it might not be trivial to do so. From USB Storage - FAQ for Driver and Hardware Developers:
“The Autorun
capabilities are restricted to CD-ROM drives and fixed disk drives. If you need
to make a USB storage device perform Autorun, the device must not be marked as
a removable media device and the device must contain an Autorun.inf file and a
startup application.”
You may find this link useful, Creating an
AutoRun-enabled Application
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies

Similar Messages

  • How can I best control a non NI USB device using LabVIEW?

    One of our radio products has a USB port for local (test) control.  When I connect the radio to a USB port on my computer the NI Measurement and Automation Explorer does not recognize the device.  Nor does it recognize the device when I attempt to "add new device".
    Within LabVIEW I am unable to assign an appropriate VISA resource name that does not cause an error when attempting to use the "VISA USB Control Out" or "VISA USB Control In" functions.  The help page for wiring up these functions is unclear, particularly for the "request" and "request type" variables.
    Would it be best to pursue this current method or purchase some type of serial (com port) to USB converter hardware to communicate with my USB radio?
    Regards
    Roger

    Sorry for the hijack, but this is a related question... I have an LV application that works using COM1 on the PC.  Customer wants me to change to a USB-to-RS485 converter.  I installed the Windows driver for the converter, then plugged the converter into USB port on the PC.  Windows and MAX both see the new port.  What I'm not sure of is the best way to have the LV app find the converter.  This application will be used on a variety of PCs so the COM port will be likely to change from PC to PC.  Or even on the same PC, sometimes another USB device might get plugged in before the converter.
    So the question is this:  The converter will always have the same vendor ID.  Is there a way for LabVIEW to look at the USB devices and pick the one with the correct ID ?  Or maybe this is overkill... the Windows driver makes the converter look like a serial port (COM4 on my PC).  The original app that worked with com1 used the VISA Configure Serial function with ASRL1:INSTR. 
    I can modify the LV app to force the user to pick from the available COM ports, but would prefer to make this happen automatically.
    Any suggestions ?

  • How to invoke java application from ABAP

    How to invoke java application from ABAP  ? Suppose I needto execute a EJB wihic is running on my SAP J2EE Enigne from an ABAP Program .
    Thanks,
    Manish

    Hi Manish,
    did you get some further documents concerning "abap program calls ejb"?
    If yes, could you please send me some informations.
    Thank you for your help.
    Kind regards, Patrick.

  • My iPhone has my old email set up throught iCloud. How do I reset my new username with the device without deleting everything. And if I have to delete my old account, will everything (contacts, pictures, games, apps, etc.) be erased from my phone.

    My iPhone has my old email set up throught iCloud. How do I reset my new username with the device without deleting everything. And if I have to delete my old account, will everything (contacts, pictures, games, apps, etc.) be erased from my phone.

    Your old ID connects to an icloud account containing all your data (email, contacts, etc.)  If you then use a different ID, you will connect to a different account, which results in losing all your "apple" data, like emails, contacts, calendars, etc.
    However, Apple IDs are also used to connect to an itunes store account, with is different.  You can keep using the old itunes store ID to keep all your purchases (but if you change to a different ID, you will lose all purchased items) and use the new ID for icloud (but losing emails, contacts, etc. from the old account).

  • How can I make my Mac recognize my USB device when I plug it in?

    How can I make my Mac recognize a USB device when I plug it in? When I plug in my flashdrive drive, the device doesn't show on my desktop, so  I have to search for it...

    You can try using 'NTFS-3G', its free and you can download it at: http://mac.softpedia.com/get/System-Utilities/NTFS-3G.shtml

  • How to invoke an application when another applications is started

      Hi All,
        Good day. I am a newbie to AppleScript and writing down this seeking your kind help here.
    Making my question detail here,
    Applcation 1 :  Consider this to be some thing kind of server stuff which is running.
    Application 2:  Consider this to be an application like Automator or any other automation tool for example Sikuli or Squish
    My actual scenario is that, When Application 1- is still running and upon its completion I want to instruct to another application to start.
    Suppose consider that Application 1 is running and when it is finished I want to invoke another application via apple script.
    So here, I want both the scripts from you people that can do this.
    > Script for -
    1. Invoke Application 1 (via Applescript itself) let it run for few minutes(as it is server kind of stuff, i want it to run) when this is complete then I want to invoke the application 2
    2.  I am manually invoking the application 1 and I am going away,  as it will run for few minutes then on Application completes its job I want Application 2 to be Invoked.
    I believe, I am pretty explanatory here, so please help with these
    Regars,
    OsmanBerg

    Does Appliction 1 quit by itself when it's done? If so a simple loop should do the trick - periodically check to see if the app is still running:
    -- start App1
    tell application "App1" to activate
    -- we know it's running
    set isRunning to true
    tell application "System Events"
      -- do this until the app is no longer running
              repeat until isRunning is false
      -- has the app quit?
                        if (exists application process "App1") = false then
      -- if so, set our flag accordingly
                                  set isRunning to false
                        end if
      delay 2 -- wait 2 seconds before checking again
              end repeat
    end tell
    -- if we get here we know the first app has quit, so:
    tell application "App2" to activate

  • How to invoke ADF application URL from OAF?

    Hi guru's,
    We have a developed a custom ADF application using Fusion Middleware 11g.
    We would like to integrate this ADF with existing EBS/OAF application.
    We were able to invoke ADF URL from EBS responsibility with a special function type "ADFx" in R12.1.3.
    Now we need to pass context/profile level parameters from EBS to external ADF application. Like logged in userId/RespId etc...
    We are running ADF application also in same EBS DB and hence want to use same fnd_user/Resp concept in ADF.
    Can anyone help me on how to pass these parameters like userId/RespId from EBS to ADF while invoking ADF application URL?
    If we can append the values to ADF URL, we would be bale to parse them in ADF context. But, i am stuck at passing parameters from EBS.
    How Can we invoke ADF URL from OAF page? is there any specific function available or is it just URL invoke?
    Also, in OAF the logged in user session information is maintained in cookies(if i am correct), is there any way that we can pass the session level values from OAF to ADF?
    Any help in this regard would be a great help!!!
    Thanks

    May be the following link will help you ->
    http://www.oracle-latest-technology.com/2010/12/how-to-dynamically-open-external-url.html

  • Distribute application without labview run-time engine

    I read a lot of post saying if the target machine has the same run-time engine installed, then I don't need to distribute the application with labview run-time engine. Somehow this rules doesn't work for me. I have a PC installed labview 2010 development system and has run-time engine 2011 SP1. I also download the same version of run-time engine and installed it in a target PC. When I distribute my labview application, if I select to include the run-time engine in build properties, the application will be able to install and run properly in the target machine; If I don't include the run-time engine, then I wouldn't be able to run the application.
    Does anyone help me on this? I don't want to always build the application with the run-time engine since it's quite big
    Solved!
    Go to Solution.

    Could you take a look at my NI software list and let me know what labview run-time engine is really in use?
    And in build properties, it actually list addition installer include labview run time engine SP1. If I includes this version of run-time engine and run the installer in target machine, it will still install the run-time engines just like there is no run-time engine installed in the target machine before.
    Attachments:
    NI software.jpg ‏98 KB
    Installer.jpg ‏216 KB

  • How to find COM port for a specific USB device

    I want to automatically find the COM port for a specific USB device. I use the VISA find resource function but I can't get the manufacturer's ID. VISA says the device doesn't have this information. The find resource function does narrow my search (and often finds the port depending on what other usb devices are connected). In the case where it finds multiple possible ports, can I safely send a message to each port to determine if it is the correct device? I know it will work for my purposes but I don't know if I am asking for trouble by sending messages to unidentified devices. Any thoughts on how I can identify my device port will be appreciated. Thank you - Dave F

    You can do it using WMI.  I have C# code I am supposed to convert into LabVIEW foing something similar to what you want to do.  In my case, I am testing a USB device and need to know which port on the hub is which COM port (the device creates a virtual COM port for communication).  Using WMI, you can find the hardware path to the device and know that COM10 is USB hub Port 1 for example.  Unfortunately, I cannot share the C# code.
    You can download the WMI Code Creator tool from Microsoft, which should help you tremendously find the proper method of getting your info.
    You basically want to look at all the W32_USB devices for the specific device you are looking for.  Once you have that, you can look for the COM Port associated with it.  I don't know when I will get to coding this up in LabVIEW, but will report back when I do, assuming you haven't found the solution by then.

  • How to get iPad mini photos onto a usb device to free up space on ipad mini

    How can I transfer Ipad Mini photos to a USB device to free up space on Ipad Mini

    You can't directly. Your best bet may be to use a cloud service such as DropBox, Media fire or Box to store them prior to deleting. From any of those services you can download to a computer and then to a USB drive or other external storage.

  • How can I get rid of annoying "Unnamed USB device" messege??

    Whenever I boot into OS9.2.2 on my other drive in my dual 500Mhz. G4 I get a usb upgrade messege window:
    "Software needed for the USB device "Unnamed device" is not available. Would you like to look for the software on the internet?"
    This appears everytime I boot, restart, startup on this drive. I've looked for this "unnamed device" in various places like the extensions folder to delete it but I can't find it anywhere. All of my usb devices are functioning and have been named including my MIDI controller. It would be great if I could get rid of this annoying reminder.......how can I get rid of this???
    500mhz. Dual processor (revision B) dual boot   Mac OS 9.2.x   1.25gig RAM

    I think it's my midi controller. I unplugged iton startup and I didn't get the messege. I've got the right driver installed for it and it's working fine so I don't know why I keep getting the messege. It's annoying to have to answer the question everytime time I startup.

  • How to install mu application on phone with itune or without itunes

    dear forum,
    can we install our applications only through itunes or is any other way???
    i will download any application from net(directly into my phone through gprs)
    In that scenario how can i insatll my application.

    wizardz........................
    u halve 2 undrstadn teh wizardz is only way.............

  • In iTunes 12, how do you add an existing playlist to a device without using sync or manually dragging the playlist to the device?

    Is this a deeply-buried function, or does it not exist as an option in the latest version of iTunes? Or am I missing something obvious and easy?

    Hey HalSF,
    iTunes allows you to sync music with your devices in several different ways, including by playlist. See the iPhone user manual for how to -
    manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Specifically page 19.
    Thanks for using Apple Support Communities.
    Be well,
    Brett L 

  • How automatically launch program when I plug in USB device?

    I bought a Neat scanner for my receipts and I want the Neat software to automatically open when I plug the scanner in. How do I do that?

    Do you have firewall or anti-virus software running?  If you do, it helps to turn it off.  Otherwise, click on this link and see if it helps:  http://www.apple.com/support/ipad/assistant/itunes/

  • How to fix: "One or more of your USB device drawing too much power..."

    Plugged my iPhone to do my usual download of photos off my phone into my iPhoto library so that I can edit them and post on eBay and Etsy.  Suddenly, I'm getting the error message: 
    "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."
    I'm surmising that it's because my USB cord (connected from my iPhone to MacBook Pro) might be damaged.  It's not charging correctly.  Keeps going on and off when plugged into wall or computer.
    So, will buying a new cord this solve the issue?  I have to get one anyway so I guess I'll find out!
    Meanwhile, for tonight I'll have to do just email the photos to myself.  Ugh.

    It should fix it.  I would unplug all of your other USB devices from the computer and see if it continues with that error.  If so, then certainly replace that cord (do it anyway since its having issues even in the wall)

Maybe you are looking for

  • Windows Server - Run multiple domains under different accounts

    Hi, I have multiple domains on a Windows Server. I'd like to run these under separate accounts for security reasons. My options I have so far: 1) Install all Admin servers and managed servers as windows services and set logon appropriately 2) If poss

  • SAP PI 7.31 / Sender SOAP Channel Issue with XML tag Main/@versionMajor has incorrect value 000; expected value is 003

    Hi PI Experts, We are on SAP PI 7.31 SP 10. We are in the process of integrating ARIBA P2P solution using SOAP Adapter as sender to connect Ariba with our PI system. We have configured all required components in ESR and ID(Most of them are content pr

  • How to set default font in Finder?

    I am using OS X Yosemite.  I highlight the Macintosh HD (internal) drive in Finder, then right-click and select Show View Options. I then change the text size and click on Use as Defaults.  I was expecting this to apply the same text size setting to

  • Memory leak in NSUserDefaults

    Hi, I have a iphone photography App. In my app, user may open many images. Each time user opens a new image, I will save the image to NSUserDefault so that next time user starts my app, the last image will be loaded. Here is my code, (I call this met

  • Update to ML kills Large IMAP Account Performance

    I'm using Mail.app in Mountain for two Gmail IMAP accounts (one personal, one work). I have both accounts set up to download and keep a local copy of everything. On my old 2009 MBP with SSD this setup gave me lightning fast local searches of my entir