External signal gated measurement

Hi,
I have a PCI-6602 card and use it in LabVIEW 8.2 with DAQmx.
I use an external digital signal as trigger to PFI0 channel (choose pause when low option),
and using ctr0 for the source signal channel.
The problem is: the external trigger signal contains three parts: 1 ms high voltage, 3 ms low votage,
1 ms high voltage, I want to get the counts for first 1 ms duration and the second 1 ms duration, how to do it? Thanks.

Hi JackN,
It sounds to me that you simply want to make a pulse width measurement using your counter. This is no problem. If you go into the example finder Help>>Find Examples... The browse to the path Hardware Input and Output>>DAQmx>>Counter Measurements>>Period or Pulse Width and find the example Meas Pulse Width-Buffered Finite.vi. You can simply use this VI which will give you a measurement of the that 1ms pulse width in either seconds or ticks of the source signal. You will want to connect your "trigger" signal (1ms-3ms-1ms) to the gate of the counter you're going to use. Then if you have an external sample clock to make this measurement you'll connect it to the source of the counter, other wise do not connect anything else and use implicit timing on the DAQmx Timing.vi. If you are using an external sample clock to make this pulse width measurement you might also want to check out the VI just below the one I mentioned that also includes ...Sample Clock... in the name. 
Using this VI will give you the pulse width of both of the 1ms pulses and if you keep it as a finite acquisition you'll only need to take 2 measurements. So in this case you don't really need to think of the signal as a trigger but as the signal that you're actually measuring. If you're curious about the capabilities of the counters in your 6602 take a look at the M Series User Manual in the Counters section starting on page 107.
http://digital.ni.com/manuals.nsf/websearch/2025C99AB0614F9E8625748000577B9A
Chris W

