Generation and acquisition of analog signals simultaneously on USB-6212

Hello, I am novice programmer DAQ trying to create (what I think is) something very simple.

I use a box NI USB-6212 and LabVIEW 8.5 is trying to generate a pulse train analog while recording a simultaneous analog input.

My first question is, is it possible?

Since I'm new to this, I use the DAQ assistant in LabVIEW.  I can acquire a signal, I can also generate the desired signal, but I can't seem to operate simultaneously.

I have been successful in obtaining my program to work with both USB-6212, but I have to be able to do this with a single.

I have attached the block diagram and vi, I hope that's easy to answer the question, even if my research so far has left me empty handed.

Any help would be greatly appreciated!

Jon L

Hi Jon,

Well, first of all welcome to the DAQ programming! I took a peek at your code and published it with a device simulation very well, so I ran with the PCI 6251 card in my computer and he did not also get errors.  Could you post the error code you get?

If I could figure out what is your error, I would say you encounter errors of buffer because it is too much overhead in the DAQ to wizards in the face of data rates.  My suggestion would be to use the example called "Multi-Function Synch AI - AO.vi.  This program can be found in the Finder for example of NOR (see Help"find examples in LabVIEW).  "" It appears in the input and output material"DAQmx ' synchronization ' Multi-Function.

Can you give that a try and let me know how it goes?  Thank you!

Tags: NI Hardware

