Triggered signal = digital output

Hello everyone,
I am using the following:
NI6220(PCI, M-series)
Visual Studio 2003 C#
The project I am working uses a watchdog. I get a serial signal which I have to pass on. I was thinking of a trigger to read this serial signal, and then pass it directly on by using a digital output. At moment I read the serial signal with a pausetrigger which starts a pulsgenerator when it is high and pauses the generation when it is low. This is not what I want, because in this situation you are working with a predefined pulstrain generator(initialization of frequency, duty cycle et cetera). While the serial signal is randomly high an low I cannot use this predefined signal. Is there an other way to get this working.
Can anyone please help me with this problem.
Thanks in advance,
Souza

Hello everyone,
I am using the following:
NI6220(PCI, M-series)
Visual Studio 2003 C#
The project I am working uses a watchdog. I get a serial signal which I have to pass on. I was thinking of a trigger to read this serial signal, and then pass it directly on by using a digital output. At moment I read the serial signal with a pausetrigger which starts a pulsgenerator when it is high and pauses the generation when it is low. This is not what I want, because in this situation you are working with a predefined pulstrain generator(initialization of frequency, duty cycle et cetera). While the serial signal is randomly high an low I cannot use this predefined signal. Is there an other way to get this working.
Can anyone please help me with this problem.
Thanks in advance,
Souza

