Generate AO with Digital trigger

Hello, I am having trouble outputting a continous waveform (custom multlisample channels) when a TTL - like 5V 0V trigger is applied to PFI0. The trouble is although the timing source runs continously, when the digital voltage line is connected I get only one waveform sent out, as opposed to a continous regeneration of the same waveform.
I have been working with some conditional loops, but to no avail, is there a solution that can provide two triggers  ( one for a pulse train) and then for the digital falling edge (on at 0V) that can allow for regeneration of the AO write?
Thanks,
DB.
Solved!
Go to Solution.

Hi DB,
A good example for this application is a DAQmx shipping example in LabVIEW.  In LabVIEW, navigate to Help»Find Examples»Hardware Input and Output»DAQmx»Analog Generation»Voltage»Cont Gen Voltage Wfm-Int Clk- Dig Start.vi.
You can choose to specify an external clock if you would like by right-clicking on your source input to the DAQmx Timing and selecting Create»Constant.  You can then specify where you bring in the external clock.  By default, it will use the onboard clock of your DAQ card to create a pulse train.  This example uses the parameters of the waveform to drive the sample clock timing.
What NI DAQ hardware are you using?  By default, the card will store the waveform you wish to output otno the FIFO of the board, and regenerate the the waveform until you press the stop button.  Does this help?
Best,
Adam
Academic Product Manager
National Intruments

