6009 outputs digital and analog input synchronization

Hello

I work in a program NI 6009. I want to leds by car with outputs digital NI 6009. For example, leads first will be on until what 200 micro seconds then second led will be on up to 200 micro seconds, and then first of all led will be on up to 200 micro seconds. I'll take led with photodedector signals and connect analog output photodedector input NI 6009. I want to synchronize the outputs digital and analog input and separate the first and second led signals the analog input for NI 6009 channel. How can you do with NI 6009? Please ADV

You can not do with the USB-6009 case. Its outputs digital are software with a maximum speed of slightly more than 100 samples per second. The outputs can produce 200 microsecond pulses and cannot be synchronized with the analog input.

You need a device with outputs digital hardware timed or counters that can produce a pulse outputs.

You can synchronize a bit digital output and analog input recording signal on an additional channel to HAVE. Will allow you to see the photodetector and LED the drive with the same schedule and such resolution as described by the sampling rate I. The maximum sampling frequency of AI on the USB-6009 case is 48 kHz that is shared by all channels. If you have two lights to led and photodetector two signals maximum sampling rate would be 48 kHz/4 = 6 kHz which is barely fast enough for your 200 US signals. For more than 4 channels, it won't be fast enough.

I suggest a simple oscillator circuit building and use it to clock a flip flop. This will give you alternating signals to drive the LEDs. You can use a line to reset the flip flop to give you control without the need for high speed.

Lynn

Tags: NI Software

