NI-6014 time measuremen​t

Hello,
I'm using NI-6014 card to measure and process three analog inputs and that is working fine.
But
now i have two additional devices giving me two pulses. Time between
this two pulses is cca 0.0001 sec. and i need to measure this time with
accuracy about 0.000001 to satisfy my needs. i use first digital input
as trigger start on PFI0. i knew that i need to use counter....... but
some how i get stacked. i tried with some examples from labVIEW but
results are stochastic.
i will graceful for any help or idea
regards
Mario

Hi Mario,
I took a second look at that developer zone article, and I can see that it doesn't measure the time between rising edges.  I also searched for an example program that does count the time between rising edges, and I believe I found one. Please refer to the linked knowledgebase article which contains the example code.  The knowledgebase article specifies the NI counter/timer boards, but it will work with your 6014 multifunction DAQ board as well.  All you should need to do is specify the following parameters:
1. Physical Counter
2. Start Trigger Terminal
3. Stop Trigger Terminal
4. Timebase Terminal
To convert the results to time, you will need to divide the number of ticks between start and stop triggers by the frequency of the timebase. I hope this works better for you
than the last one.
Regards,
Wallace F.
National Instruments
Applications Engineer

Similar Messages

  • How to use single Timer to generate PWM PULSE, Pulse ON time measuremen​t, Event time measuremen​t1,Event time measuremen​t2

    Hi,
    I am planning to use a single Timer to generate PWM PULSE, Pulse ON time  measurement, Event time measurement1,Event time measurement2 some one please suggest me how can I achive this.
    Thanks in advance..
    Michael

    Hi Michael,
    It would be really good to understand your application a little more so that any specific needs that you have may be met. In the meantime, I would also suggest searching on ni.com for "pwm" or other keywords that relate to your application. You will see a faceted navigation on the left side that allows you to narrow your search for example code, tutorials, etc.
    Please post back with more information and the community will be able to help out with suggestions.
    ni.com search for "pwm"
    Mark E.
    Precision DC Product Support Engineer
    National Instruments
    Digital Multimeters (DMMs) and LCR Meters
    Programmable Power Supplies and Source Measure Units

  • How to take time measuremen​t for waveform.

    Hi, 
    I have simulated square wave signal from which I have to measure time period continuously..automatic time measurement for a single cycle....
    For example, I have square wave and I need to measure time period and display it without assigning any external cursors...I need automatic measurement of it...
    '' A professional is someone who can do his best work when he doesn't feel like it''...........
    Solved!
    Go to Solution.

    This is my VI...
    I need to measure and display time period for one individual cycle.
    '' A professional is someone who can do his best work when he doesn't feel like it''...........
    Attachments:
    Untitled 2.vi ‏55 KB

  • Settling Time Measuremen​ts of LO

    Dear all,
    We are going to measure the "Frequency Settling Time" of the local oscillator.
    The following are test procedure we followed to configure LO: 
    Initially LO is configured to some X MHz frequency
    Then we are configuring the LO frequency with X + 200KHz or X - 200KHz
    Here we are going to measure the time taken from the LO will get unlocked to the existing output frequency (X MHz) and will be locked to the frequency of 200 KHz +or - the existing frequency.
    The requirement for the settling time is <500usec
    Please adivice which instrument we can use to measure the settling time?

    I dont see the attachment. Trying again.
    Sastry Vadlamani
    RF and Communications Software R&D
    National Instruments
    Attachments:
    PLL Tuning Time.llb ‏234 KB

  • Settling Time Measuremen​ts of a PLL Chip

    Hi NI RFSA Guys,
    I was searching for testing PLLs using NI RFSA.
    Fortunately,I came across this link from the Developer Zone,
    http://zone.ni.com/devzone/conceptd.nsf/webmain/9B​EA73B7DACD6C2086256CE5006CC900?opendocument
    I am interested in using this "5600 PLL Tuning Time.vi"
    for testing PLLs using RFSA.
    However, the link to download this VI is not given
    Can anyone post it on the Forum...
    Any similar VI would also suffice
    Thanks,
    Dharmendra

    I dont see the attachment. Trying again.
    Sastry Vadlamani
    RF and Communications Software R&D
    National Instruments
    Attachments:
    PLL Tuning Time.llb ‏234 KB

  • Time measuremen​t when voltage is below a certain amount

    In a project for class I built a pendulum that swings through an infrared emitter to a detector. when somethings cuts the beam from the emitter, the voltage drops to virtually zero.  I need to be able to measure how long the voltage was at zero for my project, but can't for the life of me figure out how to do it.  I really would appreciate any help!

    i'm using a daq device (i'd have to be in class to tell the exact version).  I'm reading the voltage on a channel I made, and the voltage bounces from 0V to 1.6V when the beam is cut. 
    one idea i came up with was to setup a comparison where a caution/stop light would light up whenever the voltage was below 1V, and then have something measure how long that light was on, but I could find a vi that could do that.  I'll definitely give that measure pulse width thing a try, cuz I need to hurry up and finish this project already.

  • System time in Write TO Measuremen​t File

    Hi, everyone. I'm Sorin.
    I use a DAQ 6210 in Labview 8.2 to aquire some analog data at 1 sec,and i have 2 questions, please:
    1. I need to record the data into a file .lvm, so i use "Write TO Measurement File" module with one column of time (X axe). But this time is relative, and i want to be system time instead. Is there any way to resolv that ?
    2. Also, in my Waveform Chart i put absolute time because i couldn't find system time, though i need it. How can i change that ? Although, once i played with charts, and i succeeded to see system time, but now i can't. And i'm sure it wasn't complicate. 

    Hi Sir
    I had similar problem. I tried to write to a measurement file with absolute time, instead of relative time here I got.
    Also, I want the format to be sth like this 13/09/25 18:16:01.
    Could you help me?
    Thanks
    LabVIEW Measurement
    Writer_Version 2
    Reader_Version 2
    Separator Tab
    Decimal_Separator .
    Multi_Headings No
    X_Columns Multi
    Time_Pref Absolute
    Operator FriedmanLab
    Date 2013/09/25
    Time 14:09:10.2151017189025878906
    ***End_of_Header***
    Channels 1
    Samples 1
    Date 2013/09/25
    Time 14:09:10.2151017189025878906
    X_Dimension Time
    X0 0.0000000000000000E+0
    Delta_X 1.000000
    ***End_of_Header***
    X_Value Untitled Comment
    0.000000 21.787387 Enter a description
    10.000572 21.847446 Enter a description
    20.001144 21.841562 Enter a description
    30.000716 21.908628 Enter a description
    40.001288 21.902826 Enter a description
    50.004860 21.963112 Enter a description
    60.035434 21.967730 Enter a description
    70.031005 21.968933 Enter a description
    80.011576 22.039718 Enter a description
    90.000148 22.065121 Enter a description
    wei shen
    Attachments:
    Untitled.jpg ‏74 KB

  • Slow counting time (PCI-6601)​-Single period measuremen​t

    Dear friends
    I wish to count TTL pulses from my device(Avalanche Photo Doide) by using PCI-6601 for a certain time. Thus, I tried to use "Measure Period.vi" with "for loop" configuration.
    And the gate frequency from another counter is 100 Hz ( 10 ms time binning). Unfortunately, the acquition time is so slow considering binning time (10 ms).
     We tried to modify this vi and found that the acquisition speed cound be fast when we remove "while loop" with "0" counting. As I know, the "while loop" function is to check  whether arming acutally occurs, which is quite questioning why this kind of function exist even though the control code already do it. 
     Can you guys help me ? ^_^

    Duplicate
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Measuremen​t Studio 6 - PCI 6014

    I'm using Measurement Studio 6 to make a sinusoidal wave with a PCI 6014. I've an error when i use the examples containing the CNiFgen class. I would like to know if it's possible to use Measurement studio with this card ?
    It seems there is a problem with the device name (resource name). The example tells to use "DAQ::1"
    Thanks. (Sorry for my english)

    Hello,
    The NI-FGEN drivers do not support the E series boards such as the PCI-6014. To generate a waveform with this board, you have to use the NI-DAQ drivers.
    To use the NI-DAQ drivers with Visual C++ 6.0, you will directly use the Traditional NI-DAQ library. You will find examples in the "...\National Instruments\NI-DAQ\Examples\VisualC" folder.
    If you develop with Visual Basic 6.0, you should use the Measurement Studio CWDAQ classe. You will find examples in the "...\National Instruments\MeasurementStudio\VB\Samples\DAQ" folder.
    Regards,

  • Temperatur​e measuremen​t on real time from NI 9217

    Hi,
    I want to measure the temperature of a RTD, Pt100.
    I am trying to plot temperature (axis Y) against real time (axis X). At the moment i have this "PT100_monitoring_test" attached but I would like to insert an external clock or something like that to measure the temperatura on real time.
    Is this possible?
    Thanks!
    Attachments:
    PT100_monitoring_test.vi ‏46 KB

    Well,
    using cDAQ you will not get more "real-time" than what you have.
    You can increase the sampling rate, reduce the number of samples you acquire and optimize the postprocessing so that new samples appear on the screen faster, but at this moment you are already getting real-time data.
    What do you want to achieve?
    Mateusz Stokłosa
    Applications Engineer
    National Instruments

  • Different measuremen​t times with daqmx

    Hello I am using the DAQmx software with the NI WLS/ENET-9000. I am currently using Labview to monitro voltage levels and was wondering if there was some way to be able to run tests on specific channels at different times without stopping the entire program. Is there any way to time delay or insert a test while the program is running? Do I have to run multiple VI's? or is this a limitation of the WLS?
    Thanks!
    Alvin

    Hi Alvin,
    I don't believe there is any way to make a DAQ Assistant run two or more different tasks.  Each DAQ Assistant initializes, starts, and finishes only one Task, and that Task can include multiple channels.  If you'd like to handle other i/o channels using other Tasks, that will require you to use more than one DAQ Assistant.
    The DAQ Assistant placed in a While Loop, for instance, will do this entire process every single time the loop executes:
    1. Create the Task in memory
    2. Configure the Task as you've set it up
    3. Commit the Task to hardware
    4. Starts the Task
    5. Reads from or writes to the Task            <----------------
    6. Finishes the Task by stopping it or clearing it
    7. Closes out the Task reference, (which will be created again in step 1 when the DAQ Assistant is called in the loop the next time)
    Since this process only applies to one Task, and it cannot be manipulated on a step-by-step basis.  Doing this instead using the DAQmx driver VIs (in the link I provided earlier) DOES allow you to manipulate these individual processes.  The DAQ Assistant is a convenient tool for getting started, but it isn't recommended for actually deploying a refined application.
    Using some of the examples in the Learn 10 Functions DevZone article explains how you can use the DAQmx driver VIs efficiently. In most cases, if you are running a loop, you can condense the functions that execute in a loop down to just one function--step #5 of the list I wrote out above (look for where I drew the arrow).  This speeds up your process and makes it MUCH more efficient.  In addition, because it is more efficient, you can run multiple Tasks through your loops without taking hardly any hit on speed or memory usage.
    Take a look at that DevZone and see if it helps with programming your application further.  Let me know how it works for you,
    Regards,
    Andrew
    National Instruments

  • Moving Average, Allowed Deviation, & Time Stamp Measuremen​t

    Hello,
    I have this vi that take measurements data, finds running average, and suppose to count the number of times it exceeded the allowed deviation and time stamp whenever a measurement exceeds the threshold value from the running average. There is a problem in my algorithm, can someone please take a look?
    Known problem:
    -- number of exceeded times should reset only when cycle time=passed time.
    I'll be happy to hear any suggestions you might have.
    Thank you,
    Solved!
    Go to Solution.
    Attachments:
    moving_average1.vi ‏39 KB

    I did a little work on your vi and simplified it. I think it is doing what you want. I am not sure what the threshold part is doing so I left it. You were having problems with the local variables and you had a few greater thans hooked up backward. If you do not understand what I did let me know and I will explain it.
    Tim
    Johnson Controls
    Holland Michigan
    Attachments:
    moving_average1.vi ‏39 KB

  • Incremental encoder: reset counter on pci 6014?

    I want to connect an incremental encoder with A, B and Z to a PCI 6014 card. I found some VI's for counting A and B (DAQmx->Counter->Count Digital Events; DAQmx->Counter->Measure Posititon) . However I can't figure out what to do with the Z. Is there a way to reset the counters by Z? (I am using labview 2009)
    Thank you very much!

    Sorry, my fault. I didn't see you have an E-Series device.
    Resetting your counter with a digital trigger is possible for Counter/Timer devices but not for your PCI 6014.
    You can reset the counter with DAQmx by stopping and starting the task again. You could read your Z index on a digital input, if the input goes high (or low) you could reset the counter.
    DAQmx: Count Digital Events with Option to Reset Counter
    http://decibel.ni.com/content/docs/DOC-6576 
    I think this is the only way for the PCI 6014. Since you have to go through several software layers, the performance goes down a bit. If it is possible, i would recommend to change to a M-Series device...
    Cheggers
    Sascha E.
    Group Leader Applications Engineering
    National Instruments Switzerland

  • How to connect DAQ6013 with CB-68LPR with 555 timer

    I need help to connect the CB-68LPR with 555 timer.
    There is only input and a output
    The input is V+,V- which is supply by a DC power supply
    The output is output of the 555 timer.

    Timer,
    Below, I have included a link to the user manual for the NI 6013. Chapter 4 details the procedures for connecting signals to this device. If you are using the NI 6013 in differential mode, you will connect ACH0 and ACH8 to the circuit from which you want to acquire analog input data. These correspond to terminals 68 and 34 on the CB-68LPR connector block, respectively. ACH0 should be connected to the positive signal, and ACH8 should be connected to the negative signal. After you have made this connection, you should be able to acquire a signal from your circuit with analog input channel 0 in the MAX Test Panel.
    NI 6013/6014
    User Manual
    Spencer S.

  • 6014 encoder

    Dear all
    I have to read an encoder that measures the angular position with signals A and B only (so no index Z). I use windows XP with labview 2011 and an acquisition card NI 6014. I have been able to count the individual signals with the application "Measurements and automation". I never read an encoder so I have used the express VI, but I have not found the option to read position in the express VI. When using an example named "measure angular position.vi", I have got continuously the error that the selected channel does not support the measurement type required. The property is "CI.MeasType", with a requested value "Position: Angular encoder", which is not available amongst the ones I have. How can I solve this?
    Thank you very much for every hint. Happy new year...
    antonio

    Hi Antonio
    I suppose that you can't acquire encoder position signal with the B series hardware PCI-6014. I think this is due due the onboard technology. I've searched some informations about but i have not found any document which explains the tasks that are avaliable using the specific hardware.
    Any task can be implemented in MAX so a good way to understand if you can do a task with your hardware is to implement it in MAX. When you specify angular encoder acquisition task and you can't see any of the 6014 counters available in the list of channel, it means that you can't use the hardware to implement the task.
    I think there is no workaround. You can't use Windows to read the encoder signals in a low level way (using software to transform the phase signals into a position measure) because Windows is not a real time OS.
    Let me know you have any other idea!!!!!

Maybe you are looking for