How can I measure time between transitions at digital input

I am using LabVIEW 6.0 to measure the time duration between 2 transitions in a digital input port. I have a set up including an HP 34970A Data Acquisition unit with the 34907A Multifunction Module plug-in. The LabVIEW program is trying to poll the digital input for level changes and then using the Time function(Tick Count) to check the times at the transitions. However this method doesn't work reliably as I have to measure time periods of 500ms.
Is there any good way of mesuring time period with the above setup. I don't have a module which connects to the internal multimeter in the 34970A. The other stuff I have are a HP 34903A(Actuator Module) and a HP 33120A(Function/Waveform Generator).
Any method for m
ore accurate time measurement with the above setup will be appreciated. If not, what else do I need to make accurate time measurements.

Frankly I doubt that you're going to be able to measure time interval with much accuracy. You're periidically polling a static digital input and how often you poll is going to vary. You could try polling as fast as possible and eliminate as many background tasks as you can. If your tolerance for the measurement is plus or minus 100 msce, then maybe you'll get a decent measurement most of the time. If it's plus or minus 5/10 msec, then it will never happen. The pc's clock is just not that accurate and a software timed loop on Windows is not deterministic enough. Get a counter/timer board for something really accurate or use a scope to capture the waveform.

Similar Messages

  • How can I increase time between photos on screensaver slideshow

    is there a way to increase the time between photo changes when using a screen saver slide show?
    Thank you so much for your assistance

    Richard,
    You could try going to iTunes>Preferences>Playback and ticking the radio button "Sound Check" to adjust the volumes globally. See how that works for you.

  • How can I measure the frequencies of two analog input signals simultaneously?

    Hi
    I have two AI signals, and I need to determine the frequencies of those signals. The frequencies range from 1-125Hz. I currently have a VI where I can sample one of the signals for 1 second (sampling at 300 Hz for 300 samples) and determine the frequency. 
    I need to read two signals at the same time and get both of the frequencies at the same time, but I can only figure out how to read them individually, so I can read one signal, then one second later I read the second one, then I read the first one again, then the sceond one, etc..  How can I read two signals simultaneously?
    Thanks
    Attachments:
    FreqMeas11.vi ‏41 KB
    FreqMeas11.PNG ‏18 KB

    "at same time", this depends on the hardware, you can do as has been previously stated just set up a 2 channel acquisition and you will get 2 sampled waveforms back.  Most hardware A/D as multiplexed and true simultaneous sampling is not done.  At 125Hz this is not an issue unless you are interested in very small phase changes between the samples.  just keep this in mind if you are expecting samples to be completly synchronized.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • How can i measure a voltage with the digital i/o port on my nudrive using labview?

    I am using a 4SX-411 nu drive to control my stepper motor. I need to measure an input voltage at the digital I/O port of the nudrive. How can I program LabVIEW to do that?
    Thanks

    Hello Raven24,
    Thank you for contacting National Instruments. NUDrive 4SX-411 is a value motion drive and you can connect to it using any of the ValueMotion boards. When using a ValueMotion NUDrive with steppers you have I/O ports 1-4 available for general purpose use, I/O ports 5-8 are reserved for axis inhibit output signals. Refer to section 4-7 of the ValueMotion Hardware User Manual linked below, for information about the jumper settings.
    ValueMotion Hardware User Manual:
    http://digital.ni.com/manuals.nsf/websearch/6CF7A54E0BDEA1388625665F0054FFDF?OpenDocument&node=132090_US
    Once you have setup the jumpers appropriately, you can use the VIs found on the ValueMotion I/O & Limits pallet for configuring and using the I/O channels. Search for "I/O" in the attached help file for more information about these VIs. I hope this helps you out. Have a great day!
    Regards,
    Nipun M
    Applications Engineer
    National Instruments

  • How can I measure the phase difference of two input signal?

    Hello,
    I'm trying to measure the phase difference of two input sine waves with the
    same frequency.
    Is there anybody how I can do this with labview?
    Thanks,
    Dae-han

    This is my case! I have TDS3034 which can measure phase. However when I open Read Waveform Measurement vi that comes with tkds30xx.llb, I have a number of options under "measurement function" but not the phase measurement. May be I need another vi to do this?

  • How can I use 4 DIO lines as digital input in a E series-SC 2050-ER8 set up ?

    I have a DAQ system with an E series DAQ card that is connected to SC-2050 and ER8. I want to use 4 DIO lines (out of 8) for digital input. How can I do this?

    Hello Suresh,
    There are a variety of ways to accomplish this. If you are using LabVIEW, you will use the DIO Port Config VI and the DIO Port Read VI. You will use the line direction map input of the DIO Port Config VI to setup which 4 lines you want to be the input lines. The LabVIEW shipping example entitled 'Dig Multi-line Direction (E) VI' shows how to use the lines of the digital port on an E-Series device for input and output.
    If you are using NI-DAQ function calls, you can use the Dig_Line_Config and Dig_In_Line calls to configure a digital line for input and then read from that line.
    I hope this helps.
    Regards,
    Todd D.
    NI Applications Engineer

  • How can an unconnected indicator read an FP digital input?

    SYSTEM DESCRIPTION:
    A Dell desk top computer with a Field Point system attached. There are a variety of modules including analog input, 2 digital inputs, relay out, Strain gage input, quadrature input. The system is running XP. The Labview program is written in v6.1.
    PROBLEM
    In an application written by others, I have found 4 front panel indicators that react to Field Point digital inputs. On the block diagram, the indicators are not wired to anything. They have no local variables and no global variables associated with them. How can they be reacting to the FP inputs? The problem is that one of the indicators reacts to the wrong input and I need to fix it.  See "In(Rescue)Limit, In(Cargo)Limit, 4067 Out Limit and EStop".
    Also, when the vi is launched, it starts up the FP system and the vi has no FP vi's in it and none of the sub-vi's have any FP vi's in them either. Any clues how this could be working?
    I have attached the vi. There are other vi's in this project, just too many to include unless more information is needed.
    Thanks,
    Chris Dreike
    Advantage Automation, Inc.
    [email protected]
    310-214-2175

    Chris,
    It doesn't look like you attached the VIs.
    You can use front panel DataSocket binding to link an indicator or control to a FieldPoint ethernet item. Right-click on the indicator and choose Data Operations>>DataSocket Connection.
    Regards,
    Aaron

  • Simple question - how can I measure time?

    Hi everyone.
    I'm implementing an algorithm in Java and I need it to run for approximately 1 minute... is there anyway to run a for loop (or similar) for a specific measure of time? Has it got anything to do with checking the system clock?
    Many thanks!

    It all depends on the situation... If you want your code to stop exactly at 1 minute, regardless of what it's doing, you have to have to kill the thread from some outside source, so a Timer would be better there. If you just want your loop to just do something repeatedly for about a minute, then checking the time in the loop should be sufficient. Presumably you want the code to finish at least a complete iteration or have checks in between lines of code to stop at proper places to avoid strange state issues (again, depends on what the code is doing).
    I agree, that using Timers with a flag is probably a more sound solution, but the timer is a thread which sleeps, so there could be just as much delay in that timer firing as the code in the loop takes to finish before the next time comparison. There's no absolute guarantees on the timer's timing. From the java.util.Timer API docs:
    This class does not offer real-time guarantees: it schedules tasks using the Object.wait(long) method.

  • How can I measure coherence between EEG signals using labview?

    well, I have an EEG signal(a matrix 16X8498)whose lines represent the channels and collums the samples. The last line is the stimulus channel. I would like to know if I can measure the coherence between my EEG channels(lines)using labview.If,yes,is there someone who has the block diagram?

    Search the Labview help for coherence and you'll find several functions (in Labview 6.1 Full Development System). The functions are in the palette Analyze >> Waveform Measurements >> Frequency Response Function (Mag-Phase) or (Real-Im).

  • How can I measure power consumed by a digital cmos circuit

    Hi,
    I'm trying to measure the power consumed by a cmos digital circuit. Can anyone please give me the steps to do that?
    I have already created a simple XOR circuit using basic CMOS gates. I understand that I can measure the power by conecting a wattmeter, but how exactly do I connect it to my circuit?
    Please help.
    Asmit

    Hi Asmit,
    Digital parts in Multisim behave base on on/off and there are pin drivers at the gate input/output pins to drive a high or low logic to the appropriate voltage level. The model doesn't provide you with power consumption.
    Tien P.
    National Instruments

  • ***Resubmitted for further review*** How can I do position maintenance using a digital input to capture an encoder count and adjust the move profile on the fly.

    I have a rotary table (45:1 ratio) being driven by a stepper motor with an encoder attached to the motor. I am using a 7344 motion controller. I want to be able to do position maintenance on the move. The problem is that I am always moving in the same direction and the table has mechanical error. I have a home input on the table, which I have wired to the trigger input for the corrosponding axis. My thoughts were to capture the position when the table goes by the home input and compare it with the previous time and make the adjustment in the next move. I am just not sure what the best way to do this
    is.

    Hello,
    So when you say that the table has mechanical error you mean that the number of steps per table revolution will vary from revolution to revolution? I apologize that I misunderstood this initially. What you could do is use high speed capture to read the position of the stepper every time the home switch (or some other mechanical switch) is hit for each revolution of travel. Then when the high speed capture lined is toggled you can read the current position and modify your next move accordingly. To get details about High Speed Capture please search for High Speed Capture from our Developers Zone at: zone.ni.com
    There are examples programs on our website and examples available with the FlexMotion driver.
    Please let me know if you have any further questions.
    Re
    gards,
    Andy Bell
    Application Engineer
    National Instruments

  • How can I do position maintenance using a digital input to capture an encoder count and adjust the move profile on the fly.

    I have a rotary table (45:1 ratio) being driven by a stepper motor. I am using a 7344 motion controller. I want to be able to do position maintenance on the move. I have a home input on the table. My thoughts were to capture the position when the table goes by the home input and compare it with the previous time and make the adjustment in the next move. I am just not sure what the best way to do this is. I am thinking that I want to tie the home input to one of the trigger inputs as well as the home.

    Hello,
    Your best option will be to use an encoder for feedback in your system. If you use an encoder then at the end of the move, the controller will compare your trajectory position with the position the encoder reads (the actual position) and make the necessary adjustments. Also, this is all handled transparently so you won't have to worry about any complicated programming issues.
    Regards,
    Andy Bell
    Applications Engineer
    National Instruments

  • How can you build time series measures in OBIEE without using TODATE AGO fu

    How can you build time series measures in OBIEE without using TODATE and AGO function?
    Please provide steps to build time series
    measures in OBIEE without using TODATE and
    AGO function. Dashboard results not storing
    in cache when using TODATE and AGO functions.
    eventhough its cached users queries not
    hitting cache because queries doesn't match
    exact date time when using TODATE and AGO
    functions. so I want to build queries using
    sysdate and some simple calculations. Please
    send your inputs/ideas for my questions..
    Thanks in Advance

    This can be using Msum function in answers. Use the following formula, here dollars is my metric. Change the formula based on your metric.
    Msum("Sales Measures".Dollars ,2) - "Sales Measures".Dollars
    the report will be cached and better performed compared with time series. check ti
    - Madan Thota

  • How can I add the same transition to 200 photos?

    I'm making a slide show of over 200 photographs. How can I add the same transition between each photo without inserting it 200 times? There has to be a way to globally' insert transitions. What if I want to modify the length of the transitions or the photos? I don't want to modify each one individually.

    Daniel,
    Here are some references for you for applying a transition between all photos
    1)
    http://www.adobeforums.com/webx/.59b4ddb1/0
    will point you to a tutorial at muvipix.com
    Basically you do a Create Slideshow command choosing the transition before the photos are placed on the Premiere Elements Timeline. This process also specifies the duration for the "slide" and the transition.
    2)I suggest that you also read this FAQ about the resolution of photo files to be used in Premiere Elements. Even though written for an earlier version, it is still relevant (and potentially necessary) depending on the specs and status of your system
    http://www.adobeforums.com/webx/.3bb8822c

  • How can I count time with labview7?

    Hi
    How can I count time with labview 7 and NI-DAQmx like I did with labview 6.1 and "count time-easy.vi" (count event or Time.vi).
    I have a 6025E and labview 7.0
    Thanks

    I am not sure what you want to do or why..
    ... but here goes (some suggestions)
    If you want to count the time between two events, you have a choice, you may use the Tick Count. Inisitalize it first by getting a timestamp and then do a difference within a loop. The difference will give you the time elapsed in ms.
    You can also use the Get Date/Time String or Get Date / Time in seconds and once again take a snapshot when a first even occurs and another snapshot at the next even (at a point where you want to measure elasped time). This method is particularly useful if you want to timestamp an event.
    If I didn't answer your question, can you elaborate what you mean by "How can I count time".
    Best of luck..
    JLV

Maybe you are looking for

  • OSX Mail app not working well

    I am having different challenges with my Mail app... 1. The emails are taking up to 30 seconds to load. 2. The emails that i delete after reading show up again 3. Some emails do not open and i have to reply or read in preview 4. The So the bend on th

  • How do I get the Blazer 4.3 or 4.5 browser

    How do I get the Blazer 4.3 or 4.5 browser and the activation code if there is one. I want to try it on my Tungsten C. Post relates to: Tungsten C

  • CRM - BI Connectivity

    Hi There, I am trying to configure BI in CRM 7.0 system. Could you guys please let me know how to use BI functionality in CRM & also the what configurations should be done for this. Thanks, Rakesh

  • BPM Timeout

    Hello, I have a scenario in which SAP uses ABAP proxy to connect to XI synchronously. In XI I'm using sync-async BPM which has steps that make web service calls to an external system. My problem here is that some of the webservice calls take more tha

  • How to revert to Safari 4.05?

    Hello! I'm new to the Apple Forum, hoping to find some answers to my questions as well as helping others as much as I can. Running Safari 4.1 for a couple of days I'm looking now for a way to revert to Safari 4.0.5. 4.1 is causing a lot of crashes. T