Connecting DAQ Device to VI Question

I downloaded a program titled "Acquire_andSave_as_.Wave_File.vi" from the Developer Zone and attempted to run it. Got an error "The specified device is not a National Instruments product, the driver does not support the device or the device has not been configured using the Measurment & Automation Explorer"
I opened the Block Diagram for what I think is the routine crashing (causing an error) and MAX sees my M Series 6250 card and channel - but how do I check that the Program is calling or referring to the right hardware device?
What am I not doing to connect the hardware (M Series 6250 PCI card) to the VI program?
Thanks!

Dennis Knutson wrote:
Yes.
I see that Dennis shares my opinion that less can be more.
To expand just a bit on edw's follow-up question, you can absolutely replace just the Traditional NI-DAQ portion of the code with NI-DAQmx VIs.  I meant to imply in my first reply that the example I suggested had the same functionality as the Traditional DAQ chain in the save to wav file example and could be dropped in to achieve the same functionality.  I have attached a slightly modified version of the save to wav file example to give you an idea of where to start.  Keep in mind that you will need to specify two channels (i.e. DevX/ai0:1) for a stereo acquisition.
I hope this helps- 
Tom W
National Instruments
Attachments:
Acquire_and_Save_as_.Wav_File with DAQmx.vi ‏123 KB