Similar Messages

  • Multi-buffered acquisition with digital trigger

    I have a PCI-MIO-16E1 and I need to do three channel (250KHz/channel - ~400 scans/trigger) multi-buffered acquisition with digital trigger (trigger => 30 Hz).
    I could not find any example of multi-buffered acquisition. Could anybody help me?

    Hello,
    I assume that you are refering to a retriggering setup where each time you recieve a trigger you take 400 samples on each channel at a rate of 250kHz per channel (total scan rate = 3CH * 250kHz = 750kHz).
    In order to keep the system hardware timed you can use the two counters on the board to produce a retriggerable pulse train that will act as your scan clock. For example each time the counter recieves a trigger it will output a clock signal of 750kHZ with 400 or so pulses in order to take ~400 scans/trigger.
    This clock signal can then act as the scan clock for your 3 channel analog input operation.
    Now we have to figure out how to set up the retriggerable pulse train from the counters and have the analog input use the counter output as a sca
    n clock.
    Good thing there is an example that is already written
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/aab61e455564a04d862568930018e725?OpenDocument.
    Good Luck.

  • Generate counter output based on a digital trigger

    I am trying to output a train of pulse based on a digital trigger (GO bit). When the GO bit goes high, I want to output a pulse train after an initial delay (ie: 2 seconds). When the GO bit goes low, I want to stop this pulse train. When the GO bit goes high again, I want to start the same pulse train with the same initial delay.
    The output pulse train has 2 frequencies so I am using 2 counters that generate the same pulse but one of them is delayed by a certain amount. Then I combine the output from both counters into one output using simple BNC T connector. Since I am using 2 counters (max # of counters available to me), I can't create a finite pulse train.
    If I use a pause trigger, the only problem is that  the second time the GO bit goes high, the initial delay is not used (each channel or counter has a different delay).
    So far the only way I can think of is by software timing the counter (by counting the time since the task has started) and stopping the task once certain amount of time has passed. Then I wait for a second trigger which should start the pulse train again with the initial delay.
    Is there a better way to do this? 

    One more thing:
    Is there any way to use a digital trigger that is based on two different digital signals ANDed together? I basically want to output the pulses when 2 digital inputs are binary 1 at the same time.

  • How do I use a push button digital trigger with my 6034E DAQ board?

    I am only a Lab View toddler.
    I am currently using a push button, wired to PFIO/TRIG1 and DGND, with a anolog trigger. However noise is causing my program to be triggered. I was told that a digital trigger would help to reduce the random triggering. How do I create a push button digital trigger?
    Thanks

    implement a schmitt trigger.
    Struggling with Labview wrote in message
    <[email protected]>...
    >I am only a Lab View toddler.
    >I am currently using a push button, wired to PFIO/TRIG1 and DGND, with
    >a anolog trigger. However noise is causing my program to be triggered.
    >I was told that a digital trigger would help to reduce the random
    >triggering. How do I create a push button digital trigger?
    >Thanks

  • How to use digital trigger with analog I/O

    How do I program analog input and/or analog output to start on a digital trigger (PFI pin) on PCI-4451/4551.
    I have tried out various configuration and succeeded in starting analog input, simultanuous input and output triggered by the the anlaog input signal. I have also succeded i triggering 4551 from the dedicated EXTTRIG pin.
    The problem is to trigger on a selectable PFI pin. I find the help for "AI Trigger Config" and "AO Trigger and Gat Config" misleading - some unsupported features seem to work while selecting PFI pin as source make the PC restart immediately.
    I have not been able to find any LabVIEW example that shows how to use PFI pin as trigger input.
    Using LabVIEW 7.1, NI-DAQ 7.3 on Windows 2000.
    Kind regards / Med venlig hilsen
    Torben

    Hello
    The PCI-4451 does not have any PFI lines. If you look at the user manual in the link beneath you will be able to confirm this by looking at the connector signal discriptions. The same is valid for the PCI-4451
    http://digital.ni.com/manuals.nsf/websearch/6A32358C53BB15F086256660007392DC?OpenDocument&node=132090_US
    The two ways of triggering that you have succeded are the analog triggering and digital triggering that you can peform with the PCI-4451.
    Regards
    Mohadjer

  • Digital stimulus-f​requency response: Need to drive with digital output trigger. Using counters for response.

    I need to drive stimulus-response with a software driven digital trigger and NI-TIO counter based response. No analog I/O is really relevant, although I have a PCI-6035E multi-function DAQ as part of my gear. I intend to use the analog, but its timing is non-critical and can be software timed.
    The real trick is that I want to set the basic timing of the system (in the range of 1 - 50Hz) from the timer0 on the 6035E. This signal needs to be replicated to drive a trigger pulse and to route through RTSI (or a PFI) to trigger frequency counts using the four possible groups of counter/timers on the 6602.
    What I need is:
    while( enabled )
    Repeat at (
    software controllable rate = 1-50Hz)
    Trigger Sets a PFI line for 10-20us
    same trigger sets an RTSI line
    - Software Set Delay (usually zero)- stable is more important than the delay time!
    Count for software set time on 4 counters
    analog samples
    Post-process
    I want to do this in LabView. I have checked out the Advanced sychronization demos online, but the examples all use analog triggering and buffered digital I/O. This doesn't really address what I need to do.
    I have made some failed attempts which relied on software to sync up the trigger and the response frequency acquisition. This is definately flawed. I need to start the counting right after setting the digital output trigger, and stop the count after a fixed interval for frequency calculation.
    I am having trouble working through the signal routing to get the timing to trigger off the digital stimulus output pulse.
    Any help would be appreciated
    Thanks,
    Joe

    Joe
    What are you using the trigger from the 6035E for? I do not know what you mean by, "to trigger frequency countes."
    If you are having problems just routing the signal to the 6602, here is a vi that shows you how to route a signal through the RTSI cable to use as the source of a counter.
    Brian
    Attachments:
    Route_RTSI_to_Source.vi ‏67 KB

  • Generate complement​ary digital signals with dead time between each pulse and controlled by duty ratio

    I am to generate  two complementary digital signals using NI 9606 conected by RIO Mezannine Card to NI 9683 (Half Bridge DO).
    I am able to generate the signals but I am not able to put dead time between high and low signal and also, low and high signal.
    Requirement:
    (1) When the first signal goes high and the second signal goes low, there should be a controllable dead time.
    (2) Also when the second signal goes high and the first signal goes low, there should be a controllable dead time.
    I am able to do requirement 1, but I am unable to fulfill requirement 2.
    Please have a look at my VI and let me know how to go about satisfying requirement 2.
    Attachments:
    complementary test 2.vi ‏69 KB

    Hi Frank ,
    I have already taken note of the example Tannerite has provided  and have built my vi ( attached in previous post) surrounding that example.
    Now I require to control the PWM duty cycle as you can see from the vi using a knob and that control refers to both the signal 1 and 2.
    Now the signal 1 end and signal 2 generation requires a controllable dead time. Similarly, signal 2 end and signal 1 geneeration also requires another controllable dead time.
    I am able to do either one dead time at a time using delay but not two dead time simultaneously.
    I feel that I have two put the delays at the appropriate data flow point. I am working on that.
    I would really appreciate if you could give some insight on how to solve this dead time issue and generate two complementary waveform with dead times whose duty cycle can be controlled by a knob controller in fronty panel .
    I have also posted the required timing diagram for reference as suggested by Tannerite.
    Best regards.

  • How to sample a data input waveform with a trigger input waveform

    Hi,
    I am using the NI USB-5132 digitizer to receive two inputs: one is an analog data waveform and one is a digital trigger waveform.
    Is there a way to generate a third waveform/array of data that corresponds to the data waveform being sampled only once per rising edge of the trigger input?
    -Thanks

    Timothy,
    First of all thanks for the reply, I've been really busy this last week and haven't been able to reply.
    Right now I have my data signal on channel 0 of the NI USB-5138, and I have the trigger on channel 1.  I have attached two corrections of how the signals look coming in (one is zoomed out, one is zoomed in, trigger is the red one the zoomed in one).  The trigger signal has 128 square pulses per scan that correspond to the time that I would like to sample 128 different high values for the data input.  I also have a 3rd input which has a falling edge for the start of each scan. As you can see in the zoomed out waveform graph, the data input consists of consecutive scans of data. 
    My end goal would be to process the data so that I have 128 different arrays of 10-20 data points (each data point represents a different scan), with each of the 128-array corresponding to a different element in the 128-long scan, and how it has changed over time.  So for example, if the data at array location 3 changes from 0 V at scan t0 to 2.5 V at scan t1, then back down to 0 V at scan t2, then I would like to have an array that looks like:
    Array of data for location[3]
    Time:         t0    t1     t2
    Voltage:     0     2.5   0
    My biggest challege has been setting up these arrays.  Would it be best to capture 10-20 scans using the 'Acquire N Samples', and then do post processing?  I also experimented with the PtbyPt VIs, which seem interesting because I would like to do as much of my work in real time as possible, but I'm not too familiar with these or with Labview.
    Any help would be much appreciated.
    -Ddetone
    Attachments:
    zoomedOut.JPG ‏213 KB
    zoomedIn.JPG ‏242 KB

  • Acquire generated signal with this hardware ?

    Hello everyone,
    I didn't really know where to post this, I apologize if it's the wrong place.
    I'm very new to the LabView thing, and I have for project to trigger an injector and so to create a digital signal like this:
    Due to the characteristics of the signal (110V, 10-20A, injection duration: ~20ms), someone recommended me this hardware (sorry if I'm not allowed to post these links):
    - programmable power supply: http://fr.farnell.com/ea-elektro-automatik/ea-ps-9200-25-2u/alimentation-1-voie-200v-25a-prog/dp/2422474
    - USB interface: http://fr.farnell.com/ea-elektro-automatik/usb-interface-ea-if-u1/interface-for-psi-el-usb/dp/1268147?ost=EA-IF-U1
    I'll try to figure out on how I create (on my own for now) the signal with LabView.
    My question is, will I be able to acquire the generated signal with this hardware in LabView, do I need something else ?
    Thanks.
     

    I have designed and built injector drivers. To get a waveform somewhat like the one you showed requires a sophisticated and fast control circuit. I would not call that a digital signal.  It may be controlled by some kind of logic signals, but that is an analog signal.  No programmable power supply I have seen is fast enough to come close.
    The pull-in current does not typically go into a ring/overshoot flat-topped waveform as you have shown. It follows an exponential curve defined by the L/R rise time and the current limit set by the supply voltage and the injector coil resistance. For the injectors I have seen that current limit is much higher than the current required to generate the magnetic field required to open the valve.  That oscillatory response could be the result of a switch-mode current regulator.
    Similarly, the hold-in current does not occur by magic. Either the supply voltage needs to be changed (open loop system) or the current sensed and regulated (closed loop system).  The kind of ringing you show can occur in a switch-mode current regulator.
    Lynn

  • No digital trigger signal on a PFI x-port in a PCI-6259

    Hi,
    I am using a PCI 6259 DAQcard (with a SHC68-68-EPM cable and version:2.9.1f0) to get an analog signal and a digital signal. The analog signal is used in NI MAX or NI Signal Express (DAQmn 9.7.5) to trigger it with the digital signal. When the digital signal is mounted on a Px/x port I can detect it. If I want to use it as a trigger signal on a PFI x-  (better PFI x/Py.y-) .port I do not get any trigger quantitiy.
    With a NI USB 6008 everything works quite well. Remark: The digital post is just labled as: PTI 0 and not as in the case of the PCI 6259 on the NI CB-68LPR-board: PFI x/Py.y.
    Another remark is that I did not measure a voltage difference of 5 volt at the provided port.
    How can I fix the problem and use a PFI x/Py.y-port for a digital trigger?
    Solved!
    Go to Solution.

    Hey AndGar,
    by trying I found one chanel on the platine with give me an trigger signal. So I can measure something but not in every chanal.
    Maybe just the PFI x- ports are reserved for triggering and you need to close every other task which measures a digital signal.
    *actuall I have no access to the programm*
    Thanks and best regards,
    Marcus

  • How to set & use digital trigger for AIN on a DAQmx?

    1) How I configure a task to allow a digital input line to trigger a AIN reading in VB6.0 with a USB-6210?
    2) To help me answer the above I created a task in Measurement & Automation Explorer that used a digital trigger (TRIGGER TYPE= DIGITAL EDGE, TRIGGER SOURCE = PFI0, EDGE=RISING).  Then from VB I tried to figure out the parameters that were set.  I had no luck.  So, once I understand to achieve (1) above I want to be able to verify the resulting settings.  What command(s) would I use?

    Hi Hjehan,
    I recommend checking the following knowledge Base that can point you to the different DAQmx examples.
    Regards,
    Faris A
    Bueller

  • Digital trigger for analog scan

    I need to synchronize the start of several measurements with a trigger. I am using a NI 4472 input card and PCI-6731 output card. I need to trigger an analog scan on the 4472, a voltage output from the 6731, and trigger a dmm to start scanning with a digital output from the 6731.

    To trigger acquisition on the 4472 from a DIO line on a 6731, you would need to follow recommendations similar to Sal's. You could route the DIO line to a RTSI line on the PXI backplane, and then set up the 4472 to trigger acquisition off that RTSI line. You could also use an external connection and wire the DIO line to the "External Trigger" input on the 4472, and configure it to trigger off that signal. Probably the most important thing for you to do is make sure that everything that you want to trigger off that DIO line is setup and waiting for it before the trigger occurs.
    You can also use the example finder to find examples that will work with each individual device. In the bottom left-hand corner of the LabVIEW example finder, there is a button that you
    can click on to select or add the different pieces of hardware you want examples for. After you have configured that correctly, if you limit results to that hardware (check box), the only examples that you will see will be work with that piece of hardware. There are numerous examples of triggering on a digital line for the 4472. Hopefully this get's you moving. Good luck!
    Logan S.

  • Digital trigger mac OSX

    Hi everybody
    I am running a machine mac OSX snow leopard with Labview 2011. The acquisition card is a PCIe-6259 with a connection box SCB-68. I would like to perform the acquisition of an analog signal according to a digital trigger (PFI0 or PFI1). I have created this simple VI that unfortunately does not work on my machine. The VI exits immeditely without doing anything and I do not have even an error. If I switch to analog trigger it works nicely but it is slower than I need. If I run the same VI on a windows machine it works fine. What am I doing wrong?
    Thank you very much for all the tips
    antonio
    Attachments:
    Trigger_acquisition_test2.vi ‏23 KB

    I do not have any hardware so I cannot test. Try putting an error indicator (or probe) on the error wire coming from the Start Trigger VI to be sure that you are not getting an error. I keep automatic error handling turned off, so I am not sure, but I think that wiring the error out terminals changes the way it works.  Put an error indicator at the end of the chain also.
    Lynn

  • Form 16 With digital signature giving adobe document corrupted output

    Dear All,
    We have configured ads and implementing form 16 with digital signature,we have done the all configuration as per SAP Guide and dezso blogs,but when generating the form 16 with digital signature its giving
    "Adobe reader could not open _xxxxx.pdf because it is either not a supported file type or corrupted,
    we have done the same configuration in dev its working fine and prd its not working,request you to please provide the solution for the same.
    as per some check list i have cheked ads_https is working fine,but when executing the report fp_pdf_test_00  with rfc ads_https its asking for user name and password,we have maintained the same user name and password for abap and java for both adsuser and ads_agent still same issue,
    pelase suggest.
    please find attached screenshot for your reference.
    Regards,
    Basis

    This can be done but you must use the Document Form var to route the signed pdf. You must configure the FormGuide submit button to 'Submit from PDF' in Guide Builder.
    Also the button on the form must be configured to submit as 'PDF' (not XDP). This change is done when you open the form in designer.
    Note that after you have submitted the signed pdf you will be dealing with a pdf subsequently.
    Attached is a sample FormGuide.

  • Reusing digital trigger on PCI-6733

    I am working with a PCI-6733 analog output card. I would like to use the digital trigger to start a waveform, then use it to start another waveform without stopping the first (then start a third while the first two are running, and so on). I don't need to reroute the trigger signal - all the pulses can (but don�t have to) come through the same PFI terminal.
    I haven't been able to do this with NI-DAQmx (I get errors, e.g. -50103, -89137, saying the "resources are in use"). Is it possible? Can it be done using register level programming? - looking through the register level programming guides, I didn�t see anything that indicated setting a new trigger would stop the currently running waveforms.
    Thanks in advance,
    Matt

    Hello Matt,
    I believe you can do it only if you use different PFI lines to trigger your waveforms. You won't be able to do it with one digital trigger, that's why you were getting those errors.
    Try using three PFI lines to trigger each waveform and let me know if it works please.
    LA

Maybe you are looking for

  • Cannot start gnome 3

    i have installed arch and gnome3 on my laptop, but i found that i cannot enter it. if i execute gdm with a normal user(IOW not root), i will get some warnings and nothing else will happen, but if i execute gdm with root, i will see the login screen,

  • Driver problems with Windows Vista 64

    Hello, I recently upgraded to Vista 64bit. I have a Creative Sound Blaster Audigy model# SB0090. Whenever I try and install the drivers, it says: "Set is unable to detect a supported product on your system. Please ensure that your product is properly

  • Transferring contacts to iphone 4

    How do you transfer sim card contacts from an old phone to i phone 4 when the sim card sizes are different?

  • HT1491 how to cancel a purchase

    i made a purchase from my ipod and i don't have enough money in my account to pay for it and i want to cancel the puchase.  please tell hoe ro cancel it

  • Virtual Machine Base Desktop Deployment Publish RemoteApp Error

    Hi, I got error while i am trying to Publish RemoteApp in VDI as below: To populate the list of RemoteApp programs, the following requirement must be met on the virtual desktop: 1. The currently logged on user must be a member of the Administrators G