Measure 8 channels DAQmx and labView

hi there,
its me again. I now have only 2 days left to complete this program for my internship and I must say that I've learned a lot.
But here's the thing, I need to measure 8 channels from a DAQPad 6015. But I cant get it to work.
Here's what I have so far. I dont know if Im doing it the right way, but I think I am.
I hope someone knows what to do, so that I can go on with finishing this program.
Thanks in advance
Jaap
Attachments:
test.llb ‏2841 KB

Woow!
Hey Jaap, if all that you want to do is acquire from 8 channels, you do not have to do all this exercise and coding!
Just see this VI, It will do the job, Modify it to work as you need
Your VI is not efficient since you are not doing a continous acquisition, you are configuring, staring and stopping acquisition in each iteration
Go through examples shipped with labview to get an idea on how to go about
Regards
Dev
Message Edited by devchander on 01-12-2006 04:45 AM
Attachments:
DAQ channel acq.vi ‏80 KB

Similar Messages

  • How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    I hate "J term"
    OK I love the learning the students get.   And, I like helping them out!  But, as a former man who's got the varicose viens to prove he's spent time "behind the podium" (yeah, "behind the podium" puts 'em to sleep- songs and dances for the young'uns) come on! USE the tools you teach!
    Instructors invited to engage in the forums
    Jeff

  • Help, Ni-Daq channel names and labview program error 10001?

    Can anyone please help me, I have inherited a role that I know nothing about. I have managed to get an NT pc to now recognise the SC-2345 board, set up and configure two channels and test them in Measurement and Automation program, this I managed after getting error 10401 and looking within these message boards which are very good.
    I have then started a labview program, previously written by ex-employee, and now get error 10001, after trawling the FAQ and forums I think that I have a naming error in the virtual channels created, how do I find out what the channels should be named within the Labview program, do I need to load an editor etc and then open a config file?
    Sorry if this seams like a simple error, but I am trying to learn the software from a book that is a little tattered.
    Regards

    Hi,
      error 10001 can be caused by a few things including an incorrect scanning order.
    If you'd like to post your code back onto here (or if it's large, ftp it to ftp.ni.com/incoming and let use know the name of the zip file you've packaged it into), then we can see what the DAQ section is supposed to be doing and hopefully provide some clues as to where to look for the information / why the error is occuring.
    The first thing to do is go back to Measurement and Automation explorer and try setting up a global task that refers to the channels you're interested in.
    This removes the programming side of things, since you select from drop down lists, to verify that you can communicate correctly with the hardware at the rates and across the channels that you want.
    These links is going to be your best learning point for getting up an running with the program.
    http://digital.ni.com/public.nsf/allkb/DD52ABD7C15F0B15862562910074F09E
    http://zone.ni.com/devzone/cda/tut/p/id/3116
    http://zone.ni.com/devzone/cda/tut/p/id/4656
    In terms of LabVIEW, there's several I/O controls you can use which will list the hardware channels you have configured or the global tasks you have created in Measurement and Automation explorer. (see the last link above)
    Another option is to look at our Alliance Partners if you need things configured and up and running in a hurry.
    http://www.ni.com/alliance
    If you just need a little pointer on getting kicked off, then you could see if you local sales engineer is available to go through things with you for an hour if they're in your area at a convenient time (for the UK / Ireland, please call in on 01635 572410 and ask to go through to sales), or we do offer start-up assistance (but that's something you need to purchase) to get a day's onsite assistance with getting your hardware up and running and starting you off with advice / examples on your application (note this is an effort based thing rather than a results based guarantee)
    Finally you could consider coming on one of our courses on LabVIEW and / or Data Acquisition to learn more about the software / hardware and be better prepared to handle the implementation yourself.
    Hope that helps
    Sacha Emery
    National Instruments (UK)
    Message Edited by SachaE on 03-23-2007 11:49 AM
    // it takes almost no time to rate an answer

  • How do I use a counter for time measurement with NI-DAQmx and C++?

    Hi,
    I need my C++ program to read time (number of elapsed ticks) using the counter on PCI-6229. I had this written and working for the non-MX driver, and now I need to re-write it for NI-DAQmx.
    Here are the steps that I want to accomplish:
    1. Route the 80MHz timebase to the input of "Dev1/ctr0"
    2. Start the counter and let it count the ticks.
    3. After a while, read the number of ticks from the counter.
    Here is how I am trying to do it now (without success):
               DAQmxCreateTask ( "" , &taskHandle ) ;
               DAQmxCreateCICountEdgesChan ( taskHandle , "Dev1/ctr0" , "" , DAQmx_Val_Rising, 0 , DAQmx_Val_CountUp ) ;
               DAQmxConnectTerms ( "/Dev1/80MHzTimebase" ,  "/Dev1/Ctr0Source" , DAQmx_Val_DoNotInvertPolarity ) ;
               DAQmxStartTask ( taskHandle ) ;
               then DAQmxReadCounterScalarU32 ( taskHandle , 0.25 , &curCount , NULL ) ;
               and DAQmxClearTask ( taskHandle ) ;
    No errors are generated, but I do not see the tick count being incremented when I repeatedly read the counter.
    Advice will be greatly appreciated!!

    Hi Peter,
    Welcome to the forums!   I just want to make sure I understand what you are trying to do.  You would like to count the rising edges of the 80 MHz clock using DAQmx in C++.  In order to route the timebase to the counter, you need to use the signal name (PFI8) instead of the counter (Ctr0Source) for the counter source input.  This name is found in Measurement Automation Explorer (MAX) by right-clicking on the device and choosing “Device Pinouts.”  This will physically put the 80 MHz clock on the PFI8 line, so make sure you reset the device or disconnect the terminals after you are done. 
    That being said, may I ask what you are trying to do by reading the number of elapsed ticks?  If you are trying to monitor a hardware timed pulse, it would be better to count the frequency or period of that pulse.  This would provide better accuracy, because you are not relying on how fast DAQmx Read can poll the hardware.  If you are simply looking for a software based timer, I would recommend taking a look at this MSDN forum post. 
    Using the GetTickCount function instead will free up your counter and provide comparable accuracy to counting the edges of the timebase.
    I hope that helps you out, let me know if you have any further questions about this. Good luck with your project.
    Rod T.

  • DAQmx and Distribution

    Recently I tried to upgrade to DAQmx 8.8, only to find that it no longer supports LV 8.0 which is what I am using.  This is upsetting, but it is not the topic at hand.
    I understand that in order to develop my software in 8.0, I need to have DAQmx 8.7.1 or lower, but what about to distribute it?  In other words, if I give my client software built with LV 8.0, and he has upgrades to DAQmx 8.8, will the software work properly?  or do I need to provide him specific instructions not to upgrade his DAQmx?

    Hey Greg,
    DAQmx and LabVIEW are decoupled when it comes to executables. So you can develop in LabVIEW 8.0 with DAQmx 8.7 and your customer can use any version of DAQmx with the executable. The only real caveat with this is using older versions of the driver and unsupported newer features... so if you used some of the newer device property nodes introduced in 8.0 in an exe with a system that had DAQmx 7.5 then that would not work. Other than that we update DAQmx with compatiblity with older versions in mind so anything developed with the current/older driver will work with future versions of DAQmx.
    Cheers,
    Andrew S
    Getting Started with NI-DAQmx
    Measurement Fundamentals

  • Is DAQmx and LV 8.0 compatible with vista

    I think I know the unfortunate answer but I made some minor (mostly cosmetic changes) to an application previously developed with LV 8.0 daq mx 8.4? (HS-DIO calls) and windows XP.  I recompiled under 8.0 and Vista (New daq drivers as well 8.5?) and sent it to run on the same PC with XP.  Program loaded fine executed but no DAQ communications.  I am trying to see if I changes code by mistake or is there an incomaptibility with daqmx and labview 8.0 compiled with vista but run on XP.
    Paul 
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

    LV 8.0 is not officially Vista compatible.  The first version rated Vista compatible is LV 8.2.1.  Using different drivers doesn't help your cause, but sometimes doesn't cause problems.
    The easiest way to determine for sure if you've run into a Vista incompatibility is to take the original code that worked and rebuild it in Vista and see if it runs on the XP PC.

  • NI-6602 Two Channel Frequency Measuremen​t using Traditiona​l NI-DAQ and LabView 8.2

    I have been trying to program for some new experiments and have a vi setup to record the time-of-arrival for a signal using buffered event counting on two channels.  We really wanted to be able to measure the frequency of the incoming photons on both channels and thought we could just make a sub vi using simple event counting and count the number of rising edges on a source pin for a second and report that number and repeat the measurement until we were done..
    All of our vi's have to be programed using the Traditional NI-DAQ drivers as the NI-DAQmx drivers do not play well with the FIFO overwrites on the 6602 card that occasionally occur in our measurements (high instantaneous count rates from bursts of photons).  The way other groups using the 6602 card and labview have dealt with this is to ignore the error that come from the Read Buffer.vi used with the Traditional NI-DAQ drivers when a FIFO overwrite occurs.  Trying this same technique with the NI-DAQmx drivers has not worked so we are stuck with the old drivers.
    With this all said I made a vi that counted the freqency on one counter just fine but when I adapted it for two channels it doesn't like me anymore
    I attached the llb file and any comments would be greatly appreciated
    -Shane
    Attachments:
    Counts per second.llb ‏202 KB

    Hello Sprice,
    Browse the shipping examples according to “Directory Structure” and then select
    DAQ to find the Traditional DAQ examples. 
    There a lot of examples that are written for counters (Counter >>
    daq-stc.llb >> Count Edges (DAQ-STC).vi). 
    What kind of signals are your photons creating?  Are they TTL compatible at a certain
    frequency?  You don’t care about overwriting
    your buffer?
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • How to acquire data through multiple channels in parallel using PXI 6070 E, PXI 4071 and LabVIEW?

    Hi,
    I am using NI LabVIEW, NI PXI 4071, and NI PXI 6070E to measure current through a variable resistance. Now, I am using one channel from SCB-68, but I want to add another channel in parallel so that I can have two resistors instead of one that I cam measure current through them.
    I have attached a Pdf file showing the setup for hardware in use and LabVIEW code also.
    Can anyone look at these files and give me guide lines or ideas that can help me resolving this issue, please.
    Thanks in advance.
    Best Regards,
    Shaheen.
    Solved!
    Go to Solution.
    Attachments:
    IV copy for HS.vi ‏55 KB
    Layout of NI Cards.pdf ‏248 KB

    Your 4071 can only do one measurement at a time. Your DAQ cannot measure resistance either nor has it got any analogue inputs.
    However, you could use a multiplexer and multiplex your 4071 DMM. This wont give you simultaneous measurements but can acquire data one after the other, the speed is obviously dependent on the multiplexer you choose!
    Hope this helps.
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • Can I measure pulswidths with daqmx base and NI-USB6501

    Can I measure pulswidths with daqmx base 1.4 and NI-USB6501? I can measure edges width this function: DAQmxBaseCreateCICountEdgesChan. But, when using DAQmxBaseCreateCIPulseWidthChan I always get an error message back (DAQmxBase Error: <err>Value passed to the Task/Channels In control is invalid).
    I also cannot find any examples about this topic in the software on CD nor on the internet.
    I also don't know what values to use for the float64 minVal and float64 maxVal arguments when using the pulse width function of above (see the NI-DAQ™mx Base 1.x C Function Reference Help).
    Maybe my device (NI USB6501) cannot measure pulse width's and when it does measure pulse width's, what value will it give back? Seconds or ticks and what is the accuracy?
    Ok, enough questions for now. Thank you in avance for answering.
    D. Stollman

    The USB-6501 counter is capable of falling edge edge counting
    measurements only, so the type of measurement you wish to do is not
    possible with that device.  The data sheet for the USB-6501 can be
    found at the following link:
    http://www.ni.com/pdf/products/us/20054920301101dlr.pdf
    I believe the DAQPad-6015 and DAQPad-6016 USB devices are capable of
    measuring pulse width, as well as many of NI's PCI data acquisition
    devices.

  • Does NI PXI-6259 support both Traditional DAQ and NI-DAQmx of Labview 7.0 Express?

    I need to buy a Multifunction DAQ board which will be supported by both the Traditional and NI-DAQmx of Labview 7.0. Is the NI PXI-6259 appropriate for such application?
    Thank you.
    Ujwal

    M-series boards are not supported by Traditional NI-DAQ. Stick with the E-series if you require Traditional support.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • Signal Processing and LabVIEW Expert Full Time Position – London, UK

    1x Signal Processing and LabVIEW Expert - Full Time Position – London, UK
    1.0      Description:
    As a Signal Processing/Software Engineer, you'll be part of a team that is responsible for developing applications based on large high speed data analysis for a large green energy project. Your skills must include a knowledge of Waveform analysis and understand the concepts of cross correlation, Fourier Analysis, Spectral analysis and other similar items.
    The position ideally requires someone of CLA level of LabVIEW program to act as the project lead on the programming and technical levels of the system.
    2.0      Duties and Responsibilities:
    The duties and responsibilities of this position include, but are not limited to, interacting directly with customers to program, train, inform, advise and consult in the design of their applications using the best test and measurement hardware and software by:
    ◦     Programming memory and speed efficient applications using LabVIEW and Object Oriented Programming and Event-based architectures.
    ◦     Understanding of the data acquisition side of the system and previous experience using National Instruments hardware and DAQmx
    ◦     Knowledge of Power engineering, Volts, Amps, current, Power Factor etc.
    ◦     Providing timely, accurate and effective solutions to technical problems.
    ◦     Providing guidance on the installation and working functionality of both software and hardware, including explanation of configuration settings.
    ◦     Reproducing and troubleshooting problems and incompatibilities.
    ◦     Delivering technical presentations and demonstrations to customers, colleagues and partners.
    ◦     Ability to project manage and understand how to keep on track with a Microsoft project based externally monitored project.
    3.0      Qualifications & Requirements:
    ◦     Minimum second class higher honours degree in engineering or science related field, such as electronic engineering, physics, mechatronics or computer science.
    ◦     Basic Knowledge of text based programming languages.
    ◦     Experience in either LabVIEW, minimum of three years full time and at CLA level, or capability to reach there in a short space of time with the relevant training.
    ◦     Experience in a second language such as JAVA, C and C++ is strongly preferred.
    ◦     Have a vast experience of signal processing, both digital and analog.
    ◦     Although not required, but must have skills to pass the Certified LabVIEW Developer exam and CLA within the year.
    ◦     Ability to learn new skills/languages/applications quickly (MATLAB, JavaScript, STK, etc.).
    ◦     Knowledge in instrumentation & control, and industrial automation, is strongly preferred.
    ◦     Must be able to handle multiple tasks and enjoy working with people.
    ◦     Strong problem solving skills to analyse the problem and think creatively to provide a solution.
    ◦     Excellent written, oral and presentation skills are key.
    ◦     Ability to deal effectively with customers to make them successful is essential.
    ◦     Ability to get along with others and function as a team player as well as work effectively alone.
    ◦     A proactive/can do attitude is vital and a positive outlook on problem solving.
    ◦     Legal right to live and work in the UK. Sponsorship is not available.
    ◦     Must hold a full valid UK driving license.
    4.0      Location:
    This role is located in London, UK
    5.0      Reporting:
    Signal Processing Engineers will report to the Technical Director.
    6.0      Salary:
    Competitive salary based on level of experience.
    7.0      Application:
    To apply for this position please send a copy of your CV to
    [email protected]
    Please state the job title of LabVIEW Signal Processing Engineer in the email subject.

    Hi,
    I am from india.I can able to complete the projects through the internet itself.
    Please let me know if any demos required to show my expertation. 

  • Error -200141 when doing buffered events with DAQmx and PCI-6602

    When doing buffered events with DAQmx and PCI-6602 I get error 200141 - Data was overwritten before it could be read by the system.
    This error is generated ONLY with random inputs >200/sec.
    My setup is :
    DAQmxCreateCIVCountEdges(taskhandle,"Dev1/ctr3"....
    DAQmxCG+FGSampClkTiming(taskhandle,"/Dev1/FPI35",...
    DAQmxSetCICountEgdesChan(taskhandlem,"", "/Dev1/80MHZTimeBase")
    DAQmxSetChanAttribute(taskhandlw,",",DAQmx_CI_DataXferMech,DAQmx_Val_DMA,0);
    Can somebody help ?

    i'm getting the same Error-200141, while reading semiperiods. (Meas_Buffered semiperiod continous)
    while loop ex.rate seems to be pulsewidth*no.Samples to read. in my case PW=60ms
    Input buffer size measured with Property node= 10000
    why this error happens?? i cant use any mode other than implicit timing for semi-period measurement right??
    more info: all the ai channels are used ~ 16 differencial.
    i found one solution which is _ reinitializing the whole task if an error occur. is this the right way??
    Kudos always welcome for helpful posts
    Attachments:
    Counter_1_Meas Buffered Semi-Period-Continuous_main_lv09.vi ‏34 KB
    SemiPeriod_Reconnect Counter on Error.vi ‏35 KB

  • Measuring Multiple channels at a time

    Hello All,
    I am new to Labview trying to measure voltages and currents from a
    synchronous generators using LabView7.1 abd PCI-MIO-16E-4. I want to
    measure all the three phase voltages all at a time so that I can see
    the phase difference between them. I modified an example for my purpose
    but it can measure only one channel at a time.
    Anyone please look into my file and modify it for multiple channels.
    Thanks in advance
    Venkatgill
    Attachments:
    Cont Acq&Graph Voltage-Int Clk.vi ‏330 KB

    Let me explain. Your board has a single A/D. There is a mux that rapidly switches between channels. It will take a sample from channel 0, then channel 1, then channel 2, and then start all over again. It will repeat until the total number of samples that you requested have been taken. The switching is very fast - on the order of usec, so you can take the 3 measurements but it is not truly simultaneous. Depending on the frequency and the accuracy of the phase difference you're looking for, this may not make a difference. You can also get the inter-channel delay and compensate for it.

  • Display FieldPoint Channel Attributes in Labview

    Hello,
    I´d like to display the channel names of the FieldPoint Modules in LabView like they are called in Measurement and Automation Explorer 4.1. I am using a FP 1601 Bank with nine Modules and LabVIEW 7.1. I tried to use the " FP get configuration info.vi" and i got some informations, but i´d like to use the FieldPoint I/O as data input like it is at the "FP Read.vi". I can see the values of the channels, but I am missing the names.
    The very next step is to display the units of the channels, which also defined in the MAX. Is there a example for reading FP with LabVIEW , including the channel names?
    Thanks for all.
    Yours
    Urs Wehmhörner

    Hello Urs,
    there are no VIs or Property Nodes to get this information.
    Maybe you can use the "Configure Attribute.vi".
    With this VI you can enable programmatic configuration of FieldPoint channel attributes.
    You can not read this attributes but you can set them. If you set the attributes in LabVIEW you know them.
    Best regards,
    WolfgangZ

  • How can i measure temperature using thermocouple using labview?

    please  list out the procedures to be followed to measure temperature using thermocouple using labview.

    Do a search in the LabVIEW Example Finder (Help->Find Examples).  There are a ton of simple Analog Input examples in there using DAQmx.  One you might be most interested is "Thermocouple - Continuous Input.vi".
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

Maybe you are looking for

  • How to create a vertical submenu in my main horizontal main menu?

    I create a main menu in my site and now i'm having some difficulties creating one vertical submenu in one of the separators. Can anyone help me please? Thanks. V.

  • MSN Messenger stops Creative Mediasource Pla

    My 24 Li've External card works perfectly well with Media source player - until - I log on to MSN Messenger v.7. Then my PC tells me there is no sound device installed. Device manager tells me the device is working probably. I am fed up using System

  • EDI Error : Condition EDI1 is not allowed as item condition

    Hi EDI Gurus, Right now I am getting the error while creating a Sales order through IDoc. "Condition EDI1 is not allowed as item condition" Clarify a few things to me: 1. Where to pass the Customer Expected Price on the IDoc. 2. How to maintain prici

  • Media="print" problem in IE

    I have a simple noprint option set in print.css applied to the table around the LH navigation to stop it from printing. Works fine in Firefox and in Opera, but IE will not display the LH navigation on screen, and when I try Print Preview or Print, I

  • Hp photosmart plus special edition

    Just installed this printer and need to know how do i print a color page in black and white?