LabVIEW exe. with 2 USB Daq devices

Hello All,
I am trying to build a LabVIEW exe. with two USB 6210 data aquistion modules plugged into a USB hub installed inside a 19" rack. I used the DAQ Assistant to generate the LabVIEW code for the aquisition and it works fine. However, when I disconnect the USB cable from the development machine and reconnect later, my I/O are mapped to the wrong modules. Is there a way to map my channel names to the actual module, maybe in MAX, and just include the Max configuration file in my exe? Can I use the DAQ assistant,  or do I configure the physical channel names and create my own tasks in MAX and not use the DAQ Assistant?
Any help would be appreciated.
Thanks

Hi Botman,
Unfortunately you are in a unique situation in that you have 2 of the same type device that are removed from the system and reconnected to the system at the same time.  However, it is probably not guaranteed that one device will be detected before another consistently.  Given your situation I would recommend that you set up your application to programmatically discover the devices in your system.  There is an example program here that demonstrates how to do this.  In your case I think detecting by serial number would be ideal.  All you would need to do is include the LLB file in your project to ensure that all of the necessary VIs are included.
Keep in mind that this will require some modification of your code.  You will need to use the lower-level DAQmx functions rather than the DAQ Assistant (which basically serves as a wrapper around the lower-level functions).  In the end, adding the VI from the example program above and using lower-level DAQmx functions will make your code more robust because distributing the executable to another system (or even using it on the development system) will not require the user to interface with MAX at all.  Let me know if you have any other questions.
Regards,
Andrew W
National Instruments