Similar Questions

  • niHSDIO dynamic generation and Acquisition using LV configure Trigger VI

    Hello!

    My experience is limited within the environment of digital programming; Nevertheless, I have worked on this problem for a few days and would appreciate some comments if possible.

    I am trying simply to generate and acquire a duty cycle of 50% of 8 MHz TTL pulse train on a PIN DIO of the PCI-6541 and acquire back from the signal on another axis of DIO. I have a connector corresponding to the embedded 6541 VHDCI connector which of course the generation and acquisition DIO welded pins to provide a loopback effect.

    In short, I use the niHSDIO configure Trigger VI (instance--> start Trig: SW), niHSDIO send software Edge Trigger VI and write Named Waveform VI (instance--> data: 1 D U32) in the generation section. For the section of the acquisition, in short, I use the VI of waveform Fetch niHSDIO (instance--> single record: WDT).

    I see results in the waveform acquired showing the generated and acquired digital TTL pulse on the respective DIO pins train, but I can't seem to get my 8 MHz frequency requirement. In addition, the lower part of the assignment of pin DIO, more frequency. Unfortunately, due to the configuration system required, I have confined myself to pin 12 DIO for the generation of digital pulses. Even with a 50 MHz clock frequency, I'm ~ 6 kHz of frequency acquired max. I looked at changing the parameters of the wave form VI named write, but it is not possible because the VI call a library function node. I also tried to generate a waveform of 8 MHz through a VI of generator of digital model, but I do not believe, you can trigger on generated waveforms? It seems that you must generate data using a simple loop to as a counter and sending the result to the waveform VI named write. Are there other ways I can simply generate and acquire a digital signal of TTL of 8 MHz (no external connection)?

    In any case, any kind of feedback would be greatly appreciated.

    Thanks in advance for your time.

    Dan

    Dan,

    Sorry about the nomenclature.  I usually use 0 x or 0 b for indication of radix, it is not necessarily a kind of standard, just what I used in my old days of the Assembly.

    Looks like you have a knowledge about the data.  Basically the material is just save in DRAM an array of words of 32 bits, with each bit corresponds to a data channel and each element being generated to the sampling clock rate you enter to your vi.  Everything else is just easy data manipulation or usage.  The interleaving method is just as I like to create a toggle model.  You can easily do a loop with an inverter and feedback node or use on the construction in screws to signal generation.  In addition, you can use the software digital waveform editor or control panel test to generate the county or toggle modes.

    Give us an update when you enter the laboratory and let us know if you encounter any other disorder.

  • Digital and analog generation and acquisition using USB-6251

    Hi all

    I have to actually synchronize a 6251, USB and USB 6366 Board. I have a vi, which is good that now I am able to use the 6366 as the master and as slave 6251, attached tie. The master generates a digital trigger for (generation synchronization) pulse and the acquisition of the signals on both cards, analog signal ramp and acquires signals. The slave acquires only a series of signals after outbreak.

    I want to have the 6251 as master and as slave 6366. The vi attached the other way around as I mentioned above. When I try to use the 6251 as the master, I get an error asking me to specify the clock source (I did the material and some changes in the program as well, as export properly 6251 at 6366 clock).

    Thank you

    SANJU

    Thanks for your reply jonathon,

    But in your code below, I coudnt get the Outpput internal PCI-6251/ctrl0...

    but I hardwaired the o/p (PFI 12) meter... .and generated a signal meter on this port, I used that as the clock...

    Thank you

    SANJU

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

  • Generation and acquisition at the same time, acquisition of data USB-6356

    Hello

    I have a VI how is able to read entries with a USB DAQ-6356 and I use a generator of signals 'Agilent 33522 A '. I want to generate and acquire with the acquisition of data.

    In fact it works but not well, the frequency is not very stable and does not stop the 2nd loop with 1 (2nd is generating, 1 is Acquire).

    Thanks in advance

    P.S my VI isn't a state machine true because I need to fight against it at the moment.

    OK, so you're at 3 ms/s in writing and reading at 1.25Ms / sec and you wonder why he has a little difference in the frequency set?  Ideally, you want to read and write to share a sample clock but by selecting at least the same frequency clock (or one that is one multiple of the other) would go a long way to fixing this source of your error.

    The second source of error: you generate a contineous waveform.  unless you select 'whole number of cycles' there is a discontinuity when the end is reached at an arbitrary phase and the phase is reset to zero at the beginning of the wave.  DAQ assistant writing can "Use Waveform Timing" to adapt its sync settings to the dt waveform and the number of samples.

  • Retrigger encoder and acquisition of analog input on the spur of Z?

    I have a card PCI-6232 and use THIS angular Encoder on the counter 1 to provide a base mean angle for Internet high speed (50-100 kHz) measures the analog voltage.  I use a period of CI on counter 2 to measure the duration of the impulse of Z to determine the length of each measure.  It kinda works, but the result is somewhat contradictory.  I get about 1 in three cycles without encoder data.  I need to find a way to trigger the acquisition to record data for each cycle trigger on the pulse of Z.  If you know another way to do this I'd be open to that as well.  Thank you, Steve

    Hi Sara,.

    Thanks for your reply.  What I wanted to do was to trigger an analysis of the encoder and an entry at the same time triggering the pulse of z analog encoder.  It took a lot of digging through similar samples and after a week of fighting, I thought about it tonight.  I'll post this once I clean up the mess.  Problem solved thanks to dozens of you ad info and samples!

  • Generation of two channel analog output using NI USB-6221


    Full question

  • Generation of the trigger (or TTL) analog signal

    Hello world

    Well I look at the droplet, riding on the vibrating bath. In this case I have to synchronize the device with the accelerometers.

    Accelerometers are connected to the vibrating plate vibrating sinusoidal with frequency of 80 Hz. I am the acquisition of acceleration using NOR-DAQ USB 6212. A camera (Camera Link Basler, NI PCIe-1433) is used to acquire images of the vibrating plate. The frame rate of the camera is 20 Hz which controlled by external signal (TTL) or camera attributes.

    I would like to generate a trigger of data acquisition (signal HAVE) to the camera at the first minimum acceleration in the attachment. I've also attached the file vi. Could if it you please let me know if is there anyway we can generate the trigger of the analog signal.

    See you soon

    NGO

    Hello, NGO,

    Can you post the update VI?

  • generation of digital, analog signals read snap SMU-6358

    I have two SMU-6358 card and I want to send control signals to my camera and read the analog signals from the device with them.

    For the digital control signals, I tried to set up a system where I specify the identifiers of the pins, bring them into arrays of strings - the respective waveforms would be collected in the tables too - and I transfer them to a VI of inputs/outputs multiples that puts digital waveforms for the cards output pins.

    I developed this code here, but it doesn't seem to work. I can't understand how I can convert the string and form table wave to meet the requirements of the input/output VI or which another VI I could use to do the job. Or is there a smarter way to do it?

    Thank you

    Kriváň

    Dear Kriváň

    Please find attached the VI in LV 8.6 format. Also, I HIGHLY recommend to rearrange the front panel and which makes it neater, your code is very hard to read and not structured at all. I hope this helps!

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

  • Doubts about the sampling frequency when the production and acquisition

    When the generation and acquisition of samples, the maximum sampling frequency is the maximum sampling frequency Council divided between the generation and acquisition of task number?

    Thank you

    Hi Houari,

    You should read the specifications of your box DAQpad!

    It is clearly said: entered analog = 200kS/s rate sampling, but analog output = sample rate of 300 s/s or even just 50 s/s for the hardware timing!

  • Problem when the PWM signal combinning and analog signal TOGETHER!

    Hello everyone,

    first I DAQmx 6212, and I need to run the water pump small (9V - 16V) that should be driven by a PWM signal; I also have a motor (5V - 13V) for a water supply which must be controlled by an analog signal and it has built in a force feedback potentiometer, I logged onto this potentiometer correction + 5V the DAQmx and used the output voltage of the third extremety as a value to diagnose to know the position of the engine.

    My VI shows:

    1 is a normal meter production to create my PWMout signal.

    2 is an analog input, I use it as a PWMin to the LabVIEW to diagnose what is happenning in my pump water through the cycle and frequency.

    3 is an entry of the third extremety of the analog potentiometer.

    4 is an analog output that I used as power supply of the motor valve and I used an AC/DC amplifier for aplify signal the DAQmx and the motor road, between the two (3. 4.) I made a comeback with a few calculations, I had a P-controller to know the real position of the engine valve.

    My problem:

    When setting to 1. and 2. in the same VI only, I get an own PWM output with no problem.

    also with 3. and 4. in the same VI only i can control the motor valve without any problem.

    but when I put all these 4 set found in the attached VI, I have a problem as the engine valve turn continuously without stopping even if I change the position of the valve between 0 and 100%, I should mention that I see a PWM normal outside a signal on my oscilloscope, another thing to delete one of (1 or 2)  and run the engine valve VI works fine without any problems.

    so this my problem, if you can think of any solution please let me know.

    Thanks in advance for your help.

    Kind regards

    Caliente

    Here's your VI, slightly modified so the two analog inputs belong to the same task.  This if only for purposes of illustration, I him have not tested.  You will still need to do some debugging.

    While changing your VI, I noticed another potential problem with your original configuration.  You have configured the two tasks of AI for the same frequency, but read you 10000 samples of one of them and only 100 samples from the other (and throw it most of it).  Data acquisition data are buffered, and if you read as fast as you acquire, the buffer fills eventually.  If you read 10,000 samples of a channel, and the other channel acquires at the same rate, then when you read from the second channel you will get old stale data or an error full buffer.

  • Can SCXI 1102 measurement of current and voltage signals simultaneously?

    This may be a simple question, but I have a pair of moisture sensors that output 3 x 0-10 Vac @ 10 my max of signals that will be connected to a test loop that will have also a pair of sensors of flow as 2 x 4-20 my output signals, and I need to know if I can connect all four sensors on the same card of SCXI 1102 with endings of 1300 block , or if I need separate maps for the voltage and current signals. I am also looking at extra material for the other sensors, so I can have a different card if it will do the job better.

    Thanks in advance!

    BBalmforth Hey!

    If I understand your description of the system you want to measure tension through the moisture sensors and known for flow sensors simultaneously.

    Absolutely, this can be done with the 1102.  In the pilot DAQmx can we individually select the channels to read the voltage by the moisture sensors, and then choose the appropriate channels to read the current of the flow transducers.

    Let us know if there is something else you need said.

    Happy holidays!

  • Using an ATI TV Wonder HD 750 PCIe and the Media Center can't find the analog signals of the conductor not to use a decoder

    I just installed a diamond ATI TV Wonder HD 750 PCIe on my 64 bit Windows 7 system (it's actually the second tuner card I tried) and still get the same problem. Media Center recognizes the card and both tuners analog and digital, but fails the analogue listening. I get digital very well. I tried to add a channel manually and still no luck. I use cable TV with no cable box and tested the signal on my TV and receive all channels.

    I also downloaded the latest Diamond driver and installed all updates more recent windows.

    In Media Center, I tried to automaticlly and manually select my signal and each combination, but available with no luck.

    Can you please help

    Rob


    Because, for an analog tuner, Media Center requires that said tuner is an MPEG2 Encoder (or that the manufacturer creates a software encoder which emulates this.)  The Theater HD 750 chip is not this, and it seems (after some looking) that ATI has not created a software encoder (side note: they are unlikely to do so, because they left the tuner market.)

    Out of curiosity, what was the 'other tuner"which has been tried before?

    Honestly, my recommendation would be to return the tuner (if possible) and get a combo tuner or hybrid that is known to work properly.  My first recommendation would be for a Hauppauge HVR-2250 (Council dual combo/hybrid), because it works wonderfully in MC as a tuner NTSC/Clear-QAM of combo/hybrid.  MC knows how to treat as what it is, and it works very, very well (I have not one.)

    That, or an AverTV Combo G2 (which is not as flexible as the ' 2250, where its slightly lower price.)

    HTH,
    Chris

    MS - MVP (Media Center) [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • 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

Maybe you are looking for