Similar Messages

  • Externally Triggered 6534E Digital Output

    Hi Dear Friends,
    I have get a question on how to do the triggered output for the 6534E card. Right now I am using the 6534E card to output a digital gate pulse, and I want to synchronize the output of this gate pulse to an external source, which is the Sync output of a Angilent 33220A function generator(10 kHz). I want the rising edge of one trigger pulse(the sync output) to start one digital gate pulse output, and when one digital gate pulse if finished it waits for another rising edge of the trigger pulse to start another digital gate pulse.
    For the more detailed description, please have a look at the attached waveform. Hope you can shed some light on the possibility of doing this.
    Thanks a lot for the help.
    Attachments:
    6534 Triggered Digital Output.JPG ‏95 KB

    Hello tiddlycorona,
    From the diagram you provided, you can try the Gen Dig Pulse-Retriggerable.vi. This LabVIEW example demonstrates how to generate a digital pulse from a Counter Output Channel on a digital trigger. The Initial Delay, High Time, Low Time, and Idle State are all configurable. It also shows how to use a Digital Start trigger, so the digital pulse is not started until a trigger signal is received. Though the pulse is configured in terms of ticks, it can easily be modified to generate a pulse in terms of Frequency/Duty Cycle or Time.
    Best regards,
    Ali M
    Applications Engineer
    National Instruments
    www.ni.com/support

  • MyDAQ, Increase Digital Output?

    Hi y'all,
    I'm currently working with a myDAQ trying to trigger three 3V relays through the digital outputs. My main problem is instead of giving me 5V when triggered, the digital outputs are only giving me ~2V since they can turn on an LED, but they don't switch my relays. Is there any way to increase the voltage coming from the digital outputs?
    I've tried using the analog outputs instead (since they can put out 10V), but can't seem to get those to work the same as the digital outputs. I essentially just want to press a button and the output to send a steady voltage >3V and then turn off once I press the button again. I got this to work with the digital outputs, but the analog outputs throw me buffer errors and other input errors I can't seem to fix.
    I'm a beginner to LabVIEW and myDAQ and would appreciate any help! Thanks!

    Hello SNorrell,
    According to the myDAQ's specifications, each DI/O line can source a maximum of 4mA, which won't be enough to drive your coils unless you use multiple outputs to drive each.  I don't recommend attempting that. 
    Depending on how many relays you need to use, however, it's likely that you can get a few to work without additional hardware by using the built-in 5V supply line to drive the lines and grounding them at the DO.  Invert the logic on your digital lines so that they go low to turn on the relays. You'll need to account for power-up conditions and ensure your hardware doesn't toggle on or off unexpectedly when powering on the DAQ or the PC. You'll also want to ensure you're not driving too much current to the digital pins, refer to the documentation for current and voltage limits.
    Regards,
    Tom L.

  • Trigger digital output at every 10 digital pulses

    How can i generate an output pulse at every 10 input pulses comming from an encoder?
    I need to trigger a sensor at every 10 encoder pulses to get data from the sensor.

    Hello jyp777,
    What you will need is a counter with an if statement that activates a digital output every 10 ticks. To do this, I would look at a LabVIEW example titled: Counter - Count Edges (Continuous Clock) that can be found under Help >> Find Examples... >> Hardware Input and Output >> DAQmx >> Counter Input in LabVIEW. Using this example VI, it should be a simple step to add a condition that triggers a digital output when the count reaches 10. 
    You can also use a Digital Output example if you need help in this area. These examples can be found by going to :
    Help >> Find Examples... >> Hardware Input and Output >> DAQmx >>Digital Output. I would recommend "Digital - Continuous Output.vi". 
    Happy LabVIEW coding!
    Thanks,
    Collin D.
    Applications Engineer
    National Instruments

  • Create 4 digital output pulses base on input ttl signal

    Hi
        I am a beginner in Labview and would appreciate any advice on how to solve the following problem.
    I am creating a TTL pulse train, and would like to send that into Labview as input.  For every falling edge detected on the input signal, I'd like Labview to generate 4 digital output pulses.  For each output pulse, I'd like to be able to specify the delay, and duration.       The picture should illustrate it more clearly, with the numbers showing the intended order of magnitude.
    System:  NI PCI-6733 DAQ card, Labview 8.5
    My daq card has 2 24-bit timers, and 8 digital I/O but I don't know what the best approach is for creating between 4-8 output pulses of this precision..should it be handled in hardware, or in software?  And how would I go about it
    Thanks,
    -Sidney
    NI Hardware: PXI-7853R, PCI-5122, PCI-6733, PXI-1036, PCI-MIO-16E-4, PCI-6110
    Computer Hardware: Xeon Quad Core - 2.33 Ghz, 8 GB RAM
    Software: Labview 2009, Labview FPGA 2009, Vista 64-bit, MAX 4.6, DAQmx 9.0, NI-SCOPE 3.5
    Solved!
    Go to Solution.

     Hi Yann,
       Wow, thank you so much for this example!  I'm trying to take a look at it, but when I run it.. it responds with the following error message
    Error -200452 occurred at Property Node DAQmx Trigger (arg 1) in DAQmx Start Trigger (Digital Edge).vi:1->reprise-1.vi
    Possible reason(s):
    Measurements: Specified property is not supported by the device or is not applicable to the task.
    Property: Start.TrigType
    Task Name: _unnamedTask<49>
    This is strange too, because ive already used the Digital Edge Start trigger for a different application with this card.
    -Sidney
    NI Hardware: PXI-7853R, PCI-5122, PCI-6733, PXI-1036, PCI-MIO-16E-4, PCI-6110
    Computer Hardware: Xeon Quad Core - 2.33 Ghz, 8 GB RAM
    Software: Labview 2009, Labview FPGA 2009, Vista 64-bit, MAX 4.6, DAQmx 9.0, NI-SCOPE 3.5

  • How to do a digital output triggered by the falling edge of a clock?

    Hello !
    I would like to do a digital output (on a given line of a pci 6602 card) triggered by the falling edge of a clock.
    More precisely, a pulse train is generated. I have to output each bit of a variable (first, the LSB ; then, the others bits, until the MSB), each bit being transfered on a falling edge of the pulse train. How could I do that, please ?
    Thank you for helping me.
    Julian.

    see the following link (other forum same subject)
    http://forums.ni.com/ni/board/message?board.id=40&message.id=1634

  • Is it save to use digital output as a digital input signal for another channel

    Hi all,
    I know this is a stupid question, but I do not have other signal generator by hand. So what I want to know is, can I use the digital output signal of my USB-6001 as an input signal for the same device but on other digital port? I did not try out directly because I do not want to burn the device down......
    Thanks
    Solved!
    Go to Solution.

    I do loop backs all the time, especially in my test systems as a way of making sure my signal is making it to the UUT pin.  I typically throw in a 10k resistor just in case, but I have never had an issue.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • SB X-FI Titanium.. Digital output works but Analog Signal M.I.A.

    @SB X-FI Titanium.. Digital output works but Analog Signal M. I.A. Hi Guys,
    I recently installed a new hard dri've on my machine after my power supply failed and fried it. After reinstaling Vista 64 and my drivers I noticed that my sound card was not working properly.
    In.. control pannel > Sound > Playback I see my soundblaster listed but only the digital out is showing. There are two other icons listed.. one is for "Digital Output Device 2-High Definition Audio Device.. and one for a 3-High Definition Audio Device. I don't remember these being listed when my sound card was working properly before the HD crash.
    No icon representing my analog output (Left/Right, Center, and Rear?Speakers)?is displayed. I reinstalled the drivers, updated the drivers, reformatted my HD and started all over again but nothing works.
    I made sure that my motherboard sound card is disabled.. I am really stumped.. The sound card used to work quite well.. Has anyone else had this problem and been able to fix it's
    Here is my system info:
    Motherboard: Gigabyte GA-MA790FXT-UD5P (Realtek Audio Disabled)
    Sound Card: Internal Sound Blaster X-FI Titanium
    Any advice is much appreciated.

    DRe: SB X-FI Titanium.. Digital output works but Analog Signal M. I.A. High definition audio device is what your card is detected as until you install the original CD driver or the Daniel K 2.0 support pack. Then you can update to the newest Creative drivers. I tried to format just like you and thought that I would just download Creative's newest driver and start from there. No Go!!? The newest Creative driver seems to install, but then after reboot like you, I have multimedia audio device.
    So take out your CD if you have it, and run the driver setup only. Then using just this driver you can install all of the newer Creative updates. The Creative auto updater is installed along with your original driver and you will see it detect all available updates.
    Easiest solution of all,
    Try this pack and save yourself a load of hassle........
    http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/td-p/527485
    This will install a very proper Creative driver, and applications that will work very very well on your system compared to the CD orignals

  • Setting time critical digital output based on axis position (PCI-7358)

    HI,
    I need to set a time critical digital output based on encoder position (this will switch fast acting valves). I was planning to try the general purpose DIO but I can't find any examples, I have been through the manuals, searched the site etc. Where can I find help with this, all the examples only seem to deal with digital input triggering or RTSI? I'm thinking of an onboard program that just monitors encoder positions and sets digital outputs.
    Some time back I seem to remember reading that general purpose DIO should not be used for time critical operations, is that correct? And if so what are the other options - RTSI going to another DIO board? The DIO really needs to be deterministic, is RTSI the only option?
    Any advice appreciated / Martin
    Certified LabVIEW Architect

    Even with an onboard program you will always get a delay of several milliseconds between your axis has crossed the position and until the digital outputs are set. If this is ok for you then you could choose this approach.
    For the case that you only want to toggle one digital line the Breakpoint feature should be the best solution as it toggles the breakpoint output almost immediately when the breakpoint positions are reached.
    If you need to change a whole pattern instead of only a single line then the approach you mentioned would be the best solution (RTSI and high-speed DIO like the 653x boards). Combine this approach with the breakpoint feature by routing the breakpoint output to RTSI and using this as a update clock signal for the DIO board.
    Best regards,
    Jochen Klier
    National Instruments Germany

  • 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

  • Need 1200 digital outputs that can be updated at 1 MHz

    I need to control about 1200 digital outputs (CMOS or TTL)  at high speed (1 MHz).  Any platform
    that gets the job done is OK, but I usually program in a WinXP environment.   I also have a problem
    of distributing these signals to many units over a roughly 50 by 50 foot area, so I also need hardware
    to either drive the outputs over an extended length of wire or to wirelessly distribute the signals to
    multiple substations which each operate between 10 and 50 units.
    A small number of inputs (maybe just two) would be very useful to control the timing of the
    state transitions.

    Thanks for  your response.
    Our application is controlling LED's for a computer graphics application.
    http://gl.ict.usc.edu/Films/RelightingHumanLocomotion/index.html has
    some pictures of the apparatus, as well as a short video showing how
    it works and the results we've got so far.
    The basic idea is to capture varying illumination conditions extremely
    rapidly using high-speed (Vision Research) cameras that go at 5000 fps
    or so.  The signals that drive the lights are just 5V DC,
    currently supplied by a large number of PICS, but we are hoping to find
    a more
    centralized solution, as well as a higher performance solution (large
    program memory for many lighting patterns, high speed processing to
    support flexible computation of patterns, high speed updating of
    outputs to allow for multiple on/off states within a single 200 usec
    interval
    to simulate grayscale control of the LED's).
    If the system is fast enough, it is possible that a smaller number of
    outputs could drive a large bank of latches that provide the final
    outputs,
    but ideally this would be handled by the NI hardware.  In other
    words, we would just buy enough output units, hook them up, and then the
    programmer just sets the 1200 bits of memory as desired and then triggers the refresh.
    To distribute the signals, one possibility is to have output units with
    between 10 and 50 outputs that can be connected to the central
    controller with long cables (up to 40 feet) and which in turn drive
    individual lights through wires about 10 feet long.  Wireless
    would be
    even better if it exists.

  • Sequential Digital Outputs or Counters

    I am trying to sequentially flash four digital outputs.  I want to run them at a frequency, with 25% duty cycle, one after the other.  To be clear, output one on for 25%, output two for 25-50%, output three for 50-75%, output four 75-100%, then repeat.  I tried using four counters, but they are not synchronized, so the pulses do not stay sequential.  I am using a USB-6143.  This seems really basic, but I am a pretty new user.
    Thank you - 

    Assuming you are using the USB-6343 (there is no USB-6143, although there is a PCI variant), you can either run 4 counter output tasks with triggering and appropriate initial delays, or you can use a single digital output task with the appropriate waveform--for example, using lines 0:3 you could generate {1, 2, 4, 8, 1, 2, 4, 8 ...} to get the desired waveform.  The frequency of each output would be 1/4 of your sample rate (the sample rate is configurable).
    Either method would work, but using digital output seems like a much more straightforward way to go about generating your signals.
    Best Regards,
    John Passiak

  • Duplicate digital output on 32-bit port

    Hi all, any help appreciated with the last (!) step in a very time consuming puzzle...
    I have a PCI-6254 card with 2 x 64 channel breakout cables. Each cable goes to a remote box, each of which essentially runs a multiplexer and acquires analog signals.
    Each multiplexer needs an array of  4-bit addresses (eg. 0 to 15) to cycle the multiplexer channels, which I can succesfully generate on port0\line0:3 which are found in cable 1 going to box 1.
    My mission is now to duplicate this digital signal in the second cable going to the second box. For this card, Cable 1 has port0\line0:7 and cable 2 has port0\line8:31. I understand that it's a 32-bit port, so I need to send it a 32-bit address.
    So I simply (!) want to send identical digital outputs on port0\line0:3 and on (say) port0\line8:11. They should be triggered by the same clock, etc.
    Is this possible? However I try so far I can only generate an output on lines 0:3. From what I've read, I'm wondering if the whole of the port is tied up by writing a 32-bit number to the first 4 lines....
    Thanks!
     

    Thanks both, really appreciate your input. I think I tried something like that today with no success but maybe I did it wrong. It ran without errors but just generated the output on 0:3. I'll try your suggestion in the morning (New Zealand evening now).
    I think I need to replace the 1D boolean with a 1D U32 array to send the right bit address (I am sending the mux channels in a funny order, something like 4,0,3,6,10,etc). But then I fear that it will only run one task, as the whole 32-bit port is being addressed each time.
    GerdW - could you explain how I would go about setting the right bits to send, say, a value to 4 to both sets of lines? I can't get my head around it...
    Thanks guys!

  • Trigger Solenoid Valve (Digital Output)

    I was wondering wether it is possible to use a trigger to send a signal to a digital output. I currently have to send a signal to a solenoid valve when the slope of the data I am acquiring starts to become negative. I know LabVIEW can do triggered data acquisition but can it send a signal to a digital output based on a trigger (falling edge)? I already know what code the signal should send. However, i tried trigger.vi without success. I am relatively new to LabVIEW and would really appreciate any help.
    Attachments:
    Moses_SBE_SSE_Triggered_Continuous_Acquisition.vi ‏76 KB

    Hi M^2,
    If all your trying to do is a software timed trigger as shown in the vi that
    you provided, theres a few things that I would change.  First off, I would
    create the digital output channel and start it prior to the loop.  Second,
    I would initialize the value of the digital output to high (I was using an
    inverse logic LED output) prior to the loop.  Then after the trigger is
    found, write the digital output to the opposite (low).  In addition, I
    changed the DAQmx read to 1 channel with N samples (1D DBL).  This seemed
    more appropriate if you’re just using one analog input channel. 
    I've gone ahead and uploaded the code I modified.  This is setup to my
    parameters.  Basically, I triggered when my thermocouple voltage rising
    edge went over 0.29V.  You will need to change these settings back to what
    you need for your application.  Also, I wanted to note that once the
    digital output is changed low when the trigger is found it will remain low
    until changed high again.
    I hope this helps,
    Paul C.
    Message Edited by Paul C. on 08-16-2007 03:34 PM
    Attachments:
    Moses_SBE_SSE_Triggered_Continuous_Acquisition (REVISED).vi ‏81 KB

  • Solution to my Audigy 4 Digital Output probs... please make a stic

    I was recently playing Q3TA with my son when my overheat protection kicked in. I exited to windows to see the temp and throttle back my CPU a tad, and when I returned I had no sound from my digital output. Analog was working fine, however.
    Setup:
    Giga-byte GA-MA78GM-S2H w/780g chipset
    Athlon 64 X2 5000+ BE
    Integrated Realtek HD audio (disabled)
    Integrated ATI HD 3200
    2xGB 800MHZ DDR2
    Creative Audigy 4
    Boston acoustics Digital BA735 2. speakers
    I went over every setting in all of my consoles, HQ's and drivers. I played with driver versions, DirectX versions, diagnostic programs and procedures in the knowledge base. In defeat, I even wiped out my XP install and started fresh with the Aud-4 removed, using analog on the integrated card thru headphones. Then I disabled the integrated card and reinstalled the Audigy 4 only to find that there was still no sound from the digital speakers.
    Solution?
    I[color="#ff0000"] unplugged the power to my speakers, and reconnected everything. As soon as the power was back up, the sound started playing (I had a .MP3 on for testing).
    This stumped me for two reasons that occur to me know:
    . These speakers (and possibly many others) don't fully power down when you turn the volume knob off and the light on the satellites goes out. The decoder and subwoofer unit keep their light on.
    2. Apparently, some situations introduce a faulty signal to the digital output that scrambles the speaker units and they refuse to operate any longer.
    Now I know, unplug the power to my speakers. My system works on all three sampling frequencies in "audio console" 44., 48, and 96KHz. None of the troubleshooting procedures touched my problem, because they didn't even mention the speaker setup, let alone doing a hard reset.
    Please please please!
    Make this a sticky for future me!!!

    The Digital output jack on the card isn't of optical signal type.....you will need to get those I/O module mention bt johnston2 for optical connection.

Maybe you are looking for

  • No option to save files, save as files in inDesign 5.5

    The option to save, save as and copy files are grayed out and not an option for me. I am having to save my files as IDML files and force quite inDesign to close it. I see that this has been a ongoing issue...but can't seem to find a real solution or

  • BASIS Abbreviation

    Hi All, While surfing some SAP groups, I came across the full form of BASIS. I was wondering whether it is authentic or just someone throwing a prank. As per them BASIS stands for : <b>Business Application Software Integration System</b> Seems to goo

  • How to order by a column not on the base table?

    Best explained by example: I have 1 block, base table is SALE. I would like to sort this block by PROD_DESCRIPTION which is not on SALE. I only have PROD_CODE (the primary key of PRODUCT which contains PROD_DESCRIPTION) I am not running Enterprise Ed

  • Patch installation problem, catupgrd.sql file is missing in the directory

    Hi, I have installed oracle database 10.1.0.2.0 in my windows system and i have created one database. now i got oracle database 10.2 patch from metalink. As per the document everything i did, i shutdowned the database,stoped all services and installe

  • My itunes is not connecting to the itunes store.

    my itunes suddenly is not connecting to the itunes stores. the meaasge is '' networkconnections was reset. nobody did any resetting. why is this so