Similar Messages

  • How to reset a counter on external signal in LabView?

    Hallo there!
    I am using LabView v 8.5 and the NI USB-6211 to acquire signals, among them are the following:
    1) angular pulses from a rotary encoder
    2) a reference pulse for the rotary encoder witch will give a pulse on a specific position of the movement for every rotation
    3) value from a pressure sensor
    What I am trying to do is to create a pressure/volume diagram based on the pressure and volume inside a cylinder of an IC engine. To do this, I will need the angle of the engines crankshaft to calculate the pistons position in the cylinder. This way I can calculate the volume and put it in a xy graph to represent the volume (x-axis) and the pressure(y-axis).
    I am using clk0 to count the pulses from the angular encoder, and this works great. However I now need the reference pulse to somehow reset the count at the precise time it goes high in order to precisely know the angular position.
    How can I do this? And how precise will this be? And will I need any kind of synchronization with my pressure measurements? If so, how?
    The relevant part of the program I am working on resembles the Count Digital Events with reset.vi 33 KB as found in this thread. However, I don't know how to get the reference pulse to reset as the stop button is. How can I do this?
    In addition: the fast pulses of the angular encoder = 0-> ~10kHz. I seem to lose information if I use the basic level trigger detection.vi when I put this signal on an analog port.
    -J

    Hi Nick,
    If you have an X Series or 2nd Generation cDAQ chassis (basically any cDAQ chassis except for the 9172 or 916x sleeves) then you can implement:
    1,2,3,4,5,6,7,8,9,10,(reset),1,2,3,4,5,6,7,8,9,10,(reset),1,2...
    You would have to configure an Edge Count Task, set the initial value to 232 - 6 (such that the 6th count causes the counter to rollover, which generates a pulse on the counter output), and enable the count reset using your external signal:
    The count reset isn't currently available for other DAQ devices, but I believe it should be available on M Series (62xx) and TIO (660x, 6624) with a future driver release (some time in 2012).
    If you don't have an X Series (or gen II cDAQ), don't despair.  On other hardware, you can get close to the previous behavior with a counter output task, with the exception that the "reset" signal would only be detected after the 2nd tick after your pulse is output.  Also, the reset signal would have to occur at the beginning to arm the counter the first time.
    Or, you can get the 3rd behavior that you asked for by doing a continuous counter output task with the external signal as the source of the timebase ticks.  For example:
    1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9
    In toggle mode (default):
    6 ticks of initial delay, 2 ticks high, 7 ticks low, 2 ticks high, 7 ticks low, ... etc.
    In pulse mode:
    6 ticks of initial delay, 9 ticks high, 9 ticks low, 9 ticks high, 9 ticks low, ... etc.
    See here for an overview of the difference of the two modes.  Basically, pulse mode will emit a short pulse when TC is reached, and toggle mode will toggle the state of the counter.  You can't have less than 2 ticks as a high time, low time, or initial delay.
    Best Regards,
    John Passiak

  • Can I trigger the read of a buffer period measuremen​t with a external signal (PFI line) with my 6602 card? How can I do it?

    I am doing a buffered period measurement with a 6602 card, Labview real time. I want to measure the period of 6 rising edges of a TTL, but I want to do it exactly when an edge comes on other external signal (of course slowler than the previous one), that is to say that I want an external start trigger. Can anybody help me? I have hardly searched at the web and I have not found an example of code of what I am looking for.
    Another question:
    After reading the buffer, how does my program know that the data has been refreshed in a continuous measurement? I attach two VIs I am trying to make work and a quite explanatory bmp of what I
    want to do.
    Thanks.
    Attachments:
    rtc_regimen.zip ‏3 KB
    Buffered_Period_pulse_generation.vi ‏283 KB
    simgle_counter_pulse_generation.vi ‏177 KB

    Hello;
    I can't think of any way to accomplish that task. Once the counters have only two input pins, and both are in use when one configures the counter to do buffered measurements, there isn't a way to trigger that operation in hardware.
    I'm not sure if I understood your second question, however, the buffered operation on a counter is hardware controlled, meaning that a pulse on its gate input triggers the transfer of the count value from the counter register to the PC memory buffer. That is therefore a continuous measurement.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • How do I create an interrupt on the PCI-DIO-96 from an external signal connected to the lines PC0 or PC3 of a port?

    Hi everybody,
    we are currently using the PCI-DIO-96 for data acquisition from an old AT-DIO-32F card. All PPIs and ports work in mode 0 (standard input/output). The manual mentions the possibility to create an interrupt from an external signal connected to the lines PC0 and PC3 of port C from a PPI. To get the interrupt I have connected my interrupt service routine to the PCI-DIO-96, enabled the master interrupt enable bit in the interrupt configuration register 2 and enabled interrupt enable bits of every PPI chip in the interrupt configuration register 1. The interrupt should be generated if a signal low-to-high transition occurs on th
    e lines PC0 or PC3 of a PPI. We've simulated the signal low-to-high transition with an external voltage source connected to the line PC0. We actually saw in the memory that the line toggled from state low to state high, but no interrupt was generated. I don't have a guess what I am doing wrong. Perhaps anybody knows the solution of this problems.
    Thanks and best regards.
    Sven Jungnickel

    You may want to try disabling your USB or IEEE-1394 host controller. It's possible that one of these devices could be on the same interrupt as you DIO-96 and causing the interrupt to not be serviced.
    Regards,
    Erin

  • Can i connect an external signal generator to the NI7344 to...

    Can i connect an external signal generator to the NI7344 to use its
    PID characteristics to precisely control the output
    I am using the flex motion board (NI7344) to control the force output
    of a linear motor. Using contouring and buffer operations i have
    successfully created a system which can output a controlled force
    which sinusoidal in form. I can achieve a reasonable output for
    waveforms of 10Hz, the use of higher frequencies is limited by the
    contouring operation ( a frequency of 10 Hz means i can only describe
    one period of a sine wave with 10 points ( 10ms between each point =
    10Hz). Can i therfore connect an external anologue wave generator to
    the NI7344 use and use its PID characteristics to output wave
    forms of
    higher frequency ??? .....could i output an anolgue wave form from an
    E-series DAQ via the RTSI cable to the NI7344 and control this ???.any
    ideas or advice would be much appreciated.

    Duncan,
    You can use a DAQ card to output an analog waveform, but it will be a software call not part of an onboard program. RTSI can be used to pass clocks and trigger signals, so if you want to route a clock signal to do the control you could.
    A. Talley

  • Synchronisation with a slower external signal

    Hello,
    I would synchronize 1 KHz continuous acquisition with an slower external clock. For example, I have a 100 or 200 Hz external clock and on each clock signal, I would read the acquisition buffer.
    On which pin of the DAQ board could I connect the external code ?
    Which function could I use on LabVIEW to synchronise the application with the external clock ?
    Thanks for your input
    Hubert Robitaille

    Hello;
    I don't know if I got your application need correctly by your description. By my understanding you want to have multiple external signals clocking each channel of the DAQ board.
    If that is the case, it's not possible, since the DAQ board accepts only one Scan clock pulse train. One thing you can do is to use the fastest clock as the external scan clock, and then skip some points on the other channels so you can collect the datapoints that match each scan clock needed.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • Generating signal from the 5412 which is in sync with the external signal

    Hi,
    I am using the 5412 AWG. An external signal comes from the test unit. I need to generate a signal to the test unit which should be in synchronous with external signal which comes from the test unit. Can anyone help in this?
    Regards,
    Rajashekar

    Hi Rajashekar,
    You could synchronize these two signals by sharing a start trigger and using the input signal from your test unit as the sample clock for the 5412.  There are some considerations when doing this that can be seen in the External Sample Clock Considerations section of the 5412 help linked below:
    External Sample Clock Sources
    If you are using LabVIEW, you can find examples in the Example Finder located at Help >> Find Examples.  The FGEN examples are located at Hardware Input and Output >> Modular Instruments >> NI-FGEN >> Arbitrary Waveform Generation.  You can choose which line to use as the sample clock.  You will also need to add in some triggering.  You can find an example of triggering at  Hardware Input and Output >> Modular Instruments >> NI-FGEN >> Synchronization >>FGEN DAQmx Synchronization.vi.  This is synchronizing to a DAQ card, but you can synchronize to your external signal just the same way, i.e., sharing a start trigger and a reference clock.
    Regards,
    Jim Schwartz

  • Synchronise digital pattern output(6533) with a external signal

    I use a PCI-DIO32HS and i want to synchronise an output pattern with an external signal(TTL;T=1.7ms).
    ie :every time external signal become high(every 1.7ms)
    my dio32HS output a define pattern on a line.
    How can i do this?Thanks

    Thanks for your answer but see attached file to see what i want to do.
    I want to control delay between trigger(input signal T=1.7ms) and ouput and control the width of the ouput pulse
    Best regards
    Attachments:
    signal.txt ‏1 KB

  • Gated measurements

    Hello All,
    I have PXI 6602, and I need to perform gated event counting as well as pulse width measurements.
    As of now I am trying out the example, by running the generate pulse train program(NI supplied), pulse train is generated on CTR 0 pin and this I am connecting to CTR 1 source pin and performing simple event counting and I am achieving what I need,. BUT
    Q1. When I connect CTR 0 output to CTR 1 Gate Pin how do I perform event count and pulse width measurement, and according to the manual (link attached)
    http://g-line.chess.cornell.edu/G-lineStatus/G-lineManuals/PCI-Boards/NI-6602-Manual.pdf, we need to connect the input signal to GATE terminal to measure the pulse width.
    Q2. Whenever I perform counter operation I can see only CTR 0.....CTR 7 in the list, how can I program induvidual pins of each CTR i.e. CTR 0 SRC, CTR 0 GATE.
    Thanks in adv

    Faheem,
    Can you store measurements how you want when you are just using the device, and not necessarily using LabVIEW at all?  If so, how?  That will be the first step to find out if you can do it while controlling the device with a driver.  If you are not sure if you actually are given control over that, then you might get more ideas from the manufacturer.  If you find out that it is something that you can programmatically control and what commands do it, then that should give direction for how to do it in LabVIEW.
    Hope this helps,
    Jen W
    Applications Engineer
    National Instruments
    ni.com/support

  • External  signal booster for Airport extreme card

    I'm trying to find a solution to boosting the signal receiving capabilities of my Apple 15" Powerbook G4 with an Airport Extreme Card.
    I live in an area that receives several WiFi non-encrypted signals, which my Airport can detect (weakly), but I need to boost the signal that the airport receives.
    Let me make this clear, I am not attached, or connected to ANY router, or DSL system, I am only receiving open WiFi signals.
    I need to find a signal booster, or directional antenna. (I’d rather not crack open the Power Book to attach the hardware).
    I’ve looked at several 3rd party options i.e. Linksys, Netgear, Hawkings, D-link, most do not support Mac ( so often)
    I currently use a Hawking Tech directional PCI wireless card 802.11 B/G mixed mode. It works well enough with Mac, but it is often buggy, and yes I do turn of Airport when I use it. But I’d rather use the built in Airport with an external booster. I’m open to suggestions, Mac or 3rd Party, though the ‘Pringles can’ doesn’t work. thanks
    Powerbook G4 Mac OS X (10.3.9)
    Powerbook G4   Mac OS X (10.3.9)  

    Hi mkupman:
    Welcome to Apple Discussions!
    Here may be a few options for you! http://www.quickertek.com/

  • 1520 is supposed to have differential inst. amp. Then why we need to refrence floating voltage signals to measure correctly ?

    Hii,
    1520 Revision B can take floating voltage sources and give you correct readings. While in Revision C, referencing the floating source seems to be necessary to get good readings. If not referenced, the readings start drifting.
    If 1520 has differential inst. amp, why in first place we need to reference the floating signal ? What changes have been made in revision C that makes it different from revision B in terms of measurement of floating voltage source ?
    Need a quick answer .. .
    Regards ..
    Rajendu Choubisa

    Rajendu,
    I am sorry I didn't get back to your email yesterday. The 1520 does not support measuring high common mode signals, and if the customer wants to measure high common mode signals then he needs an isolated SCXI module, which the SCXI-1520 is not. The 1520 can measure a maximum working voltage (common mode signal + the differential signal) of 10V.
    Floating voltage sources are susceptible to inducing a common mode voltages that could exceed the maximum working voltage of 10V on this module. Bias currents and noise can both play a large part in producing a common mode signal, and even if certain amplifiers come from the same manufacturer, different batches may have different bias current levels. My guess is that this is what the customer is seeing.
    There isn't much we can do for this customer since it is well documented that floating signals need to be referenced to ground if you are going to use them with a non-isolated board.
    -Logan

  • Read analog trigger signal gated by digital pause trigger

    Hi!
    I want to use and analog trigger together with digital pause trigger. At the same time i want to see on the scope the analog trigger signal which was gated by gate signal. Is it possible? Can i somehow wire the gated trigger to one of the outputs of the board?
    Thanks in advance.
     

     Hi Sergei_phys,
    Thank you for the forum post!
    I have a few questions about your post:
    What hardware are you using? Is it NI or 3rd party? You mention using a scope, is that a NI piece of hardware/module?
    In theory you can have a analog trigger to start the acquisition and a digital trigger to pause , but it depends of the hardware.
    Thanks,
    DanC12
     

  • Satellite L650-10H PSK1JE - no external signal on TV using HDMI

    I connected my Toshiba L650-10H PSK1JE with TV KDL-26BX320 using HDMI cable. Switched Win+P (Fn+F5) to expand the screen. TV has no signal (black screen) but computer recognize TV. All drivers are updated.
    Settings screenshot:
    [https://dl.dropboxusercontent.com/u/29198343/Screenshot%202014-09-02%2015.53.56.png]

    If it doesnt work and if you are sure you have used right HDMI port, then you should check if this issue appear using another monitor.
    Try also do reinstall or update the graphic card driver Could be necessary in this case
    I can recommend you just such few common ideas because there is no typical solution for such HDMI issues.
    You should connect both devices with an HDMI cable but both devices should be powered OFF.
    Then power up the TV, choose the right HDMI channel and then power up the notebook.
    After the unit has been booted up, use the mentioned Fn F5 to enable the output on the TV

  • 6602 Synchronize ALL 8 outputs without external signal?

    Howdee all..
    I have an application that's actually pretty simple.  I need to generate pulse trains on all 8 counters of a 6602, and they need to be triggered together via a software trigger (Frequency will be the same, but their delay/Phase and DC may be different channel to channel).
    What's the best way to do this?
    Can I set them all up under the same task and then call "Start"?
    What about using the output of one counter to trigger the others?  That output MUST be available as an output signal though.  But I can set things up so that it's initial swing is used to start the task.
    Does it make sense to physically connect PFI0 to PFI1 and then trigger them off PFI1 using PFI0 as the signal?
    Just a reminder, I am using all 8 counters as output.

    Hi Marcus,
    Right now the code I wrote looks like this (all counters are on the same 6602 card..)...
    This appears to work, but I can't be sure that the counters all started together without a scope.  So the $64K question is, since they are all on the same card, does the code above start all the pulse trains instantaneously, or will I have to go back and set them up to use a digital trigger (and do that thing with the PFI lines)?
    As for the other example...
    https://decibel.ni.com/content/docs/DOC-11755

  • IMac G5 external FW drives - measuring max connection support

    I'm looking for information about the number of external FW HDs that can be connected to the 2 external FW ports on an iMac G5 (2GHzSP). Practical, not theoretical.
    I get the basics, and understand the 8w capacity of the iMac G5 to support unpowered external FW 400 devices.
    I'm looking for three things -
    1) a block diagram of the iMac G5 design, esp. as it has to do with the relationship between the cpu, i/o bus, FW controller, FW PHY & FW port connectors
    2) a methodical analysis of the capacity of the iMac G5 to support x number of external FW400 devices that are daisychained and have their own power supplies
    3) an analysis on the pros & cons of daisychaining off 1 vs. both of the 2 FW connectors on the iMac G5
    Thanks for any information you can point me to.

    Ron, you're awesome! I knew all I had to do was wait for daylight to hit Australia and I'd have my answer
    Well, as you usual I tried a number of things different instead of one thing at a time and it works, so I don't know what did it. But I changed one of the firewire cables, and I booted them up one at a time (about a full minute apart) instead of all at once.
    Looking at the System Profiler I'm not sure who makes the chipset, and the cases are pretty non-descript. But in the profiler the manufacturer for all three happens to read: Prolific PL3507 Combo Device, or just PL3507 Combo Device.
    Two of the three are: 1394 ATAPI,Rev 1.00
    and the third is: 1394-ATAPI rev1.10
    All three drives also list this:
    Unit Software Version: 0x10483
    Unit Spec ID: 0x609E
    Firmware Revision: 0x12804
    Well, its working now! If you post this same reply at
    http://discussions.apple.com/thread.jspa?threadID=490329
    I'll mark you as having solved it.
    Thanks!

Maybe you are looking for