How to read 3 analog inputs simultaneously with 6070E?

Hello

I wanted to read 3 analog signals simultaneously using cards of acquiring data NI PXI-6070E and Labview 2010.

I can with success read and record the 1 signal (which you can see in the attachment), but do not know and can not find examples on how to read 3 signals simultaneously. Any help, especially a simple example would be great.

Thank you!

Just click on = pull down from the constant physical channel, select Browse and shift-click or Ctl-click here to add other channels. You can also type in new channels with the ai0 syntax: 2 for three continuous channels for example.

Tags: NI Hardware

Similar Questions

  • How to read the analog inputs of one Board of R for (PXI-7851R) series

    You can guide me please with the steps for reading of the analog inputs of a series a. card I use as the target fpga PXI-7851R.

    Have you looked at the examples provided with LabVIEW? There are examples showing how to read the analog inputs.

  • How to write constantly to analog output and read from analog inputs

    Hi all -

    I had a question about writing continuously to analog output reading simultaneously an analog input.

    It's my first time to post a message to the community, so please let me know if I made mistakes.

    I use Labview 2011 with a NEITHER-DAQ USB 6215.

    I'm looking to generate a waveform and write it continuously in an analog output. It is then connected to an entry on the acquisition of data, where I am trying to sample the analog signal. (I realize, there is a system of trivial, but I'm hoping to build on it once I have run).

    The task of reading from the analog input works fine, as I tested it in several other cases. I have a problem writing to the analog output.

    For this task, I tried to follow the "Gen Cont Wfm Clck Int' VI to generate the wave form and start the task. I then try to write to the output of the analog timed loop. However, it does not seem to transmit a signal and doesn't give me any errors.

    I have attached the VI but also a screenshot.

    Please let me know if anyone has any ideas. I would really appreciate the help!

    Thank you

    Peter Borgstrom

    We will review your tasks one at a time.  First of all, the task of generation/Analog output Waveform.  Generate you a waveform (I'm unsure of your VI if it is a fixed waveform or not) and send it to a defined output function to produce a waveform continuously, using N-channel and samples of N (where you set not these previously).  You should not put this inside has timed loop, as the DAQ hardware has its own clock - if you simply put it in a while loop (with a stop to break out of the loop), the loop will call the function for the first points of N, wait until all N have been taken out, then call it again to another N points (up to what you press Stop).

    Now, suppose that you have the output connected to a load voltage (say a decent resistance).  You can wire the input terminals of your A/D converter through the same load and set up a similar analog input loop, running in parallel (i.e. in its own independent of the OD loop, while loop).  You pourriez start together (with, say, a merged error since the initialization code line loops HAVE and AO become lines of error in "loops of sampling" described above), but you might want to delay loop (a little) the AI so that the OD has a chance to set the voltage before the bed.

    I hope this helps.

    BS

  • Analog inputs measures with NI6229 using the DAQmx driver

    Hello

    I have four different analog inputs connected to ai0 to HW 6220 ai3. I read these values with a single task, all 4 channels assigned to this task. When ai0 reads 7V, I see 0.8 V ai1 too, but I expect to be measured 0V. If I just assign ai1 to the task and measure all 4 channels, then I measured 0V as expected (although ai1 contains 7V, I just don't measure it).

    Another comment 'funny', is that if I change the order in which I add channels to the task, measurement errors are different.

    However, when measured with a multimeter 4-channel show tensions as expected.

    Given that my calling task is can not block, I call the function

    DAQmxReadAnalogF64 with timeout = 0 and numSampsPerChan = 1.

    Any help is appreciated.

    Thank you

    Kind regards

    Deepa

    Deepa,

    Thanks for the code snippet.

    When you call DAQmxReadAnalogF64 the first time and you set a value of timeout of 0, there is a chance that the acquisition is not yet initialized. This is the expected behavior and should not be a problem. If the timeout error died at the first call, you might ignore it or set a different expiration time for the first call only. In all cases, you should drop the first value and start with the second value.

    Jochen

  • How to synchronize the analog input and the output of two different USB data acquisition boards

    Hi all

    I have two tips very different USB NI USB 6008 case, which I use to acquire the data (analog input) and a USB of NI 9263 is a output analog only site I use to route a signal (in this case a square pulse). The reason why I use the outputs analog 6008 is because I need to deliver negative tension and need the full +/-10 v range.

    Looking at similar positions, I'm pretty sure that I can't use an external trigger or a common clock, I also tried to use the timed synchronization of the structures but no cigar.

    I'm including a quick vi I whipped showing how the jitters because of the lack of synchronization signal. The OD of the 9263 connects to AI in the 6008 in this example.

    I talked to a specialist in the phone and tols me that's not possible.

  • Digital and analog inputs simultaneously - NI USB-6009 and NI USB-6212 - ANSI C

    Hello

    I'm reading at all times and at the same time analog and digital inputs. Digital and analog samples must be sampled at the same clock and acquisition should be started (triggered?) at the same time (I don't want, after some time, analog reception more digital samples - the opposite is also true).

    I found an example (in C source code) "National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Synchronization\Multi-Function\ContAI-Read dig Chan" and tried to run with two USB cards: NI USB-6009 and NI USB-6212. Unfortunately, the two results by mistake, as described below:

    DAQmx error: the requested value is not supported for this property value.
    Property: DAQmx_SampTimingType
    You asked: DAQmx_Val_SampClk
    You can select: DAQmx_Val_OnDemand

    Task name: _unnamedTask<1>

    State code:-200077
    End of the program, press the Enter key to exit

    -Is it possible sync analog and digital acquisition in the paintings?

    -If so, how?

    Thank you

    Hello tcbusatta,

    Two of these modules, USB = 6008 and USB-6212, support only timed software inputs and digital outputs.  This means that you cannot define material timing (like finished sampling or continuous) for these modules.  Digital lines can be retrieved or written once to each call DAQmx read.

    This means that you will not be able to get any type of synchronization tight between the analogue and digital channels.  You will need a Board such as the NI USB-6341 in order to synchronize the AI and DI closely.

  • How to measure multiple analog input at the same time.

    I tried to do a VI that controls a motor with two buttons. If I press the buttons, the VI took the analog signal from the buttons and the engine is running. Each button covers the different direction - to the left and to the right.

    I need to enter the two report in the VI at the same time, but I can't. If I run the VI, VI takes only a random signal. I want to know what are the problems and how to solve them. Please help me.

    You must use a single task for both channels.  See if that helps.

  • error 201003 trying to read several analog inputs on 9172 chassis

    I'm new to the Forum, so forgive me if this has already been answered.

    Input module im using the chassis c - 9172 DAQ with an analogue of the 9221. I want to read three transducers in real-time. The problem I have is two if the transducers are 7.5 K lb/po2 rated and 100 psi rated, making me use two different scales. I can do the N-channel on playback of the system but only will allow me to read the two 7.5 K transducers.  I use the DAQ assistant, I create a virtual channel and add all components to read from the module. When I create another instance for the third transducer, it gives me the error: error 201003, module is already reserved. I need help please. Let me know another way to do what im trying to do. I used the DAQ assistant, but the data is incorrent on the transducer of 100 lb/po2, which explains why I manually create the virtual channel.

    If you had searched the error code or message, you would have seen several posts on this common problem for beginners. Simply, you cannot use several tasks for a single material resource. Use several functions Create Channel, each connected to each other and specify your scale.

  • How to read any voltage (0 - 10v) with NI 9421

    Hi I am a beginner in cRIO. Play with the cRIO-9012, NI9421. There is a sample program in Labview named 'NOR 94xx entry - getting started - scan Mode'. This is a basic program just to show the State of the LED, when there is something in DIO1. I have implimented the program by changing the chasis of the target. To see how it works, I used a calibrator to send some tension to NI9421. The led in fact to 8v. My question is how can I turned it on even in low voltage 2v, 3v and 5v. Someone help me please what settings I need to change. ?  I am attaching the screenshots of the program and the labview example file.

    If you look at the datasheet for the 9421, a logical 24V digital input module.  It states that a shutdown state is 5V or less and one State on East 11 - 30V.  Anything between the two should be considered unstable.

    You cannot simply choose the logical level for the input module.

  • How generate the waveform analog multi simultaneously.

    I use the relay Full.vi Gen to generate a waveform.

    I want to create another form of wave and start at the same time.

    Any suggestion?

    Hi turbot.

    The easiest way to make the two tasks simultaneously is to have two copies of this task in the block diagram. In LabVIEW, any function that has all its entries ready or a Subvi runs "simultaneously", so no additional real action must be taken to make them simultaneously. However, you must make sure that all entries of all your screws are to be executed simultaneously are ready at the same time (which means a set of functions that generate the wave does not need any input on the other). It's called the data flow model in LabVIEW. Read this for more information: http://zone.ni.com/devzone/cda/tut/p/id/6098#toc0

    I would you suggest to use an other sub - VI for opening and reading your file (as well as use a different file for each reading Txt Subvi relay). You can also make your Subvi re-entrant. For more information on screw reentrant, refer to this link: http://digital.ni.com/public.nsf/allkb/98847B4E4C715E6D86256C59006B57CC

    I would also say that you pass the path to the main file of your VI by using a control in your Subvi, rather than using the constant you have now.

  • How to trigger an analog input to analog output

    Hello

    We have two signals, one of which is a glow that we generate via a PCIe-6361 and a BNC-2110 to my experimental system, and another who is directly related (like an echo) I want to acquire every time that send us one.

    What I tried:

    -Generating a signal pulse and the bond of an output channel for the PFI0 one.

    -Using the pulse generator virtual daqmx (pulse CO-tiques).

    I'm sure there is an easier way to do it, but I can't find it, could you help me?

    Additional info: attached the two signals (blue, yellow emissions receive), I want to talk.

    Thanks in advance!

    Assuming you are using the same card for AO and AI, you should be able to use a trigger to start the task of AI with pulse to start the task of the AO.

  • How to read the video stream directly with Flex?

    I'm trying to get Flex Builder 3 to play a video stream with Flash Media live
    Server and Flash Media Live Encoder.

    I am able to stream pre-recrorded (VSD) files in flex FLV go the Flash media server.

    I am able to stream live using Flash/FMS/Flas Live Media Encoder, but do not
    with Flex.

    This stream of video on demand flvs, but not live streams prerecorded code:

    If I change the source to 'rtmp://localhost/live/livesream.flv, I get nothing.

    What I am doing wrong?

    <? XML version = "1.0"? >
    <!--controls\videodisplay\VideoDisplayFMS.mxml-->
    "< mx:Application xmlns:mx ="http://www.adobe.com/2006/mxml">".

    < mx:HBox >
    < mx:Label text = "RTMP FMS 2.0" / >
    < mx:VideoDisplay
    autoBandWidthDetection = "false".
    source = "rtmp://localhost/vod/Legend.flv" / >
    < / mx:HBox >
    < / mx:Application >

    Oh and sorry for the double post. I didn't know there was a separate instance of the FMS.

    I use the video display component, but there is no "on-line" property. Try what setting to true. If it still does not work, try to remove the name of the stream of the .flv extension.

  • How to read the NI 9201 Module lab mode analog input signal

    Hi all

    IAM using the module Crio-9012 real-time controller

    ND iam using NOR-9201 for entry and exit of NI9263 for

    I have configures cRIO 9012 on my Pc

    But how I'll take analog input using the module NOR-9201

    Thank you

    TC

    Hello

    I recommend you take a look at the following examples in the example Finder LabVIEW.  If you go to help--> find examples, you will see this window.  Just search 9201 and you will see 2 examples:

    I hope this helps!

  • read the multiple analog inputs at the same time

    Hi all

    I use USB-6001 and want to develop an application to multiple tasks in C++. I try to read several analog inputs at the same time, but got some errors. To put it simply, I copy one of the sample code to read in analog data in a channel, and then turn it into function. Then I call this function to thread with the names of different poles (for example Dev1/ai0, Dev1/ai1) and I come across this error:

    "The specified source is reserved. The operation can not be specified such complete"code of State-50103

    I have search the forums, this may be because I use the hardware timing in this function, and this material timing cannot be used simultaneously by multiple tasks. I may have to put all the lines, I want to read in a single task (such as Dev1 / ai0:1). This way I can read two lines at the same time. However, when I try this, I encounter another error:

    Status code "buffer is too small to contain the data read" - 200299

    So here is my question, what should I do if I don't want to read the multiple analog inputs at the same time? Is the thing that hard time cannot be used by several true task? If I have to read several lines to a single task, how to set the settings?


  • Medium-sized dynamic data analog input read DAQmx read

    Hi, I'm new to labview. Is there an easy way to index using the dynamics of data returned by a readout DAQmx x samples to calculate a moving average? My thought was to read the analog input for X samples pump with the data in another loop through the data, but I can't quite understand how index using the returned data set to extract the measurement value double returned for each sample.

    Any ideas on that?

    Thank you...

    If you get a type of waveform data, why did you ask on dynamic data? No, of course not would you use the conversion of dynamic data on a waveform.

    If you want only one channel, then your DAQmx Read could be changed to 1Chan NSamp. If your channel list only has one channel, you will get a table 1 d with a single element that can be indexed. To get the average of a waveform use the statistical function with the waveform. You use the average Point by Point, and not the average function that has a table for an entry.

    Make sure you always have context-sensitive help on. You can avoid many of these rookie mistakes simple.

Maybe you are looking for