Measuring delay-time when acquiring signal?

hi everyone,
I'm generating and acquiring signals at the same time using 1 VI. And I need to display the delay-time in front panel. As you can see in the picture below, I have like 2us delay (for green) and about 25us (for red). 
I'm using PXI 6733 to generate analog signal, and using PXI 5105 to acquire.
Is there any way to display this delay in frontpanel??
Regards,
Yan.

hi Gerd, thanks for reply.
can you please be more specific about using numeric indicators? how should I put it into my program? I'm using a VI based on example NI Scope EX Stream to Disk.vi as reference. I would like to display it in front panel.
regards,
Yan.
Attachments:
niScope EX Stream to Disk1.vi ‏43 KB

Similar Messages

  • Unable to measure pulse time, using Counter pulse time 1samp.vi

    Hi
    I am using pci6624 board to measure pulse time . I have selected counter 0 to measure  pulse time & connect the signal to gate0+ & gate0-.
    When i used Counter pulse time 1samp.vi to read the pulse time , i am not able to read the value and i am getting following error msg . If i used Counter DBL 1samp.vi  i am getting out put.
    Please help me
    Attachments:
    pulse_time_measurment.vi ‏11 KB
    Counter_errors.JPG ‏44 KB

    Hi,
    You can try changing the mode to counter -> single sample -> DBL in Daqmx read function
    You can also try this example 'Meas Pulse Width-Buffered-Cont.vi' or related examples from NI Example Finder.
    Cheers,
    Sahil Gupta
    NI India

  • How to measure the time of evolution of a signal in a graph and to compare this time measured with a known value?

    For my application, I am obliged to measure the time of evolution of a signal acquired (from T1 to t2) by an analogical entry of a module NI 9203, and to compare this value with a value known in order to judge if this time of evolution is correct or not.
    PLEASE I prefer an example for better understanding.

    Greetings Jacob,
    I am not sure what you mean with 'time of evolution' but normally you acquire at a certain acquisition rate. How much time that has passed, you can calculate by checking how much points are between your two points of interest.
    If you are acquiring at 5Hz, the time between every point is 200ms. If there are let's say 10points between your two points of interest, 2s have passed.
    Regards,
    Wouter
    National Instruments

  • Measuring puls width and time of 5 signals

    Hello,
    I have 5 signal lines that generate different pulses in time. I need to measure the pulse width on every line but also the exact time when the pulse occurs on each line.
    I have a PCI-6602 that I can use for this.
    Measuring the pulse width is not that difficult. I wanted to use a buffered pulse width measurement using 5 of the counters of my PCI-6602.
    But I do not know how I can also get the exact time for these 5 channels ???
    Any ideas how I can accomplish this with my PCI-6602?
    Note: I do not need to use the maximum source frequency for my counters. Measuring the pulses with a timebase of 1Mhz is enough. (maybe even 100 kHz but I need to do some more experiments to be sure).
    Thanks in advance for all your help!

    Only have time to outline some suggestions:
    1. Choose 1 of your counters to generate your timebase to make it easy to experiment with timebases like 1 MHz that aren't directly available on the board.  The other measurement counters should be configured to use it as their Timebase.Source signal (can be found in the DAQmx Timing property node.)
    2. I assume you want the 5 measurements to start at the same time=0 point, right?  You should configure all 5 to use the same signal as a digital "Arm Start" trigger.  In LabVIEW, this can be found in the drop-down menu for the DAQmx Trigger property node.   I would typically use PFI0 as the trigger signal because this maps to the same pin that I can control via software as digital port0/line0.  Thus, no screwdriver work for wiring a signal.
    3. If you're buffering 5 measurements, you'll need to configure at least 2 of the tasks to operate in interrupt mode because the board only supports 3 DMA channels.  This is yet another DAQmx property node setting.
    4. There, now that the prelims are out of the way, here's how to get both pulse widths and pulse start times.  It's gonna take a bit of work in software though.
       Configure the counters for semi-period measurement.  This will cause the tasks to buffer up arrays with alternating values representing high times and low times of the incoming signals.  You should be careful and always read even #'s of samples from the buffer, never odd #'s.  You'll also need to configure so that you can predict which comes first -- high or low time.
      The high times will be your pulse widths, and the cumulative historical sum of *all* the semi-periods up until that high time will be your timestamp.
    5.  Further description for handling 1 such task.  Create a while loop for reading values from the task.  Initialize a shift register to a count of 0 to hold your historical cumulative time.  (Note: depending on your duration and resolution, you may need to make this a double rather than an integer.)   Inside the loop, read an even # of samples from the task, say, 1000.   Pass the 1D array into the Reshape Array function to make it 500 rows x 2 columns.   Pass that 2D array into a For loop using auto-indexing.  Also pass in the value from your outer loop's left-side shift register into an inner loop shift register.  The inner loop will index out 1 row at a time.  The pulse width will be either index 0 or index 1, depending on your config settings.  Index it out and pass it out to the inner loop boundary with auto-indexing.  If your pulse width is index 0, the left-side shift register represents the timestamp for the beginning of that pulse.  Pass it out to the inner loop with auto-indexing as well.  (If pulse width is index 1, you may first want to add the duration of index 0 to the cumulative time.)  Finally, add the sum of indices 0 and 1 to the left-side shift register and pass it out to the right-side shift register.  Pass this shift register out to the outer loop shift register.  Pass the 2 arrays of data (pulse widths and timestamps) out to your main app via queue or something.
    That's all the time I've got right now.  I realize the info is packed kinda dense, but if you do some further searching on the terms I've brought up, you can hopefully figure out a good share of it.  Once you've got it pretty close, post back and I can try to suggest some tweaks.
    -Kevin P. 

  • I m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me. thanks ravi

    i m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me.
    thanks
    ravi
    <Email removed by Host>                                                                                                                                                                                                                                       

    sounds more like Bluetooth rather than moue, but w/o knowing w/o posting mac model type/year we... will... not... know... what you have
    All computers are personal computers, a PC though is also "non-Apple" in common usage.
    Mac also is platform and OS.
    Very confused reading what you are trying to tell us.

  • Why is the amplitude smaller when using the Extract Single Tone VI to measure the amplitude of a signal?

    Whenever I measure the amplitude of a signal using the Extract Single Tone VI, the amplitude is smaller than if I measured the signal by hand by positioning the top and bottom cursors to the highest and lowest peaks of the captured waveform.  Should I not use the Extract Single Tone VI to measure amplitude?  I'm using Labview 6i.

    I'm not exactly sure but I think the amplitude from the Extract Single Tone vi is in peak volts (Vp).  When you use the cursors on a scope set to the top and bottom peaks, you are measuring volts peak to peak (Vp-p).  If the Extract vi amplitude is one half of your scope reading, then this is true.  Just double your Extract vi amplitude to get the peak to peak voltage.  It also depends on the signal.  If your signal is a square wave from 0 to 5 volts (TTL), this is usually measured in peak voltage.  A sinewave going positive and negative (from -5 to +5) is usually measured in peak to peak.
    - tbob
    Inventor of the WORM Global

  • If I have an airport extreme and a time capsule is it possible for seamless switching between the 2 when a signal is weak or drops Main reason is as I move from my first floor to my attic office and would like to place one (airport extreme)downstairs and

    If I have an airport extreme and a time capsule is it possible for seamless switching between the 2 when a signal is weak or drops
    Main reason is as I move from my first floor to my attic office and would like to place one (airport extreme)downstairs and time capsule upstairs to get complete coverage

    In theory, yes. If you configure the two base station into either an extended or roaming network configuration, you should be able to walk a laptop between routers and the laptop should attempt to connect/reconnect to the base station providing the stronger signal ... but, in reality, this is not always 100% true.

  • Why is it that when I saved the waveform of my acquired signal into a wav file, the output waveform of my saved file turn out to be different from my input signal?

    Hi all,
    I am currently doing a heart sound analyzer project. I acquired signal using NI USB 6008 continuosly. My program is able to saved the acquired signal into a wave file. But when I browse open the saved file, the output waveform did not look the same as the acquired input signal and also the sound of the heartbeat captured cannot be heard from the loud speaker though I have saved the file as a wav file. I am not sure if the method i use to save the acquired data as a wav file is correct.  I have attach the print screen of the differences of the output I have notice and the program I have created. I would be glad if anyone here is able to troubleshoot my program.
    Thanks. 
    Attachments:
    heart sound analyzer.zip ‏257 KB

    Hi Brett Burger,
    Thanks for your reply. For your information, I have set the sampling rate as 10000 as for the sound format, I have set the bits per sample as 16 bit, the rate as 11025 and the sound quality as mono. I tried using your method by changing the sampling rate as 8K but still my program encounter the same problem.
    I wish to also create a button that is able to generate a preformatted report that contains VI documentation, data the VI returns, and report properties, such as the author, company, and number of pages only when I click on the button.  I have created this in my program, but I am not sure why is it not working. Can you help troubleshoot my program. Or do you have any samples to provide me. Hope to hear from you soon.
    Many thanks.
    Regards,
    min
    Attachments:
    Heart Sounds1.vi ‏971 KB

  • LabVIEW/SignalExpress: How can I automate measuring the time between two pulses?

    Hi everyone, bit of a newbie here so please bear with me.  
    I'm a student at a university conducting a muon decay experiment with an oscilloscope connected to some photomultipliers.  To summarize, if a muon enters the detector it will create a very small width pulse (a few ns).  Within a period of 10µs it may decay, creating a second pulse.  The oscilloscope triggers on the main pulse 5-15 times per second, and a decay event happens roughly 1-2 times per minute.  I am trying to collect 10 hours of data (roughly 1500-2000 decay events) and measure the time it takes for each decay.
    I've been able to set recording conditions in SignalExpress that starts recording on the first pulse and stops recording on the last.  The Tektronix TDS 1012 oscilloscope however feeds 2500 points of data from this snapshot into a text file (for use in excel or other software).  Even if I perfectly collected the data, I would have 100,000+ data points and it would be too much to handle.  I don't know how (or if it's possible) to reduce the sample size.
    To conclude, using Labview or SignalExpress, I would like to be able to have the software
    1.  Differentiate between the single pulse detections and double pulse decay events
    2.  Record only when two pulses appear on the oscilloscope
    3.  Measure the time between these two pulses and ONLY that to minimize the amount of data recorded.
    Any help would be GREATLY appreciated, thanks!

    Hi wdavis8,
    I am not that familiar with Tektronix, but there should be a place in the dialog that you go through when you create the action step to acquire date to specify a sampling rate. That would allow you to reduce the number of data points you are seeing, but may reduce the quality of the data.
    If it’s just a matter of that much data being hard to dig through when you have that many points, you could do some analysis on the data after the fact, and then create a new file with only the data you want to look at. For example, you could identify the peaks in the data, and based on the distance between them or the difference in magnitude, selectively write data to a new file.  
    Here is some information about peak detection in LabVIEW:
    http://www.ni.com/white-paper/3770/en/
    You could also do some downsampling on the data to get fewer data points:
    https://decibel.ni.com/content/docs/DOC-23952
    https://decibel.ni.com/content/docs/DOC-28976
    Those are just a few quick ideas. 
    Kelsey J
    Applications Engineer

  • How to measure the time a pulse is high for?

    I am using Pulse measure.vi to measure the output of a comparator. My comparator output feeds to an LED. The duty cycle is 50% so the LED just flashes on and off. I want to measure the time the output is high ('ON time') and I have been getting this by just multiplying the pulse width measure by the no. of pulses but I want to modify it to measure the 'ON time' of random signals with different duty cycles...
    The aim is that I am taking in a signal and need the LED to turn on when the signal 'ON time' reaches a certain specified time.
    But before I continue with the LED I am wondering how to add up the time the signal is high for?

    Hi PinkLady4218,
    You should be able to use one of the shipping examples to do what you need, please open LabVIEW and go to Help >> Find Examples.
    From the Example Finder please go to Hardware Input and Output >> DAQmx >> Counter Measurements >> Period or Pulse Width >> Meas Buffered Semi-Period-Continuous.vi
    You will then need to deinterleave the output array as it will show high time then low time then high time then ...
    You will need to confirm the order these values appear and then you can use a function from the arrays palette and use the function "Decimate 1D Array"
    Regards
    JamesC
    NIUK and Ireland
    It only takes a second to rate an answer

  • I need to measure the frequency of a signal on Pin 39 (PFI 15) of a PXIe-6361 module.

    I need to measure the frequency of a signal on pin 39 (PFI 15) of a PXIe-6361 module.  All of the digital I/O pins are already assigned and in use.  The signal frequency range is 50KHz to 500KHz.  I have tried all of the sample programs for DAQmx Counter/Timer frequency measurement.  If I modify them to use my hardware, I get run-time errors with conflicts with resources already assigned.

    Hi Julia,
    Thanks for the response.  As I stated before, I have tried all of the examples available that apply.  There are only three and one of those uses two counters.  The two I have tried are:
      Examples/Hardware Input and Output/Counter Measurements/Digital Frequency/
          DigFreq-Buff-Cont-ExtClk-ArmStart.prj     and
          DigFreq-LowFreq1Ctr.prj
    These examples default to using what appears to be traditional DAQ hardware (Dev1/ctr0 and /Dev1/PFI0).  I changed the counter to mine (/PXI1Slot3/ctr3) and directed my signal source (PFI15 on pin 39) to the counter.  No matter what I tried would not run.  They would always compile but gave run-time errors ranging from resources already in use to “external trigger required”.  I have no external trigger source and, if I did, there is no indication of how to assign it to the counter.  NI has a very good X Series Users Manual that tells all of the great things you can do with the hardware, but there is NO CLUE how to do any of those things!!!!  I know that some NI DAQmx functions use hardware resources that they never tell you about.  I discovered that when trying to produce a single output pulse from a timer using counter #0.  (Which, by the way, no one at NI could tell me how to do it.)
    Measuring frequency should be very simple.  The unknown signal is routed through a precise gate to a counter, and then the counter is read.  NI DAQmx uses the opposite approach of using my signal as the gate and counting their internal source.  However, the examples would not let me use the internal reference sources.
    To answer your other questions, I am not performing any other measurements at the same time and the counter is not being used for anything else, period.
    Any help would be greatly appreciated.  Thanks again.
    Wayne K.

  • Acquire Signal with NI-SCOPE 5102

    Hello. i'm a beginner in LabView. I have to acquire signal from a NI-Scope 5102 and I have absolutely no idea how to do that in LabView, I instaled the drivers but in my computer I don't have the acquisition boards. I tried to see the examples and I can´t find nothing that can possibly help me. I need a step-by-step explanation of what to do. 

    FilipeV wrote:
    All right I will tell you what I have to do. In college we built a printed circuit board that produces a triangular and square signal. In the second part of the work we have to build a virtual instrument capable of selecting only of both signal or both of them at the same time, display in a graph the selected signal and saving the values in a file. The signals generated in the circuit will be read with a NI-Scope 5102. If you wanted to do this what would you do?
    I will see the examples and try to understand what I should do.
    I only had one lesson of LabView and we didn't do anything like this. We only worked with some waves and learned to control the frequency and other parameters, and to view the waves on a graph. That's why I'm so confused with this.
    I'd cheat.  You haven't been properly trained with the tool.
    Use Signal Express Set up measurement step and data logging.  Configure the OI with a boxes for chanel selection. test it.  Generate LabVIEW code
    The context aware help you'll have in SE will probably teach you a bit about scopes too.
    (I can't believe I just said that but if the profs won't teach the tools that only leaves bad practices to get'r'done) Don't think that your programming that way though
    Jeff

  • How can i acquire signal magnitude per every 0.2hz using pxi 4472

    helloi am using PXI 4472 card for FFT
    analysis using LabView2009
    i need to acquire the frequency Vs
    magnitude for my application
    Can anybody help me out to get
    voltage magnitude for every (df)0.2Hz up to 500Hz bandwidth.
    i could acquire the Voltage
    magnitude for every (df)0.5hz,
    with configuration continuous mode of 1000 sample
    rate and 1000 samples per channel and spectrum measurement Express VI with
    2000msec
    delay time (‘df’=0.5Hz=1/2000mSec), further less ‘df’ program is terminating
    intermittently
    Please give your suggestion

    Here is a good rule of thumb:
    Frequency Span = 0hz to sample rate divided by 2.56
    lines of resolution =  record block size divided by 2.56
    for example a 1khz sample rate and1k darta points is a 0 to 400hz spectrum (401 to 512 is calculated by not fully trusted in machinery world) and 400 bins or one bin per hz, df = 1. 
    so for this example if you need df to be 0.2Hz, you need five times as much data or 5000 data points. 
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • Digitaizer Card Acquisiton Delay time

    Dear Sir/Madam,
    I've got some problem about the 5911 Digitaizer Card Acquisiton Delay time .
    How to measure the time from the Trigger siganl to the first point of Acquire ?? Do LabView Support this function??
    Beside what is the difference between the "Acquisiton Start Time " and "relativeInitalX" ??? Plz
    Plz help me ?? Thx
    With Regards
    David
    Attachments:
    Acquire.gif ‏40 KB

    Hi David,
    Both the Acquisition Start Time and relativeInitialX provide the same information: the time in seconds from the trigger to the first sample in the acquired waveform.
    The only difference is that the relativeInitialX is an output from several read and fetch VIs (ie, niScope Read Cluster) whereas the Acquisition Start Time is a property in a Property Node which can either be read from or written to. Thus you can set the Acquisition Start Time through the property node.
    Hope that helps, have a great day!
    Brian Spears
    Applications Engineer

  • Measuring duty cyclse of the signals at PFI through counter

    I have NI PCI-6052E-DAQ card. I have four square waves at PFI lines. I want to calculate the high time of each signal picking the signals one by one from PFI lines using triggering concept for counter to start with rising edge and stop with falling edge and then . This concept is already used in measring-9-frequencies.vi
    Please Email me with plain explaination for your answer.
    My Email: [email protected]

    Hello;
    As your board only has two counters, you will be able to read only two sqaure waves at one time. You have two options at this point:
    1) To acquire a PCI-6602 which has 8 counters
    2) Do the measurement of the first two and then take the measurements of the last two square waves.
    To do that, you can create a Labview sequence in which the first sequence does the first two square waves and the second sequence does the last two waves.
    You can find a Labview example at Search Examples->I/O Interfaces->Data Acquisition->Counters->Pulse-Width Measurement->Measure Pulse (DAQ STC).vi, which does the width measurement. You can cheange that example to work with two pfi lines instead of only one, and create a sequence of events to do the same measurement on the last
    two waves.
    Hope this helps.
    Filipe

Maybe you are looking for

  • Can we create internal table from txt file seperated by space?

    Hi all, I have text file abc.txt : BP1 SAP1 BP123 SAP2 Now I can read this file GUI_UPLOAD FM But I want to return this as table with two columns and two rows. First row with two columns: BP1 SAP1 Scond row with two column: BP2 SAP2 I tried using TYP

  • Balance Sheet Planning in the Banking industry

    I am trying to understand the peculiarities of implementing Planning in the banking industry, especially for balance sheet planning. I am assuming a typical bank which serves individuals and companies with various products. There are a few areas that

  • How to authenticate Username and password in MVC using Azure Active Directory

    Need a sample application where in need to authenticate user entered logindetails using Azure Active directory.

  • Is it possible to accessOracle Lite with java on a Palm

    I have been unable to figure out how to do any java development against OracleLite on a Palm. I am using IMB's VAME/J9 java development environment. It appears that the oracle.lite.poljdbc.POLJDBCDriver class expects to load a library called oljdbc.

  • NoteTag Problem

    NoteTag has on the labs,I have downloaded the zip sourse.But when i installed it step by step according to the "NoteTag Installation Guide". in the step four "4. Set Up Your Flex Builder Projects". The dialog will be popup "Cration Promblem" when i e