Simultaneous Analog Acquisitions

Hello,
I use a PCMCIA card DAQ-6062E and LabView 6.1 to simultaneously acquire 2 analog signals whose amplitudes are different
(one varies between -0.01 and +0.01V, the other between -2.0 and +2.0V). I use two AI Config VIs,
two AI Start and two AI Read. I can't use the same VIs for both signals, because to ensure proper sampling,
I need to specify different input limits in the AI Config VIs. When running my application, I get the error #10608:"No transfer is in progress for the specified resource", and the 2nd time I run the program, I get the error #10609:"A transfer is already in progress for the specified resource, or the operation is not allowed because the device is in the process of performing transfers, possibly with different
resources."
What's the problem? What can I do?
Thank you
Phil

OK, I guess I just found the solution: I can use one single AIConfig VI, and use a cluster of Input limits to individually set these limits for each channel.
I'm going to try that.
Phil

Similar Messages

  • Simultaneous analog output 1k sine wave and data acquisition

    Although many topics of simultaneous analog output and input can be found in NI Developer Zone, I have not found a case similar to my project. I'm trying to generate a 1kHz sine wave by using the analog output of NI DAQPad-6070E, and acquire one channel input signal simultaneously. I found most of the examples can not work properly above 100Hz. Any suggestions are welcome. Thank you.
    Jian

    I have sucessfully solve the problem when I observed the increase of
    scan backlog number. Simply increase the buffer size of AI/AO and you
    can make the 1kHz sine wave output and data acquired properly.
    On Tue, 3 Feb 2004 09:03:07 -0600 (CST), jujian wrote:
    >Although many topics of simultaneous analog output and input can be
    >found in NI Developer Zone, I have not found a case similar to my
    >project. I'm trying to generate a 1kHz sine wave by using the analog
    >output of NI DAQPad-6070E, and acquire one channel input signal
    >simultaneously. I found most of the examples can not work properly
    >above 100Hz. Any suggestions are welcome. Thank you.
    >
    >Jian

  • How to use a multiple boards (6321/6323) analogical acquisition task with simultaneous analogical generation task using the same boards (Labwindows CVI10)

    Subject : it seems impossible to run a multiple boards analogical acquisition task with one or several analogical generation task using the same boards.
    NI Configuration : Dev1 = Dev2 = 6321 boards
    Development environnement : LabWindows CVI 10
    Source code for analogical acquisitino task :
           DAQmxCreateTask("",&AIRecordingtaskHandle);
           DAQmxCreateAIVoltageChan(AIRecordingtaskHandle,chan,"",DAQmx_Val_NRSE,min,max,DAQmx_Val_Volts,NULL);
           DAQmxCfgSampClkTiming (AIRecordingtaskHandle, "", rate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, sampsPerChan);
           DAQmxGetTaskAttribute(AIRecordingtaskHandle,DAQmx_Task_NumChans,&gNumChannels);
    Chan = "Dev1/ai0, Dev1/ai1, Dev1/ai2, Dev2/ai1"
    Source code for analogical generation taskS :
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C1_DAC0));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C1_DAC0, chan, "", min, max,DAQmx_Val_Volts, ""));  // chan vaut Dev1/ao0
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C1_DAC1));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C1_DAC1, chan, "", min, max,DAQmx_Val_Volts, "")); // chan vaut Dev1/ao1
           DAQmxErrChk (DAQmxCreateTask("",&AOtaskHandle_C2_DAC0));
           DAQmxErrChk (DAQmxCreateAOVoltageChan (AOtaskHandle_C2_DAC0, chan, "", min, max,DAQmx_Val_Volts, "")); // chan vaut Dev2/ao0
    At the first DAQmxReadBinary call attempt, the system shows an error (see attached document) 
    What we understand about that error : it is impossible to run the two set of tasks (ai and ao) using ressources from both Dev1 and Dev2 in the set of tasks because it is not allowed to use the same Reference Clock for that.
    The question is : is there a way to to that without having that kind of message?
    We tried different combinations :
    - Using only one ao task (on Dev1/Dac0) : same error
    - Not using any ao task (only the ai task) : no error
    - configuring the ai task with only channel from Dev1 : no error 
    - Using "/Dev1/ai/SampleClock" as internal clock for the ai task and "/Devk/ao/SampleClock" for each ao task (k standing for "1" or "2" depending of the ao task we consider) : error
    Thanks a lot.
    Pièces jointes :
    MsgErreur NIDAQmx.JPG ‏38 KB

    doublon
    Valentin
    Certified TestStand Architect
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Hardware digital trigger to start stop continuous analog acquisition

    Hi I have seen the following example to use digital trigger to start and stop for finite number of samples. The example names is (DigitalStartandStopTrigger.vi)
    in this example Reference Digital edge is used to stop acquisition but if I change to  continuous then Reference Digital edge stops and show an errir. Could you please let me know how can I use hardware digital trigger to start stop continuous analog acquisition. An example would be really great
    many thanks

    HI tintin_99,
    The way that example works (by modifying the read position of the buffer) essentially performs the same operation that the continuous samples mode does. That is to say, it is already a continuous acquisition.
    The article below explains this in more detail, and the reasoning behind specifying buffer size manually and other tricks used. You may have already visited it in order to get the example VI, in which case it may be worth another read over.
    http://digital.ni.com/public.nsf/allkb/BA775B0E445BFA79482571FE0032CCEB
    Kind Regards,

  • Analogic acquisition with Labview and National Instruments card

    I need to acquire 2 analogic signals simultaneously. I use version 4
    (maybe 5) of Labview, with a National Instruments data acquisition
    card (BNC-208x). I want to save the 2 signals in a text file. Does
    anyone could send to me a diagram (vi) for doing that.
    Thank you very much.
    (my email: [email protected])

    True simultaneous sampling is possible with only a few types of DAQ cards. I believe BNC-208x is like the current BNC-2xxx series and is nothing more than a adaptor to the actual DAQ card inside the PC. If you can live with the small delay between channels that the majority of DAQ boards has, then there are a number of shipping examples that can help you. Look for the Cont Acq&Graph examples and Data Logger to Spreadsheet File.

  • NI daq 6008 simultaneously analog input

    Hello;
    For the NI 6008 card sampling frequency equal to 10 kS / s and it has 8 analog inputs, but if I will use the 8 analog inputs simultaneously, what is the value of the new sample rate for each input analog obtained during an acquisition in labview?
    best regards.

    Duplicate post - http://forums.ni.com/t5/Multifunction-DAQ/NI-Daq-6008-and-Labview/m-p/3095362

  • Simultaneously triggered acquisition: Multiple PXIe-7962R + NI-5734 cards, across multiple PXIe-1085 chasses

    Hi all,
    I need to do high-frequency, high-channel-count acquisition.
    Specs
    Signals: 10 MHz, 60 channels
    Controller: PXIe-8135 (Windows 7)
    Chasses: PXIe-1085 (2x)
    Input cards: PXIe-7962R FlexRIO base with NI-5734 digitizer (15x)
    Description
    Each FlexRIO card will store data in circular buffers, and continuously monitor the voltage levels. When any one channel exceeds the user-defined threshold, all 60 channels need to be triggered simultaneously to pass waveform data (200 μs pre-trigger, 300 μs post-trigger) to the host OS for logging.
    In other words, every FlexRIO card needs the ability to fire the trigger, which is then received by all 15 FlexRIO cards (the card that fires the trigger also needs to receive the trigger).
    Question 
    Can I achieve this with only a single PFI line? Or do I need some other technique?
    I've found some examples, but they only show single-source and single-card triggering, e.g. https://decibel.ni.com/content/docs/DOC-30182 uses one analogue input to trigger the acquisition of 2 channels on the same card.
    Any advice would be much appreciated. Thanks!

    Assuming you are using LV 2013 or 2014 you should download version 1.3.4 of the FlexRIO Instrument Development Library (FIDL). This will install 5734 Acquisition Engine examples which use the MultiRecord Library to stream data to the DRAM in a circular buffer, allowing you to recover pre-trigger samples. The example also demonstrate how to implement the Syncrhonization Library that synchronizes triggered acquisition to within a single sample period across multiple devices. 
    Getting the example to work across two chassis' may be difficult, but I believe it is possible. Though to do so you will need a timing and sync module in each chassis to distribute the triggers and reference clock that the sycnrhonization library requires. 
    National Instruments
    FlexRIO Product Support Engineer

  • Simultaneous analog and digital waveform read with PXIe-6361 and BNC2120 ?

    Hi there,
    I am trying to collect both analog and digital signals from a PXIe-6361 linked to a BNC2120, using the attached VI. I am running Labview 2011 64bit. This is the first time I am working with digital input. On the 2120 board, I have the digital input BNC cable connected to User Input 1 and wire between the screw terminal of UserInput 1 and the P0.1 (Digtial I/O) screw terminal.
    I have two questions related to this:
    1) When I try to run the VI in its current state, I get the following error:
    Error -89137 occurred at DAQmx Start Task.vi:3
    Possible reason(s): Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
    Property: RefClk.Src
    Source Device: PXI1Slot2
    Source Terminal: PXIe_Clk100
    Required Resources in Use by
    Task Name: _unnamedTask<6>
    Source Device: PXI1Slot2
    Source Terminal: None
    Destination Device: PXI1Slot2
    Destination Terminal: RefClockInternal
    Can anyone point me in the right direction for troubleshooting this?
    2) I would like to combine my regular waveforms and the digital waveform into one array which would then be written to file. I can't figure out how to combine the two different waveform types...can anyone give me a hint on this?
    Thanks for your help,
    Claire.
    Attachments:
    Export Waveforms To Spreadsheet File (1D)_wo extra line.vi ‏33 KB
    Multi-Device Synch-Analog Input-Finite Acq-Analog Start_Claire_wDigitalin.vi ‏105 KB

    Hi ClaireJ,
    Sounds like a reference clock conflict. This KnowledgeBase (KB) talks about this error when using simultaneous sampling. Also, might want to check the device routes in Measurement and Automation Explorer (MAX) as discussed here. Finally, if you are routing your PFI line over a RTSI connection, this error can occur. This KB discusses it.
    As to your second question, this post should help.
    Bill E. | Applications Engineer | National Instruments

  • Simultaneous analog and digital video output?

    Does anyone know for sure whether the integrated DVI-I port on a MBP can (or cannot) generate analog (VGA) and digital (DVI-D) signals simultaneously?
    P.S.
    If you are curious why I am asking this question, it is because I would like to have my MBP displaying (same data) simultaneously on the Apple HD Cinema display (DVI-D) and a VGA projector in my office. And if the MBP can output both signals at the same time (i.e., using all pins on the DVI-I connector), then the following clever DVI-I to DVI-D/VGA splitter would do the trick:
    http://www.pccables.com/cgi-bin/orders6.cgi?action=Showitem&partno=01780&rsite=f .01780
    I am assuming if this works at all, then the MBP will dumb down to the resolution supported by the VGA projector on the DVI-D output (just as it does for the internal display).
    Tx, -CR

    Depending on which version of the MBP you have, this may work under Windows. But it does not work under OS X. There has never been driver support for it.

  • Simultaneous analog output

    I am using PCI-6052 with (LabVIEW) .Where two analog outputs are available ,DAC0 and DAC1.I want to simultanouly output the different waveforms on each Channel at the same time.Time is important.
    I tried it with two DAQ assistance vi's setting each channel on each vi ,but at time randomly one vi's gives output not both at the same time.
    Thanks
    Haider

    Hello Haider,
    It sounds like you are trying to get started with NI-DAQmx and want to
    output separate signals on the two analog output lines.  The
    restriction of the hardware is that all of the analog input or output
    channels must be contained with in the same DAQmx Task.  There are
    a couple ways to do this. 
    If you want to stick with the DAQ Assistant, I searched our KnowledgeBases and found the following example program which does analog output for two channels using the DAQ Assistant. 
    If you would like to drill down a little farther and use the lower
    level DAQmx VI's, I would recommend looking at one of the shipping
    examples, the format for multiple channels is Devx/AOy:z where x is the
    device number, y is the starting AO channel, and z is the final AO
    channel. 
    Also, another good reference, especially if you are going to use the lower level VI's is the Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications Tutorial.  Hopefully,
    that'll get you going with your program.  Let us know if you have
    any other questions with either the online example or one of the
    shipping examples. 
    Regards,
    Micaela N
    National Instruments

  • Digital triggering for analog acquisition on PCI-6024

    I would like to initiate an analog input scan when a digital line goes low using a PCI-6024 board. I connected the digital line to TRIG, and the analog line to AIN0. I tried using "Acquire N - Multi-Digital Trig.vi"...it almost works. It acquires a scan, but it may (randomly) start at either the rising or falling edge of the trigger, regardless of the rising/falling trigger edge setting. How do I get it to only acquire data on a falling edge?

    Dear Dave -- If you set up your task using MAX, you can specify whether you need to start acquiring at the rising or the falling edge. Using this task in your experiment should effectively take care of the issue.
    You can do the same from LabVIEW as well using the DAQmx Trigger VI and set the acquisition to begin at the rising or falling edge as you may choose it to be.
    HOpe this helps = VNIU

  • Non-time based analog acquisition rate

    I am trying to collect analog data at a rate dictated by digital encoder. Currently my acquisition rate is time-based. How do I change my program to collect data based on a digital pulse.
    Thanks.

    At that rate your signal is only at about 39 kHz which is well within the range of your DAQ device. That errror you are seeing may be caused by noise or jitter in the lines that can look like extra ticks in the signal.
    Also, what is the pulse width of your encoder signal?
    Check out the timing specifiations of yoru 6602 board found here:
    http://digital.ni.com/manuals.nsf/websearch/DD0DBB6404BC139886256721007CF16D?OpenDocument&node=132100_US
    I would also suggest looking in that document for information about the available filters for input signals.
    -Sal

  • Time configurable analog acquisition

    Hi, I need to  acquire analog signal for a cetrtian amount of time. The acquisition starts on level analog triggering and stops when the time duration passed. Could you please help me with an example how I can do it in LabVIEW.
    Thanks

    Open LabVIEW, go to Help, Find Examples, Hardware Input and Output.  Now select the kind of hardware you have, and the type of task you want to do.  Look at an example, see if you understand it, and if you still have a question (like "What is the purpose of this VI in the So-and-so Example), feel free to ask, and you will get helpful answers.
    BS

  • Simultaneous Analog In and Analog Out

    How to Output on Analog Out and read Analog In at the same time.
    I am using a VC++, NIDAQ 7.01.
    No LabView.

    Greetings,
    The following example demonstrates how to perform synchronized analog input and analog output:
    Synchronizing Analog Input and Output
    The example was written in CVI, but modifying it for use in VC++ is fairly straightforward and documented within the code.
    Good luck with your application.
    Spencer S.

  • Error -200279 with simultaneous analog input (different devices) and digital output.

    Hi guys,
    I am a beginner in Labview and have been dealing with this problem for a couple of weeks now and just can't seem to get it completely right, I have a feeling there are a few small bugs in my code/hardware setup.
    I am running an scxi-1000 chassis with a 1600 module and 1302C along with a 1303 accesory for temperature measurements, this is connected to four thermoucouples. Unfortunately I have a limited number of modules available so I am also using a PCI-6221 DAQ card with an scb-68 breakout box used for a digital output and analog input voltage channel. Attached is my labview program. When I run the code at a 50 Hz sampling rate it runs with no errors but the data file comes out extremely wrong, this is also attached. When I run the code at 100 Hz I get error-200279 after a few loops. I used to have 2 daqmx timing VIs (one for each input), but the same error would eventually happen, I have also tried increasing the buffer size on said timing VI. I am also using an old computer (Pentium IV) could this effect the program?
    I have learned a lot going through forms for similar problems to mine but I just can't get it to for an extended period of time, I have posted my simplest code.
    Thanks in advance,
    Luca
    Attachments:
    tc_2.txt ‏1102 KB
    FinalCombined_2.vi ‏128 KB

    Ok this makes sense. I have made the suggested modifications but still getting the same error with sampling rates of 100 Hz or higher. Could you check that I have implemented the queue VIs properly (new file attached)? Also when running at 50 Hz in debug mode it does not look like the second while loop (with the dequeue element) comes into play until I hit the stop button, once I hit the stop button I get the following error:
    Error 1 occurred at Dequeue Element in FinalCombined_2.vi
    Possible reason(s):
    LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
    =========================
    NI-488: Command requires GPIB Controller to be Controller-In-Charge.
    This leads me to believe I have programmed the queue elements incorrectly.
    Thanks for your help, any suggestions are greatly appreciated.
    Luca
    Attachments:
    FinalCombined_2.vi ‏102 KB

Maybe you are looking for