Daqmxbase 3.2 vi examples

I've installed NIKAL19.iso, NI-VISA-4.5.iso, nidaqmxbase-3.2.0.iso and finally LabVIEW8.6.1 in that order on Scientific Linux 5.2 which is essentially RHEL5.  Once I put the PCI controller in the correct slot and boot the machine with the PXI crate on, well, I'm floored to find out that
# lsdaq
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI 6221:     "Dev1"    (PXI15::15::INSTR)
Which is exactly what I wanted.  The next step seems to be to figure out how to use this device.  Best way is through examples, right?  They aren't there.  Oh sure, I have C API examples for daqmxbase, but nothing in LabVIEW examples or nidaqmxbase/examples.  Can't find anything to download on ni.com.  So, where are they?
Dan

Run the DAQmx Base INSTALL script again. Since LabVIEW 8.6 was installed after Base, the script didn't know that you wanted any LV examples ;-)
Joe Friedchicken
NI VirtualBench Application Software
Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
Senior Software Engineer :: Multifunction Instruments Applications Group
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)

Similar Messages

  • Memory Leak in PDA Example App.

    I am running the Read Dig Port.VI example that is located: C:\Program Files\National Instruments\LabVIEW 8.2\examples\daqmxbase\PDA\Dio on my PDA (HP iPAQ 2790b) with NI CF 6004 DAQ card. When I check the program memory on my PDA, I see a leak of .01MB about every 5 seconds. Anyone else notice this?
    Using:
    LabVIEW 8.2
    PDA Module 8.2
    DAQmx Base 2.10
    (I was seeing a .01MB leak every second when I was running my own application, so I switched to the example given by NI to see if that was causing the same issue)
    Thanks,
    Vickie

    Hi,
    I have been using
    Labview 8.2,
    Labview PDA module 8.2 and
    NIDAQmxbase 2.1  on a
    HP iPAQ hx4700 with a
    CF-6004 DAq card
    ,and I think I have similar problems.
    I made a PDA application that aquire continiously 200 samples/second on 4 channels. The DAQ task is configured to get 400 samples (2 seconds of data) each itteration. That should be 3.2KBytes every 2 seconds, but I'm loosing about 18KB every second untill my application crashes.
    I tried new DAQmx versions, but that only made things worse.
    I would be very interested in discussing the PDA module with anybody who's got some experince. You can allways email me: tschrama-at-fsw.leidenuniv.nl
    Regards,
    Thijs Schrama

  • Error 200428 in linux example code

    Hi All;
    I'm trying to use the mx daq-base on a redhat 9.0 system. I have a 6031E installed(pci). I've installed the hardware, then the software and compiled the example code. When I try to run the writeDigPort example I get;
    Device indentifier is invalid.
    DAQmxBase Error: -200428
    lsdaq reports:
    NI 603E: "Dev2" (PXIO::16::0)
    Nay ideas?
    Pat

    After further looking into the problem I'm getting an error -200220
    here is the suspect code
    char chan[] = "dev1/port0:1";
    error1= DAQmxBaseCreateDOChan(taskHandle,chan,"",DAQmx_Val​_ChanForAllLines);
    DAQmxBaseGetExtendedErrorInfo (errBuff, 2048);
    printf("\nDAQmxBaseCreateDOChan returned %d %s",error1,errBuff);
    This gives the following output
    DAQmxBaseCreateTask returned 0
    DAQmxBaseCreateDOChan returned -200220 Device identifier is invalid.
    Data to write: 0x55
    DAQmxBaseGetExtendedErrorInfo returned -200428 Value passed to the Task/Channels In control is invalid.
    Anyone have any idea?
    Pat

  • WriteDigPo​rt example didn't work

    I am working with NI-DAQmx Base for OS X, 1.4.0f2. I tried running the example program writeDigPort using a PCI-6014. The result was the following output:
    [Rumble:NI-DAQmx Base/examples/dio] johnweek% ./writeDigPort
    Data to write: 0x55
    openDevice(PXI6::3::0): Error opening nirlpdrvk.
    openDevice(PXI6::3::0): Error opening nirlpdrvk.
    DAQmxBase Error: 15
    I don't see anywhere in the example code where the two lines starting "openDevice" are output, so this must be coming from NI-DAQmx Base itself. It would seem that output from the library like this would be a bug.
    The error code isn't one of the -2xxxxx numbers, so it must also be an internal code that has escaped from the library.
    Should this example run on a PCI-6014?
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

    Alan A. wrote:
    Have you run lsdaq, to ensure proper installation of your device? Do any other examples work? Analog in or out or digital in? Are you using a dynamic or static version of Write Dig Port? To use a static example, you will need to have a DAQmx Base digital output task created in the DAQmx Base Task Configuration Utility. You will then input the name of that pre-created task. To use a dynamic example, you will use physical channel names like "Dev1/port0".
    -Alan A.
    I have run lsdaq, and my board appears in the list. I have done quite a few other things with the board, including my own DIO port reads/writes, using the static read/write function DAQmxBaseXOP_ReadDigScalarU32() or DAQmxBaseXOP_WriteDigScalarU32(). The example cited in my initial post does not use the Scalar version; it uses a 1-sample buffer instead.
    I know that buffered digital I/O on my board (PCI-6014) is not supported using DAQmx Base, and it looks like I can't use the buffered functions with a 1-sample buffer, either.
    My post was really about the fact that running the example results in output that should have been caught before I saw it, and turned into one of the official error messages. I was also interested to know if a 1-sample write should work on the PCI-6014, where buffered digital I/O is not supported.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • We want to replace DAQmxSetTimingAttribute() with its equivalent in DAQmxBase

    We want to replace DAQmxSetTimingAttribute(taskHandle, DAQmx_SampTimingType, DAQmx_Val_OnDemand) with the equivalent in DAQmxBase.
    We are running our app in continuous mode and need to change mode to single scan mode. We have used DAQmxSetTimingAttribute with "DAQmx_Val_OnDemand" in the past but we now must use the "Base" library which does not contain the expected replacement: DAQmxBaseSetTimingAttribute()
    We also tried several of your example files which used DAQmxBaseCfgImplicitTiming (ctr/buffPeriodFinite, ctr/genDigPulseTrainCont-DigStart) and got similar error messages:
    "Error: Value passed to the Task/Channels In control is invalid"
    This error occurred on the PC and Mac.
    We are using the USB-9215.
    Do you have any suggestions to at least get your examples working?
    Mike

    You should just be able to set up a finite acquisition for the number of points you need.  In most cases with NI-DAQmx Base, an acquisition is hardware timed and either finite or continuous.  Just use DAQmxBaseCfgSampClkTiming with sampleMode set to DAQmx_Val_FiniteSamps. This same method would work with NI-DAQmx as well.
    DAQmxCfgSampClkTiming
    int32 DAQmxCfgSampClkTiming (TaskHandle taskHandle, const char source[ ], float64 rate, int32 activeEdge, int32 sampleMode, uInt64 sampsPerChanToAcquire);
    Message Edited by Malcolm on 11-09-2005 09:20 PM

  • Pda module - ao examples for 6024 E daq card

    I am having trouble finding a working example of Analog Output for PDA (using a daq card 6024 E). Ni.com suggests using "PDA single point AO.VI" but I do not know how to configure channels. The website further states: "Single-point analog output is not supported in NI-DAQmx Base 1.0"
    Essentially I have tried using both Configuration utility and MAX to set examples, but in both cases the example does not recognize them. Is there any other way to configure a channel?
    Any suggestion will be greatly appreciated.
    thanks,
    -petar 

    Hi Petar-
    I spoke with the engineer you reached over the phone and seemed to believe that you might be using the incorrect version of NI-DAQmx Base.  With PocketPC you will need to use NI-DAQmx Base for PocketPC 2003.  After uninstalling your current version and installing this new version you will need to also install the driver software to your PDA.  This can be accomplished when connected to ActiveSync by choosing the option to install the driver to PDA in the Start>>Programs>>National Instruments>>NI-DAQmx Base folder.
    You will need to create the task to be used in the NI-DAQmx Configuration Utility in Windows.  First open the utility and click "Create New Task."  Make sure you give it a descriptive name and choose the appropriate device type as well as selecting an analog output channel type.  Click "Save and Exit" to save your choices.
    You will then need to open LabVIEW and target your PocketPC 2003 device on the splash screen.  Make sure that you do not open LabVIEW before saving the Task in the configuration utility or the task will not be referenced properly.
    Finally, extract the zip file in this KB and open the "PDA Single Point AO.vi" and click "Run" in LabVIEW with the target set to the PDA.  After a short time to build and deploy the app you should see the front panel appear on your PDA.  I tested with a DAQCard-6024E with good results.  Note with this example that you will need to click the "RUN" button each time you want to update the output voltage.
    EDIT:  I forgot to mention- if you receive a prompt for "ESeries.dll" you might have to browse to "C:\Program Files\National Instruments\LabVIEW 7.1\PDA\utilites\LVPocketPCProject\lib\DAQmxbase\E​Series.dll" to find the necessary file.
    Hopefully this helps-
    Message Edited by Tom W. on 07-27-2005 05:30 PM
    Tom W
    National Instruments

  • Interface via DAQmxBase to USB6501 daq

    Hello,
    I have a USB6501 which is a 24 line digital I/O. I have no problem
    using it using the the standard "DAQmx" functions. However as I need to
    use the device in Linux (redhat enterprise WS3, which is suported), The
    only vi package available for labview 7.1 Linux is the "DAQmxBase
    version 1.5". This installs fine and the command "lsdaq" gives a
    listing of my device "Dev1". However when I attempt to run either my
    own or one of the examples, it says "Error-200170 occured at physical
    channel specified does not exist on this device"
    Something similiar happens when I use the DAQmxBase in windows. Any help would be great.
    Cheers

    Hello BJ_phy,
    There is a firmware "switch" necessary to move the device from NI-DAQmx to NI-DAQmx Base and vice versa.  Check out this KB:  Using the USB-6008/9 and USB-6501 with NI-DAQmx or NI-DAQmx Base.  That should do the trick, re-post if this does not solve your problem. 
    -Alan A.

  • Linux app builder hangs with daqmxbase 1.5.0-f2

    Having a problem building apps on linux using daqmxbase 1.5.
    Test machines are:
    A fresh installation of Suse 9.2 (kernel 2.6.8) on a Dell SC420 to which I added Labview 7.1, Appbuilder and daqmxbase 1.5.0-f2. Building our app fails on the "Copying files to application" part - the progress bar hangs at about 40% complete. The Labview windows become unresponsive, disk i/o stops and the process has to be killed.
    I tried building some of the NI examples to pin down a possible issue with our vi but the same thing seems to happen with any example that has a daq component.
    Normalize Waveform example - builds and runs fine
    Signal generation and processing example - builds and runs fine
    Our app - hangs
    USB-6008/9 Interactive Control Panel - hangs
    Count digital events buffered continuous ext clk example - hangs
    In case there was an issue with Suse or 2.6.8 I tried a fresh install of Redhat 9 (2.4.20) on a different box, added labview, appbuilder, daqmxbase 1.5 and the same thing happens - the builder hangs.
    Figuring that the builder might need some hardware in order to build an app properly I also gave it a shot with a USB 6009 plugged in - same result.
    Being new to labview I'm unsure whether there are any specific log files I can provide that will help track down this problem - /var/log/messages has nothing.
    Any ideas?

    I've tried different kernels (the machines are P4 w/HT so the installer defauls to an smp kernel). Currently running linux 2.6.8-24.10-default #1 Wed Dec 22 11:54:27 UTC 2004 i686 i686 i386 GNU/Linux. I've tried various other smp and non-smp kernels.
    I've uninstalled and reinstalled Labview, app builder and daqmxbase in various sequences. I've even reinstalled the entire Suse 9.2 OS and played with various grub and BIOS options. I've tried with the vanilla OS install and after applying the available patches through YaST.
    I should point out that the app runs fine in Labview itself and compiles without errors on Windows.
    There were no errors reported when installing Labview or daqmxbase and nothing in the system log.
    I'm at a complete loss. The app builder fails every time, on different boxes, and it 100% reproducable.
    I guess I'll give Mandriva 10 a try. In the meantime.... help! Message Edited by PaulSmith on 06-17-2005 11:52 AM
    Message Edited by PaulSmith on 06-17-2005 11:52 AM

  • DAQmxBase DSSetHandl​eSize

    I use MAC OS X (10.4 tiger) and installed now LabView 7.1. I additionaly installed lvtigertools. In LabView 7.1 I have now daqmxbase examples, i.e. Cont Acq&Graph Voltage-Int Clk.vi et al.
    These vi examples are compiled without any errors. But when I start the vi I always get the error message:
    Couldn't find LabVIEW bundle; function=DSSetHandleSize".
    Something must be wrong now in my LabView? Was lvtigertools the bad thing?
    Who has a similar problem?
    Who can give me a hint to solve the problem?
    Rudolf Lehn

    Hello Mr.Lehn,
    I have read also your another massage and I know you are using USB-6008.
    Which version of Mac OS X 10.4 is installed?
    Which versions of DAQmx Base are you linking?
    I would recommend you to install the DAQmx 1.5 B driver from this page:
    http://digital.ni.com/softlib.nsf/websearch/315938​03B856C5AC86256FF8005FA4EB?opendocument&node=13206​0_US
    Please let me know if the reinstallation from driver did not help.
    Best regards
    AmirG

  • USU 6009 counter error: DAQmxBase Error -200428

    I want to use USB 6009  as an edge counter. I got this ouput :
    create task
    createCounterChan
    start task
    DAQmxBase Error -200428: Value passed to the Task/Channels In control is invalid.
    with following code:
     // Channel parameters
       const char  counter[] = "Dev3/ctr0";
       // Read parameters
       uInt32 readArray[1];
       uInt32 arraySizeInSamps=1;
       uInt32 initialCount=0;
       int32 numSampsPerChan=1;
       int32 sampsPerChanRead;
       float64 timeout=100;
       DAQmxErrChk (DAQmxBaseCreateTask ("", &taskHandle));
       printf("create task\n");
       DAQmxErrChk (DAQmxBaseCreateCICountEdgesChan (taskHandle, counter, NULL, DAQmx_Val_Falling, initialCount, DAQmx_Val_CountUp));
       printf("createCounterChan\n");
       // Start Task (configure port)
       DAQmxErrChk (DAQmxBaseStartTask (taskHandle));
       printf("start task\n");
       DAQmxErrChk (DAQmxBaseReadCounterU32 (taskHandle, numSampsPerChan, timeout, readArray, arraySizeInSamps, &sampsPerChanRead, NULL));
       printf("Data read: 0x%X\n",readArray[0]);
    Please help

    Hello nguyendyhung,
    Thank you for posting to the discussion forum. Here is a KnowledgeBase that explains this error.
    NI-DAQmx Base Error -200428
    http://digital.ni.com/public.nsf/websearch/7705D38D59EF562886256F79007E4B5A?OpenDocument
    This document is going to reference LabVIEW, but the theory is still going to be applicable with your code. You can get this error message if the task is not configured correctly.
    Also take a look at some of the shipping examples that come with DAQmx Base. You can find them in the following folder:
    C:\Program Files\National Instruments\NI-DAQmx Base\Examples
    Please take a look at these resources and let us know it resolves your issue.
    Regards,
      Sandra T.
    Applications Engineer | National Instruments

  • Just installed Firefox 4. It hangs when I open any website and type in, for example, an ID, or even just click on something, for example, "Compose", in my webmail site.

    Here's the detail of what happens.
    1. Turn on computer and then click on Firefox icon on desktop.
    2. Firefox opens. Everything looks OK. Mr Bunsen's graphic is working fine.
    3. Click on any webpage link. For example, a newspaper or an online webmail page. All looks OK until
    4. Click on anything or type anything, such as in ID in a box, and bingo, the top line of Firefox goes from dark blue to very pale blue and the computer is hung. You cannot get out of Firefox or get Firefox to work.
    5. Switch off computer.
    Is this perhaps due to a clash of Add-ons. I run Avast anti-virus. McAfee came with Firefox 4 and I did not reject it. Is it conflicting wth something in my system and causing it to hang?

    You can modify the pref <b>keyword.URL</b> on the <b>about:config</b> page to use Google's "I'm Feeling Lucky" or Google's "Browse By Name".
    * Google "I'm Feeling Lucky": http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=
    * Google "Browse by Name": http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=
    * http://kb.mozillazine.org/keyword.URL
    * http://kb.mozillazine.org/Location_Bar_search

  • Some of my apps refuse to open. For example, google crome gives me the message that it quit unexpectedly and gives me the option to submit a report to no resolve. Does anyone have suggestions?

    Some of my apps refuse to open. For example, google crome gives me the message that it quit unexpectedly and gives me the option to submit a report to no resolve. Does anyone have suggestions?

    Welcome to the Apple community.
    Does anyone have suggestions?
    Trash the spyware (Chrome) and use Safari.

  • How can I change the background of a running webpage on my own. Example Facebook I want to change its backround color from white to black just in my view not for all

    How can I change the background of a running webpage on my own. Example Facebook I want to change its background color from white to black just in my view, not for all. Cause I really hate some site with white background because as I read for an hour it aches my eyes but not on those with darker background color.

    You can use the NoSquint extension to set font sizes (text/page zoom) and text colors on web pages.
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • TS1814 Most of the songs on my iPod Classic no longer dshow up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Th

    Most of the songs on my iPod Classic no longer show up on iTunes on my laptop.  I deleted iTunes & installed the latest version but this did not change anything.  For example on 1 playlist I have 66 songs but only 1 shows on the iTunes screen.  Thanks you for any help.

    See Empty/corrupt iTunes library after upgrade/crash or
    Recover your iTunes library from your iPod or iOS device.
    tt2

  • When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.

    When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.
    Initially I could find no cause. Then I tried right click - Edit and on the affected images, always get this warning:
    "Image Cannot Be Edited - This photo was previously edited with another application or with an early version of Iphoto. Duplicate this photo to edit it." and a "Duplicate To Edit" Button is displayed. 
    The external Editor defined for iPhoto is Adobe Photoshop Elements.
    Now, I reckon the MUST be others out there affected by this same apparent Preview bug, yet my searches have not revealed any answers.  Also seems impossible to find a contact number for adobe???
    Thanks

    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?

Maybe you are looking for

  • PO and GR in Project Stock

    Hi Could you tell me how to create PO for Project and Goods Receipt in Project Stock. Thanks and Best regards, Thang

  • ITunes Sharing on a NAS?

    I have a wired home network consisting of a Mac Mini running 10.6.8, an iMac with 10.8.5, and a MacPro with 10.8.5.  All three have iTunes 11.0.4 but my main iTunes library is on the iMac.  I've been running it as a shared library so that I can acces

  • How to re-establish my iTunes photo library?

    How do I initialize my pictures library on my PC in order to sync to my iPhone? I have the photos on the PC but iTunes doesn't recognize this.

  • Par Iview

    Hi I import one ParProject zip to NWDS n Wher can i change for     Costamized for myself. this is first time i used Par files i dont know nothing about implementing par files so send me any details for implementing par files. thanks & Regards Narayan

  • Cant delete flash player 9

    I cant uninstall it, it isnt in my control panel, where can i find it to get rid of?