Similar Messages

  • Which usb DAQ device to buy ?

    I am a total Noob when it comes to DAQ so please bear with me and help me with suggestiions on which NI USB DAQ to buy. I am biochemist and I have an old HPLC machine (basically a chemical purifying/seperation machine) I need to control by writing a labview program. I have labview 2013 and have some basic familiarity with it, and have used very easy VIs like blinking LEDs using arduino interface.
    My current project needs me to:
    1) control the flow rates on two pumps using their remote controller and vary their flow rates by varying voltages (0-10V) at not higher than 3 mA input current. basically, I need to be able to vary voltages on two analog pins. I am attaching the manual for the pump for more info. The pinout on the remote controller is on page 16/17 of the manual.
    2) I need to read analog voltage outputs from these two pumps (which measures the hydrostatic pressure) and save it to something like in .csv file.
    3) lastly, I need to read a analog output from a UV detector which will be in mV range and plot it and/or save that to .csv file .
    There are a bunch of NI DAQ USB devices which seems like they can do this job, my problem is that dont know enough to reliably make a judgement on which one to buy for this project. My budget is limited and I would definately like to do it with as cheap a DAQ as possible since we have multiple instruments like this, and we are planning to get rid of ancient 1990s computers running the original software and replace it with a USB DAQ device coupled with a labview program on a modern PC. The HPLC machines are far apart hence we run them on individual PCs instead of running a bunch on one computer through a DAQ device.
    I know its a whole bunch of questions, but I'll be glad for any guidance on this. also, to do the things I just described, how difficult do you guys think the VI would be if I use a NI DAQ and hopefully dont have any driver/communication  issues.
    Attachments:
    shimadzu-lc-6a-hplc-pump-service-manual-eng.pdf ‏985 KB

    I highly recommend you look up your local NI representative and have a nice sit down with them.  They can go over your requirements and give you really good advice on which device to get.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Why is my USB DAQ device not detected by Windows?

    Hello,
    I had my USB-6229 connected to my PC (Windows 7 64bit) this morning and everything was fine: Windows detected the device, the device showed up on on NI MAX, and testing through NI MAX was successful. I then installed the NI DAQmx 9.8 driver to replace the NI DAQmx 9.6 driver that I was using (the DAQ Assistant icon in my functions menu in LabVIEW 2013 was not present, and this upgrade fixed that issue). Unfortunately, Windows now no longer recognizes the same DAQ device that worked earlier this morning.
    Here's what I've tried so far:
    Uninstalling the 9.8 driver and re-installing the 9.6
    Tested another USB DAQ device; Windows could not detect it either
    None of the DAQ devices register on WIndows's device manager (usb ports not broken, as the flash drives I inserted showed up on device manager)
    As expected, none of the devices show up on NI MAX
    Does anyone have any suggestions on what may have happened when I upgraded from the 9.6 driver to the 9.8?

    Thanks for your reply, Philip. Yes, I did reboot my computer after installing the driver.
    I contacted NI support, and we were unable to reach a solution, so, as a last effort, re-installed the driver for the third time, which finally worked. I'm not sure what the problem was, but here are some extra steps I took before re-installing the driver that may benefit those who encounter a similar problem:
    1. As Philip mentioned, start the NI Device Loader if it has not been started or stop/start it if it has. The startup status ought to be set to "automatic." You can find the NI Device Loader by starting Task Manager, selecting the "Services" tab, then selecting the "Services" button. Scroll down the list until you find it.
    2. Open up Device Manager and search for your device (mine was labeled as "unidentifiable"). Right click and select "Properties." Select the "Driver" tab. You may need to manually select the driver folder, which should be located in C:\Windows\system32\DRIVERS.
    Hope that helps.

  • Would like to monitor and control a labview application with a hand held device.

    Would like to monitor and control a labview application with a hand held device.
    Would like to use a palm or ipac on a local area network or communicate directly with the PC running windows.

    LabVIEW doesn't run on a hand held device. But, check out these documents:
    Is it Possible to Use Remote Front Panels to Control a LabVIEW VI Remotely Using my PDA?
    "What OS is recommended for LabVIEW to run on a PDA?"

  • How to run labview exe with command line

    I would like to launch a labview exe with a command line.
    I would like to get advice how to launch the Labview exe with giving values to the control parameters?
    You can view the example where x,y are the controls
    Solved!
    Go to Solution.
    Attachments:
    exe.png ‏65 KB

    There is a much more detailed guide here, which I reference below:
    1. First you will enable it in the settings:
    1. Open the properties for the application's build specification
    2. Navigate to the Advanced category
    3. Check the Pass all command line arguments to application box
    To pass the command line arguments to the application and access them in your code follow the same steps as for LabVIEW 7.x.
    2. Then you will use two hypens (--) to pass command line arguments to the VI. 
    When you launch LabVIEW or a stand-alone executable from the command line, you can pass user-defined arguments to the application. User-defined arguments start after two hyphens (– –) surrounded by spaces in the command line. For example, the following command line entry will launch LabVIEW 7.1 and open test.vi from the root of C:\ and pass 2 arguments, 1000 and sine:
    "C:\Program Files\National Instruments\LabVIEW 7.1\LabVIEW.exe" "C:\test.vi" –– 1000 sine
    You can also pass a command line argument directly to an EXE without launching LabVIEW, as long as the machine has the appropriate Run-Time Engine and necessary drivers.  For example, if test.vi was built into an executable, it could be called as follows:
    "<build directory>\test.exe" –– 1000 sine
    3. Lastly, you will use a property node to wire them to your controls:
    LabVIEW passes the arguments from the command line to the block diagram of the VI or EXE you launch. You can reference the arguments in the block diagram by using the Application:Command Line Arguments selection in a property node, as shown below.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!

  • Synchronize 2 USB-DAQ devices, Analog IN, Frequency IN, Digitally triggered

    Hello,
    I want to perform the following measurement on two USB-6211 devices, LV 2012:
    I need to
    1) read (cont.) all 16 analog input channels of Dev1
    2)  read( cont.) 2 analog input channels of Dev2
    3)  perform a frequency measurement with Dev2
    4) synchronize 1-3
    5) start the Measurements with a trigger (light barrier)
    1) and 2) are not the problem. Also synchronizing them is fine. But I am not sure if my attempt to synchronize all this with the freq measurement, as this is done over a certain period of time. So, as I understand, when I select the method "high frequency with 2 counters" I can specify the measuring time. So I think I need to tell labview somehow which point of time of this span shall be synchronized with the analog input.
    I attached a first try and am thankful for any hints.
    Thanks, Jack
    Attachments:
    test.vi ‏42 KB

    The basic problem here is conceptual. What does it mean to "synchronize" a time domain measurement with a frequency domain measurement? You can certainly can (and should) identify the set of time domain measurements that went into the calculation of the frequency measurement, but that's about the thinnest you will be able to slice this bologna.
    Having said that, I can't look at your code right now but I assume you are reading data in blocks from the DAQ. You could perform the measurement for each block you read. That would naturally associate the measurement with the data it was based on.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Do I need Daq s/w while running a Labview exe which contains the DAQ hardware cards on a pc which does not have Labview s/w

    I am having a Labview 6i program which takes hardware status from the NI hardware cards...now I make its exe with Labview Run Time Engine & then I am unistalling complete Labview with "Remove all" option....then I am installing this exe......Do I need DAQ or MAX now ?

    Hello,
    If you have an executable with DAQ functions in it, then you are required to have NI-DAQ installed on the machine.
    Also, please post your LabVIEW/DAQ questions in the appropriate category...this category is for questions pertaining to the NI product "Measure for Windows", which you do not appear to be using.
    Have a nice day,
    Darren N.
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Problem with two USB-gaming devices

    I have a weird problem on the K8T Neo FIS2R. I have two USB gaming devices plugged in (Saitek X45, Thrustmaster Force Feedback GT). The Saitek is "on" every time since it does not have an external poer supply. The Thrustmaster I have to turn on, since it has Force Feedback. Both of these devices work perfectly when the othe one is inactive (Thrustmaster in off-position or X45 unplugged). But if I want to use the wheel with the X45 plugged in it just does not work right. If I check under the windows devices both of them work fine. But when it comes to ingame action the wheel is al f***** up. It seems, that the X45-axis is colliding with the wheel. I was using this combo on my former nForce2 board without any problems. Any clues?

    Hi
    Quote
    it's almost as if a certain % of these boards have usb problems and half don't :(
    Well then, lets find out which USB drivers are being used
    The XP original 1.1
    The XP updated 2
    or the VIA driver from Companion CD.
    Are they all on same Bios?
    If Ports are reacting differantly, it is more likely to be a driver or Bios issue
    Cheers
    jocko

  • Creating exe with GPIB-USB

    When I create an application that uses my GPIB-USB-A interface it is not included as one of the VISA selections when the application is installed. Which files do I have to add to application installation to have my application work with GPIB-USB?

    You would need to install the GPIB and VISA driver,
    For GPIB, follow the steps from www.ni.com/support/install. You can download the latest visa driver from, ftp://ftp.ni.com/support/visa/drivers/

  • System crash when DAQmx call to USB DAQ device is powered off

    My PC crashes when I attempt communication with a NI DAQPad 6015 USB device which is in the powered off state. I am attempting to add error handling to my LabView application to cover the above condition, however, instead of receiving a error message, my PC crashes. When the device is powered on, my LabView routine works properly. I created the vi using the DAQmx DAQ assistant for a simple analog read from the device. I want to add the potential error handling condition to cover the case in which a user may attempt to run the software without turning on the device. When I attempted to run my vi twice with the device powered off, my PC crashed both times. The 2nd time, during reboot, I discovered that MAX was corrupted and had to repair using the installation CD.
    I am using LabView 7.1 with DAQ 7.4 on Windows 2000.
    Is there a known fix or workaround to this issue? Or is there a way to detect the presence of the device first before trying a DAQ read?
    Thanks,
    Joel

    Thanks very much for both your responses. I tried it again, but as you suggested, I used one of the example vi's. I chose the following:
    Acq&GraphVoltage-IntClk.vi found within: Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage
    I first tested the example vi with my DAQPad-6015 powered on. The vi successfully ran without error. I then turned the DAQPAd power off and ran the vi again. My system immediately crashed leaving me with a blank screen (with streaky lines) and forcing me to reboot. After reboot, I discovered that I can no longer open any of the DAQmx examples that are compatible with the DAQPad-6015. All are corrupted. Curiously, MAX was not corrupted again. I will have to re-install all examples and possibly LabView itself.
    Based on your feedback, I am guessing you will tell me that repeating the above on your system will simply produce an error message, as expected. It appears that I may have a fundamental incompatibility between my specific system hardware and DAQmx/LabView.
    Regards,
    Joel

  • Labview exe with HTML reports

    Hi,
    I am building an exe of a program that use some simple VIs to generate an HTML report (so I didn't need Report Generation Toolkit);
    in the build I found a lot of VIs included in 3 directories: NI_HTML, NI_Reports, NI_StandardReport....are all of them necessary??
    Is there any way to avoid this? Shoudn't the RunTime engine include them?
    I am using Labview 2009
    thanks
    CLD - Labview Certified Developer
    Solved!
    Go to Solution.

       Although I've used the Report Generation Toolkit for some projects, I have avoided using it for those deployed as executables ever since the LVOOP transition caused the distribution to blow up.  I'm looking for an html solution again for an executable.  Is anyone aware of a third-party html LV tool that can create simple reports and doesn't require the Report Generation LVOOP bloat in a distribution?
    Thanks,
       DaveT
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

  • Record with 2 USB input devices for 2 different tracks?

    Hi guys.  I just bought a Snowball ICE.  Sounds great.  I went to use that on one track and my Apogee Jam on a different (guitar) track at the same time and every time I switch the input in the "info" area to one input for one track it changes them on both.  HOw can I set it to record the guitar through the Apogee Jam on one track and record through the Snowball on another track?  Need help soon have some recording to do this weekend!  THanks.

    ridergroov wrote:
    HOw can I set it to record the guitar through the Apogee Jam on one track and record through the Snowball on another track?
    http://www.bulletsandbones.com/GB/GBFAQ.html#multipleaudiointerfaces
    This FAQ entry offers a Minute GarageBand video tutorial
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • Labview with advantech usb 4716??

    hi. I have a problem related to labview and advantech usb 4716.
    for my project, I have to develop a charge discharge cycle. I'm using Labview 2011 and the program is finished. But when I try to connect with ADVANTECH usb-4716, nothing happen. So, I want to ask,
    1. How to interface the labview 2011 with advantech usb 4716???
    2. How to make labview recognize my usb everytime I plug in the usb???
    3. Is it possible to use labview 2011 function with advantech usb 4716 because it don't know how to use advantech DAQ function???

    Hi Nicholas,
    I found the drivers in those links.
    First of all the customer must install our Device manager ( DAQ Tool ) and Driver
    http://support.advantech.com.tw/support/DownloadSRDetail.aspx?SR_ID=1-246K8V
    That's he needs to do always before using our devices.
    For LabVIEW he also needs to install in addition the LabVIEW driver
    http://support.advantech.com.tw/support/DownloadSRDetail.aspx?SR_ID=1-29WTFD
    It is the LabVIEW or LabVIEW DAQ , it depends on customer LabVIEW software that he is using
    After installation he will get in LabVIEW ready made VI ( examples ) to use from Advantech and also the Manual

  • ThinkPad E530 USB 3.0 not working with USB 2 devices

    Hi All,
    I have Thinkpad E530 with Windows 7 Ultimate 64 but installed.
    all of sudden the USB 3.0 ports stopped working with any USB 2 device (i.e mouse, mobile chargers...)
    I've downloaded the latest Bios, chipset, and USB 3.0 drivers and still no change.
    any idea.
    Regards.
    M.Sherif

    Hi M.Sherif,
    Has we have done all the troubleshooting and still the issue persists. Hence we are having one more option to perform, let’s check on that with the last hope on the issue.
    Click on start and in search type Find and fix problems with device, on Hardware and Device click on next, system will search for the issue with the system and if it finds any issue it will prompt you to Apply the fix, you can click on that and proceed further.
    If the issue persists after performing above troubleshooting then I strongly suggest you to visit nearby service center for further assistance.
    Click here to open a link where you can select the country and get the exact contact support number. I’m sure they will be a great help.
    Hope this helps. 
    Best regards,
    Hemanth Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Programmatically identify and select DAQ device

    Hi all,
    I'm using Labview 8.0 to control a system which contains a USB DAQ device (9215A BNC for info). I can control everthing fine and use the DAQ card, but the software I'm writing will ultimately be supplied (as an executable or the like) with the system for use on end user computers. Its possible that some of the end users may already have NI DAQ cards installed in their systems. How can I make sure my software addresses only the DAQ card inside my system? Is there a simple way of programmatically listing all of the devices attached to the computer and then identifying the one that I want?
    If I name the device in NI MAX, for example, if I then plug it into a different computer, does it maintain that name? Or is that a local thing only?
    Any help would be greatly appreciated.
    Regards
    Paul

    Hi,
    thanks for the second reply. What I basically wanted was some way of finding the "device name" of the DAQ device in my system when its connected to a computer with multiple other DAQ devices attached. Ultimately, I did something similar to what you sent in that second example (see attached) which scans through the serial numbers of the DAQ devices attached to the computer and compares them with the serial number (entered manually) of my device. It then returns the device name that matches, so I can pass that to whatever future daq commands need it!
    Thanks again for the help
    Regards
    Paul
    Attachments:
    DAQ_ID_example.vi ‏20 KB

Maybe you are looking for

  • 9.2.0.6 or 9.2.0.7 client

    does anyone know where I can download the patchsets for either of these products. I tried metalink and technet and I cannot find either ..

  • Vendors PAN Number field Mandatory in Vendor Master Data

    HI, I am working in 4.7 EE version. I want to make Vendors Pan Number field mandatory while creating Vendor Master Data. As per my knowledge we cannot use Validation for this purpose. Regards Sudhakar

  • ORA-10827: database must be opened with MIGRATE option

    Hi, We are trying to migrate an Oracle 8.1.7 database to an Oracle 9i(9.2) database. I moved all the database files to the appr folder and I created a new instance using: oradim -new -sid PROD -intpwd Oracle -startmode a -pfile C:\oracle\OraDb\Neurop

  • Sales Document from billing document

    Dear all, How can i get the corresponding sales document number form a billing document number? Plz let me know. Rahul.

  • ERROR = CONNECT failed with sql error '1017'

    Hi, we are getting the following error when we run r3trans -dx.It is an windows system. Here i have attached the trans.log. 4 ETW000 r3trans version 6.14 (release 700 - 16.10.08 - 16:26:00). 4 ETW000 =============================================== 4