Similar Questions

  • 9174 triggered output pulses and analog input synchronization

    Hello

    I have a cDAQ 9174 with a 9215 analog and a 9401 module. I wonder if this configuration is suitable for my use: a trigger digital extern is sent to the system to trigger a task of analog input, trigger a generation of pulses, with another counter, count of trigger events. Using two counters on 9401, it seems I have no left Terminal at the entrance of my trigger signal. The trigger DAQmx vi does not show counters entries in the list of signals; and if I select a PFI line, an error that says that the line is already in use..., I missed a few obvious solution? I have change my 9401 to a 9402 did?

    Thanks for any help,

    Vincent

    Hi Vincent,.

    So, looks like you need a single line to use as input to trigger events and another line to use for a generation of pulse output.  This should indeed be possible, since the 9401 has 8 lines that are configurable nibble (i.e. lines 0:3 could be configured as inputs, while the 4:7 lines could be taken out, or vice versa).

    However, a big caveat with the 9401 is that the lines must be reserved before each task is started.  This is a limitation of the direction of the line is implemented in hardware and is common as customers when something they using the 9401.  Explicitly reserving your tasks before starting must correct the behavior if that is indeed what you see.

    Best regards

  • Switch between outputs, digital and analog input

    Forgive me, I'm sure that there is a simple answer to my problem, but being relatively new to LabView, I do not know how to proceed.

    With the help of producer/consumer achitecture I am trying to accomplish the following:

    Producer

    1. Relay nearby
    2. Read the voltage

    Consumer

    1. Compare the voltage to the expected value and append the true/false value in a table.

    It will be run 8 times then wait for input from the user through the dialog box run then 8 times.

    My question/problem is how I set up so that the digital analog in and out are timed correctly and get a sample of AI after each relay is closed?

    Material used is the cDAQ, (2) NI9481 & NI9221 (1)

    Attached, is the vi that I came with this day and a diagram to illustrate the intended application.

    Any help is greatly appreciated.


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

  • Questions about the synchronization between output and analog input

    Hi all

    I now have a simple task which head a signal voltage (from PXI ao0) on a circuit and then your comments a voltage at the terminals of a component, for example, that one of the resistors in the circuit, through ai0 on PXI. So in this case, the synchronization between analog input and analog output must be made to avoid error of phase shift.

    I tried to build my VI by learning this example: https://decibel.ni.com/content/docs/DOC-3882

    However I have a few questions.

    1. I noticed that there is a merged error fed the "start task" sub VI for the analog output.  What is the point of fusion to mistake?

    2. I enclose my VI (also shown below) for the output voltage. I put my writing of DAQmx Subvi in the while loop so that I can change the voltage while the VI is running.

    However, in the example, the author has been reading outside of the loop and before even the start task. What difference will it make?

    3. I have also attached my synchronized VI. I always put the wavegeneration and the DAQmxwrite in the loop. A bulging guard error saying about samples is not available and needs to a higher sampling rate or a longer wait time. What causes this?

    I appreciate that these problems can be solved. Thanks to you all.

    (1) first you need start the task of acquiring, he'll wait for trigger here. And then you start the build task that provides this trigger. If acquisition could trigger and never start.

    (3) you must first write something in the buffer (writing DAQmx), then only you can generate it (Daqmx Start).

    Check Cont Gen tension Wfm - Int Clk - no Regeneration.vi in the help-> examples for example.

  • How can I impliment a delay between the analog output and analog input (started by an external analog trigger)?

    I am acquiring several channels of analog voltage input at the same time, I need to send an output analog two seconds after the start of the entry.

    I'm running an experience with accelerometers on a query table.
    I start the trigger and the table remains still for two seconds, which allows a reference level for all sensors.
    Then the output signal of the VI removes the break in the motor controller.
    The speed measured by the encoder is sent to one of the input channels.

    In this way, our accel and speed data are synchronized.

    After it acquired the analog input data out put must be reset to zero.

    MULTI.vi

    I've updated the link above works of VI, I used a property node to solve the problem.

  • synchronize the outputs digital AND digital NI USB 6343 entry

    Hello

    I use NI USB 6343 to fly 1 TTL devices. This device can also produce a TTL signal to indicate if the door is opened/closed.

    I use digital Bool 1 line 1 Point. I was able to reverse the opening/closing of the door on time. But I would like to synchronize the DI and DO it right.

    I tried to throw in the clock aboard, but he failed.

    Is it possible to synchronize the DI and DOI onbaord/hardware clock?

    Any idea will be great!

    Thank you!!

    Hello

    Synchronization of your tasks of DI and shouldn't be possible with your device. You'll need them timeless has a clock that is usable by both. This information is available in the X series user manual

    http://www.NI.com/PDF/manuals/370784f.PDF
    PG 6-9 and 6-13

    You can also find information and examples of synchronization of the various tasks in the article below.
    http://www.NI.com/product-documentation/4322/en/

    Good luck

    Eric

  • Digital and analog simultaneous inter channel delay

    I need to a simultaneous analog input 1 channel and 1 entered digital who intend to make possible acquisition of maximum speed. Of course I expect no delay channel inter if the two entries on the edge of clock sample even sampling. But this example shows unexpected behavior. Restart acquisition regularly shows different delays inter channel. I hope there is someone there to help out me. See the included example.

    I asked the support of National Instruments and they came with an adequate solution.

    Time t (0) stamp in the waveform is NOT the start time of the acquisition but it is the time the buffer is read.

    To demonstrate this applies the same "pulse train" to the two channels and t (0) all forms of wave at the same time of departure. Observe that the edges of both signals match exactly. Because a single channel is a digital input, we make the logic of levels of tension into account.

    Thanks to Henk Talsma
    National Instruments
    Engineering applications

  • 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

  • Synchronous Digital and analog I/O daqmx

    I have 2 PCI - 6254 s in a linux machine and I am trying to sync the analog input (ai0:1) with the incoming digital data (port0) data.  I fed a sample

    clock to Dev1/PFI0.  (I currently use a little the e/s from one of the boards installed) Somehow, I can't align the analog and digital data.  I know because I use digital data to reverse the polarity of the analogue data still incoming digital data (print buffer) are correlated with what is happening in the name of the analog data.

    If I use the AI/sampleClock internal as the common Terminal analog and digital data seems functional and are repeatable.

    Thanks in advance for your suggestions.

    The problem is that the two tasks are not guaranteed to start at the same time because they are not sharing a common start trigger.  In other words, there will probably be a nondeterministic number of samples of phase difference between the two acquisitions.  Unfortunately, the digital I/o on this forum does not support any which trigger feature you can not use just a common starting trigger.  Probably the best thing to do in light of what you have described so far is to use PFI0 as the AI sample clock and change the clock for your digital/Dev1/I/SampleClock task.  You must then make sure you start your digital task before the task to HAVE it.  This should actually slave of your digital clock to the clock of the analog task and actually start both at the same time.  Given that each task physically uses a different signal than its clock (PFI0 vs an exported version of AI/SampleClock), there will be a small amount of latency between the two.  However, this should be the order of tens of microseconds, so I do not have a significant impact.  Also, as the digital task is actually controlled by the clock of the analog task, it will actually start and stop the analog task you called stop task on the digital task.  I hope that this will not be a problem for your application.

  • Oscillator and analog input (NI 9205) in parallel?

    I have a module of analog inputs NI 9205. I want to check the read values are ok and that this purchase is fast enough (because I have some values altogether making strides in 1ms and I don't know if this fits the material real signal).

    That's why I put an oscilloscope in parallel with an analog input and my source of voltage (low impedance). But then the read values are not correct (practically 0). I changed the impedance of the oscilloscope to 50 ohms to 1mW, but it's always the same. The values on the oscilloscope are correct.

    Is it possible to have an oscilloscope in parallel with an analog input?

    I'm not the best expert in electricity...

    Thanks for your reply.

    In fact, it worked. I measured voltage wrong because all the reasons for the BNC connection to the oscilloscope are connected. I keep this in mind...

  • Output TTL triggers analog input with PCI-6251

    Hello, I'm new to LabVIEW and have a question that I hope I can get a response on this forum.  I am currently using a PCI-6251 DAQ card with a block of connection BNC-2120.  I would like raise an event on an input, for example a sine wave, which is connected to AI0 analog.  Then I would send a TTL pulse train via the digital output.  What I'm describing can be better understood by the images of this link:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3017

    In the tutorial page linked above, they do mention the card PCI-6251, but when I read the specs and compared, 6251 also has analog and digital Board, trigger functions, as well as digital I / Os... so I think he should be able to do what I want it to do.  Can anyone confirm this?  If anyone could help me by providing a VI that could do what I ask, just to help me get started, would be greatly appreciated.  Thank you!

    Hello!

    Please post on the Forums OR! My suggestion would be to use build it digital Pulse - Retriggerable.vi found in the Finder for example of OR. Open LabVIEW, go to help > find examples > input/output equipment > DAmx > generating digital pulses > generate digital Pulse-redeclenchables. Change the type of trigger for this departure vi > Analog edge and make the source one line APFI (pin 20 of your card is APFI0). This will generate a pulse based on an edge similar to a level that you specify.

    I hope this helps!

  • Digital and analog gain in Script mode

    Hello.

    5422 module can change the voltage Vp-p order of 05:54 V.

    But when I use the property node - digital Gain, after setting the 1.1 V and return to its previous value (V 1.0) occurs the following error:

    And when generating a signal of amplitude of 1.1 V signal very distorted.

    In niFgen configure Arbitrary Waveform VI it is a Gain parameter to control the standard signal (which I understand). Is there something similar for the Script mode?

    How to access the analog Gain?

    And in general, how to properly use the analog and digital gain in Script mode?

    I apologize for possible errors, but the example is not yet complete.

    Max O.

    Developer of software and engineering,

    TeSLa.

    Hi max_i,.

    Since the ownership of digital Gain help file:

    "Specifies a factor by which the digital signal generator multiply data generated before the conversion of an analog signal in the CAD." Saving digital greater than 1.0, the product digital time gain the data generated must be in the range ±1, 0 (assuming that the floating point data). If the product exceeds these limits, the signal generator cuts out the output signal, resulting in an error. »

    Digital gain requires the data, being always standard-1 to 1V.  The output of 'Ladder' to 'normalise Waveform.vi' here is generally superior to 1, which causes this error 250035.  If you search for the property similar to the entry of 'Gain' on the ' configure Arbitrary Waveform.vi ', I advise to use the 'Gain' on the tab 'Arbitrary signals' property in the property node.

    Looking at your code, it seems that you try to build pretty standard signals (sine signals).  Is that this will change in the future to more complex waveforms?  If not, I wouldn't recommend watching one of the examples in the example LabVIEW finder, I find "Sequence of Arb basic Fgen" quite useful.  If you want to make scripts as well, I would recommend the example "Fgen Arb Script".

    Thank you

    David B

    National Instruments

    Technical sales engineer

  • graph timestampo digital and analog mixed

    Hola:

    Estoy acquired a series of canales analogicos y digitales. MI intention, are representarlos in the grafica (graphic Mixed Signal) misma, pero no encuentro the respond. Editor United Nations VI con lo me gustaria realize.

    MUCHAS gracias.

    Hello:

    I'm acquiring a number of analog and digital channels. I represent the two channels on the same graph (Mixed graphic Signal), but can not find the solution. Joined a VI with what I have.

    Thank you very much.

    Hi, Carlos

    You can implement architecture below, this converts the array to a waveform. Of course if you were after a specific time stamp, then you can use the wave function of construction as well as the function of generation of digital signals. But this should show the basic principle of what you need to see.

    See you soon

    J

  • writing digital and analog/PDM

    Hi I have a PCIe6351 and try to read a digital port starting with a trigger and activating an analog trigger acquire analog data

    is there a way to do it and write a single file in a PDM

    in general, this is what I need, but for now I can not write digital TDMS when I try the collapse of the program without error message

    Each channel to a TDMS file can have a different data type.  What do you mean "the program collapses?  Have you tried to write to different groups in the file?

    If the data cannot be written to the file at the same time (in other words, if data is written sequentially in the file), you can do with the TDMS recording feature built into DAQmx: http://zone.ni.com/devzone/cda/tut/p/id/9574

Maybe you are looking for

  • A toolbar to work is now not checked in Firefox and I can't use it. Can you help me please?

    I used Nectar as my homepage and a toolbar added for many years. I always that it is simple and easy to use (a big plus for aging technophone!) and it is especially useful for letting me know what stores I could shop with through Nectar to increase m

  • Need driver WLan & bluetooth for Satellite C850-A786

    hope that all of your fine guys I have Toshiba laptop (C850-A786). I try to fine driver wireless and bluetooth.But the (ch. satellie) unfounded herehttp://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp?NAV=download# and here http://eu.computer

  • Convert the exe version track if works after 30 days

    I created the program using version trail OR labview software and the hardware I use is material NI Compact RIO. I build and created EXE file in the material Compact RIO now its working fine if after that 30 days trail version is more to know if it w

  • NET Framework

    Anyone with information can explain to me what is all about Net Framework because I can't install some programs like my hp15-d000sia notebook pc suite always tells me to install net framework.Please tell me about.

  • Device = what it means & how can I get rid of this + thank you

    [mailto:*** address email is removed from the privacy *] Envoy: Thursday, September 27, 2012 06:33 To: Nick Fleury Topic: Help Your server suddenly put an end to the connection. The possible causes for this include server problems, network problems,