Similar Messages

  • Command or Query to list all connected DAQ devices

    Hi,
    I am looking for a simple query or function in labview to scan for connected DAQ devices and list them.
    Example: With VISA drivers, there is a function "find resources" when passed appropriate query string will return with the list of Ports (or devices connected).
    Is there any similar command that can be used for connected DAQ devices? I can look in MAX and see all devices connected under "NI-DAQmx Devices". However, my aim is to get that list in Labview via a query or function.
    your input is appreciated.
    Thanks,
    SS

    You use a couple of DAQmx property nodes.
    Message Edited by Dennis Knutson on 05-13-2008 02:10 PM
    Attachments:
    Get List Of DAQmx Devices.PNG ‏4 KB

  • Daq device questions

    Hi:
    I need to syncronize AO and DO on a DAQ device. 
    I am thinking about USB-63XX series (for example USB-6341.), which has clocked DO, and probably cheaper than PCI series.
    I have checked this example : http://digital.ni.com/public.nsf/allkb/EBD603683446EC13862575B3006A63A2 , which makes DO's clock to be AO's sampling clock.
     (the website shows that example is for PCI-series)
    What I am not sure is, is this kind of shared clocks supported by most of the DAQ device with clocked digital output?
    Many thanks
    js777
    Solved!
    Go to Solution.

    Hi js777,
    You are referring to sample clock synchronisation as mentioned in the article in your post. This type of synchronisation is supported on most types of DAQ devices. Please refer to the following links for a list of the NI DAQ models that support this form of synchronisation:
    http://zone.ni.com/reference/en-XX/help/370466V-01/mxdevconsid/synchronmxsc/
    http://zone.ni.com/reference/en-XX/help/370466V-01/mxdevconsid/synchrone/
    Please note that as mentioned in here: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/syncsampleclock/ this form of synchronisation can result in jitter when used with multiplexed DAQ devices.
    Thanks and Regards,
    Supreeth.K
    Applications Engineer
    NIUK

  • Programati​cally delete a DAQ device

    I have created a system with hardware (a USB DAQ) and software that is to be installed on multiple computers overseas. I want to make the set-up as easy as possible because I don't think the people doing the setup will be very well trained, and I won't be there to fix any problems.  I have created an installer that includes all the hardware as well as software setup, but there is one issue left, and I'm not sure what the best way to solve it.  If the installer is run before the DAQ is connected, then the installer creates a virtual device. If the DAQ is then connected, it is named Dev1, which doesn't work with any of my tasks, of course. I have some code that runs, and verifies the hardware set-up each time the system is started, so I can see if the device with the proper name is virtual, and if so, I can rename the actual and virtual DAQ device to the right names, so my tasks operate properly. However, I now have a virtual device hanging out on my system doing nothing, which I would like to avoid, because there is an outside chance that I will end up on the phone trying to explain to people how to straighten out a system when it goes bad, and I want to keep it as simple as possible.  I have two questions:
    Is there some way to delete the virtual device programatically?
    Is there some better approach to accomplish what I am trying to do? I thought about not allowing the installer to proceed if there is no DAQ device plugged in, but I don't know if that is possible.

    Jeff·Þ·Bohrer wrote:
    Hmmmm...... There has got to be a way to script up the "Toss Tasks to MAX" and "include .nce" as part of a "Deploy" process. Wirebird, Jack?  any opinions on that?
    I would tend to agree with John_P1's quote below:
    John_P1 wrote:
    I honestly just build up my tasks programmatically.... You can do just about anything that you could do in MAX programmatically via the System Configuration API.
     And I would tend to shy away from:
    Jo-Jo wrote:
    ...I just find [that using MAX] really speed development, and help with maintanence because you can test out all of your tasks in MAX outside of any LabVIEW code. And debug and toubleshoot hardware without using any of your own software, so you know any problems are not software bugs.
     once going into production. MAX tends to be a good tool for getting your feet wet after unboxing the hardware, but something you gradually migrate away from after the prototyping phase -- yet occasionally return to, as you mention, if you need to back up to square one for new prototyping or as a sanity check.
    It's possible to deploy NCE hardware behavior configurations, but not necessarily desirable. For the same reason it's possible to deploy any arbitrary configuration (INI, XML, ....), yet it's likely more desirable to build this configuration programmatically -- perhaps persisting it to disk if it's a user-modify-able configuration, or if it's desirable to persist user settings between subsequent deployments -- else it might be most desirable to keep the "configuration" hard-coded as essential business logic (as DAQ tasks might tend to be).
    Though, it sounds like you have a solution, and that's far more valuable than more work! Keep a tally on whether the current deployment strategy keeps you and your end users happy, and if so, keep it! Else, consider John_P1's advice, which is more likely to scale with your application if things get hairy.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

  • How to connect many devices with only one FW800 port in iMac?

    Hi,
    I am upgrading to a new Intel iMac from a 2004 vintage Dual2.0GHz PowerMac. I currently have 8x d2 Quadra drives chained by FW800, and 2x Iomega drives connected vis FW400 hub which also connects HD cams.
    My questions is that with only one FW800 port in iMac, I think my devices connectivity is the following?
    (1) Get a FW 800 hub (I can only find 2 port ones at the Apple store and BestBuy)
    (2) Connect the d2 Quadras to one port of the FW800 hub
    (3) Get a FW 800 to FW 400 cable
    (4) Connect my 6 port FW400 hub to the 2nd port of the FW800 hub
    Thanks for reviewing this solution, and I would also appreciate other suggestions or hear about your experiences if you have a similar set-up.
    Will

    In addition to your listed considerations, you should consider the following.
    Many storage needs do not required FireWire 800 speed. For example, USB 2.0 works fine for your Time Machine backup drive. If you are just storing user data such as your iPhoto or iTunes media files, USB 2.0 is more than fast enough. So, as much as possible, if any of those external drives have USB 2.0 connections and the data storage does not need FireWire 800 speed, offload as much as possible to USB 2.0. I used to be a +FireWire snob+, but since getting an Intel iMac, I find that USB 2.0 works quite well for most data storage purposes.
    There are new hard drives that are power efficient and as large as 2TB. Consolidate your data storage needs onto a smaller number of very large drives, partitioned as needed. This will make your setup more reliable (smaller number drives), and save reduce power consumption. If any of your current externals are SATA, you can probably replace the existing drive with an extra large one.
    So, I think you setup should be, extra large FireWire 800 drive connected to the FireWire 800 port directly. Using a 9-pin to 6-pin cable, connect the FireWire 400 hub. Connect any non-storage FireWire 400 devices there. Do some data transfer testing to make sure having the 400 hub there on the chain does not cause the 800 connection to slow down.
    Connect other drives as needed using USB 2.0, existing or new. Retire the smaller of your external drives.

  • USB connectivity policy not working on 1st connect of device

    Hi,
    I have an problem concerning my USB connectivity policy. My endpoint zone is blocking all USB devices. Users do have access for known USB devices (USB storage devices) I have put into another USB connectivity policy which is attached to the User objects. In general everything is working fine, unknown devices are blocked and registered devices are allowed.
    But I have weird behavior when a new,unknown USB device is connected the very first time. Then Windows starts detecting it, installs the driver but does NOT deactivate them. The device is displayed and accessible through the Windows Explorer. It seems something is blocking the Endpoint agent from deactivating it. Windows Autoplay and Autorun Function already HAS BEEN disabled. No Antivirus is installed on that system.
    The ZES log files contain many of these messages:
    ""USB-Massenspeichergert"(USB\VID_0781&PID_5151\0775131 B33009E3D) failed
    [09.04.2012 10:45:19.692][14] Component: Always: ZES Component Manager: Reboot Requested by: Device Watcher (Suppressed)"
    Same behavior i had when Autoplay was still active: Once the Windows Autoplay did automatically open a folder or file on a new stick, the Endpoint agent was unable to deactivate the device. This seems not to be a very reliable method to block devices...!
    When I disconnect and insert the device again, everything is fine (blocked). Problem only appears on very first use of a device!
    My questions:
    Can I somehow prevent that Windows displays new devices in the Windows Explorer before they are blocked? I would prefer that they FIRST are evaluated and THEN will be accessible for the User?
    Is there another place in ZCC (except by adding USB connectivity policies to the zone) forcing the endpoint agent to block devices?

    What version are you using? If you're not using the latest 11.2.1 MU1, then please upgrade.
    For autoplay, you can block this with a policy setting as well (disable autorun and/or autoplay).

  • How to connect DAQ with ARM9?

    please help me to connect DAQ with ARM9.
    Solved!
    Go to Solution.

    As a new user one should start reading the 'Help', which in this particular case is called 'New to the NI Forums? Read a quick introduction'.
    It can be found on the main forum page, http://forums.ni.com/
    Citing this introduction:
    'Sometimes, you won’t be able to find a thread that answers your question.  In this situation, you can post a new topic under the board that represents your product.'

  • Canopus 110 and the dreaded "Cannot connect to device"  msg

    I am using Premiere Elements 2.0 with the Canopus 110 to make copies of my HI-8 and Beta tapes, and getting increasingly frustrated with the way PE 2 drops my temporary file and forces me to start the whole copy over again from the beginning every time I get the "Cannot connect to device" error. It occurred to me that maybe later versions of PE have fixed this problem. It seems simple enough -- when I press 'Stop Capture' the temporary file instantly becomes permanent, so why not when I get a momentary interruption in the signal? It would be worth $100 to me to upgrade to PE 6 or 7 or whatever the latest version is.
    So, my question is directed toward others who are plagued by this irritating message: Do the later versions of PE 'save' what has already been recorded?
    Thanks!

    'Stop capture on dropped frames' was already turned off. You gave me an idea, however. I will turn it ON and see if that solves my problem (if Capture must be aborted, I want PE2 to save what has already been captured).
    I had not heard of WinDV and was quite impressed. Only a 38K download, and it works right out of the box! Now to try recording and see what it does when the connection is interrupted.
    Two good ideas -- thanks, both of you!

  • How to set the sampling interval using DAQ device?

    Now I have a capacity sensor and a 24 bit DAQ device (http://www.mccdaq.com/usb-data-acquisition/USB-2404-10.aspx).
    The DAQ device has the maximum sampling rate of 50kS/s . My question is how to set the interval of data collection. For example, if I set the sampling rate to 2000, in continuous sampling mode, I use DAQmx read.vi in a while loop and set the 'number of samples per channel' to 100. I want to plot these data as a function of time by using a XY graph and also save these data. So I add a 'Mean' function to get the average of the 100 samples per each loop (than means, there are 20 data output per second). But when I set the 'number of samples per channel' much smaller (to get more data per second), there are some problems. It seems that the program cannot read so many data and get the average at a higher frequency. I don't know where the problem is. All in all, how to collect data more frequently?Maybe I didn't express my question clearly. I'll upload a simple program later if necessary. Thanks.
    Solved!
    Go to Solution.

    Another question is in continuous mode, NI DAQmx uses Samples per channel to determine the buffer size. But according to the website you specified, it says if the acquisition is continuous (sample mode on the DAQmx Timing.vi is set to Continuous Samples), NI-DAQmx will allocate a buffer according to the following table. And for sample rate between 100 - 10,000 S/s, the buffer size is 10 kS. So if I set the sample rate to be 5000 S/s, and set the Samples per channel to be 20000, then what exactly the buffer size is? 20 kS or 10 kS?
    Thanks.

  • 1536dnf ToolboxFX unable to connect to device

    Printer and faxing was working perfectly for several months with XP computer but when I tried to install on my new HP computer with Win7 Pro the ToolboxFX "cannot connect with device".  I am able to print without any problems but when I open ToolboxFX the message appears.  ToolboxFX lists the printer as a known printer but cannot connect.  I have spent hours with tech support with no success.  There seems to have been previous issues like this but they are older and link to firmware that no longer exists or are for XP systems.
    .  I have uninstalled and reinstalled both from CD and from web site.  Installed firmware and updates, removed them and went back to factory defaults.  I have run out of ideas and so has tech support.  There has to be a resolution.  This is an HP printer and an HP computer.  There shouldn't be compability issues.

    Hello KKCPA,
    Welcome to the HP Forums!
    I understand when you open the ToolboxFX you receive a message "Unable to connect to device". I will do my best to assist you!
    I can relate to how frustrating this is. Just to let you know, the HP Toolbox FX is not supported in Windows 7, Windows Server 2003, or Macintosh operating systems. This HP document on Using HP ToolboxFX states this information. This is why you're receiving this problem.
    Please let me know if you have any further questions.
    I worked on behalf of HP.

  • DAQ device for linear encoder & labview 7.0

    Ok, I am in a bit of a bind, so the quicker the response the better =).    I currently have Labview 7.0, and am needing to read the pulses of a MicroE hi-res encoder.  I know I am in need of a DAQ device, so I just want to know which one would be the best (cost-effective & easy to manipulate with Labview).   Also, I need three analog inputs as well.  Preferably the range of the analog inputs would be 0-10 volts (well, preferably 0-10mv, but that is unikely).  I am very unfamiliar with programming Labview, but will learn what I need .
    Thank you VERY much!

    Hello heepofajeep,
    I would highly recommend you go with an M-Series Mulitfunciton DAQ Device for this application.  The two counter channels on these devices have expanded support for two phase relative linear and angular encoders, compared to older E Series devices.  In addition, these devices are capable of performing analog input, analog output, and digital I/O operations.  They contain a minimum of 16 analog input lines, with a programmable gain amplifier that will allow you to programmatically set the range anywhere as large as +/-10V to +/-0.1V in order to take full advantage of the resolution of the ADC on the device.  These devices can be programmed in LabVIEW 7.0 or later with the NI-DAQmx driver, and there is the DAQ Assistant and many great example programs for getting up and running with your application quickly.
    I hope this information helps and let us know if you have any further questions.
    Regards,
    Travis G.
    Applications Engineering
    National Instruments
    www.ni.com/support
    Message Edited by Travis G. on 08-18-2006 04:55 PM

  • Analog measurement WITHOUT DAQ device

    Hello everyone,
    I have an analog voltage which is varying between -10volts to +10volts. Is it possible to measure this analog voltage using LabVIEW software without DAQ ? If not kindly suggest the options available for DAQ device.
    In the traditional interfacing techniques which uses parallel port and/or serial port. We can acquire signal using C language and inport and outport commands.And no DAQ is required.... I was hoping if LabVIEW can be used without a DAQ device.
    I know that RS232 and parallel port can be used but how will the space and mark levels be used for acquiring an analog signals.

    Hello Miaa,from your description I can think about two things,that remind me the days when there where no sound cards
    at all computers,but people found the ways to produce sound from PC:
        1)   
                 Output:  you can get from your LPT 8 bit analog output if you connect all 8 data pins to one.
                 Input:  it probably possible to get 8 bit input,but you need to use some resistors,and have some knoledge in electronics,
                             in order not to burn your LPT with 10 volt input.
               Again,it's possible but not trivial way.
       2)    In general (very): one can get "analog output" even from 1 bit connection,
               in order to do it, the connection speed should be fast enought,and the illusion of "anlog output" reached by changing
              the ON/OFF state of the connection,in right way (playing with delays between ON/OFF,according to signal).
              About "anlog input" using serial port I can say nothing.
    In any case,this is very intersting but time cossuming issue,but if you know how to do it,the LabView part is not a problem,
    you have there access to parallel and serial ports.
    LV 8.2 at Windows & Linux

  • 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

  • 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.

  • 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

Maybe you are looking for

  • Office for IMac

    I am moving from MS Windows based and going to Apple products and operating systems. I know nothing about Apple or the operating systems yet. I am buying an IMac 27". I assume what I am getting on the IMac is OSX v. 10.9.4. All I have currently - and

  • HT1473 How do I add a 600 pcx x 600 pcx Illustration to my library?

    Although I uploaded Podcast episodes with original artwork (e.g., 600x600 images in *.png format), none show up as my library photo. How do I add an image after the fact?

  • My Yahoo mail won't load on my mac

    For some reason my Yahoo mail won't loand on my Mac, though it will automatically on my i-phone and i-pad. Always has done before, just seems to have stopped. Any ideas?

  • Why can't I use the free Adobe reader?

    I just submitted a question and all this pops up.  I couldn't afford the full subscription.  But when the trial period ended, it won't let me open pdf documents. So I downloaded the free adobe reader.  It still doesn't let me open pdf files.  I have

  • Problem merging all my partitions into one!

    I'm currently having problems merging all my partitions into one big partition. Disk Utility keeps on saying that "MediaKit reports partition map too small" when i try and erase any partitions. What can i do to merge all my partitions into one so tha