measure the distance between 2 impulses (PCI-6221)

Hello

I have a digital signal that sends a pair of impulses (100ns width each) roughly every 100ms and I measure the time between two pulses of a pair (with a resolution of 100 ns).
For the moment, I got a card PCI-6221 to accomplish this task. Unfortunately, I have no solution until now only measures of counter, I found measure time between constant frequency signals, i.e. they cannot measure the distance between 2 single pulses.

Any help / ideas / or even telling me that it is impossible to solve this task are appreciated

Are the two pulses on the same line?

If so, you need to just configure a task of the measurement period.  If they are on separate lines, you would use a task of "separation of two-edge.

You might be to throw off by the timing of it:

If you do not configure implicit synchronization in your task, will start on the first edge after DAQmx Read is called.  Thus, in order to intercept the signal, that you must configure your task, call DAQmx Read and then start your two squares.

If you want the task to control the signal continuously, you must configure name timing.  In this case, you will receive a sample on each rising edge of the external signal (assuming that the two impulses on the same line) - If you start the task of counter before starting the production of pulses (which you probably should), then the same samples correspond to the time between pulses, the odd samples would be the time between each series of pulses.

More information on modes of counting on the 6221 lie in the M series user manual.

Best regards

Tags: NI Hardware

Similar Questions

  • Measure the distance between 2 points of glare

    Hello

    Does anyone know how to measure the distance between 2 points (attached Image) glare. The image shows 10 sets of points of glare. I appreciate if you can guide me to process the image and produce the algorithm to detect the 10 sets of points of glare and measure the distance from each game.

    Thank you

    Farid

    Check if this will do

  • How to measure the distance between the elements now? cmd + move tool does not work

    I work on mac os x 10.9 and upgraded to photoshop cc2015.

    I used to measure distances between items by pressing cmd + move selected tool.

    Help please

    Do you have any guides? View > show > Smart Guides

  • I'm using Labview TDS3000 Tektronix pilot measures the delay between pulses on two different channels

    I use the driver for Tektronix TDS3000 Labview to configure an TDS3034B oscilloscope and I try to measure the gap between the falling edge of a pulse on channel 1 and the edge failling from an impulse on channel 2. It seems that the TDS3034 can measure this in in-house by the use of the measurement on the front panel key, but how do I retreave using your labview driver?

    Hi Tori

    I am now in place and running, I already had the TDS3034B to measure the delay between the pulse on channel 1 and the pulse on two channels, as well as the pulse width tuned to channel 2. This was done by saving the settings on the scope on a diskette and cutting and sticking them in a modified version of the TDS3000 auto setup vi. I created from a simple VI which allowed me to manually enter orders for tektronix and found that the command "measure: meas1: data? went around.

    Thanks for all your support on this issue.

  • Measure the time between the ridges of the periodic input signal

    We have built a circuit which is supposed to mimic an Exercycle.  We have an IR switch and a spinning wheel, the rccb meets a comparator circuit and the output of the element of comparison, we have running in LabView.  We successfully were able to measure the number of rotations of the wheel and the total distance travelled by the wheel, but are struggling to measure speed.  We cannot find a way to measure the time between picks in real time, which we could then divide the wheel circumference and calculate the speed in real time.  The VI I posted has a square wave simulated rather than the signal we receive on our circuit.  Thanks in advance for the help.

    Jon and David

    I think you're overloading the things trying to get the time between two pulses.  Instead, you can use the VI Express your measures and select frequency for her custom. Then, you can multiply the circumference of the wheel of the frequency to get the speed.

    I hope this helps.

    -Christina

  • How to measure the distance using script

    Hello

    Is it possible to measure the distance of any document in photoshop using the measure tool, using the script. Below the steps required by me. Hope I'm clear in my communications.

    I've searched the forums, but couldn't find appropriate answers.

    1. open the Photoshop document

    2. allow the user to draw the line with measure tool

    3. the alert distance

    RGS

    Anish

    This only works with CS5 because it now uses the tool instead of a path rule. But it solves all the problems talked about in this thread and many other differences between the original function and the data in the info panel.

    It returns a custom with angle and length properties object if there is a rule tool line in the active document and not of the indefinite. I didn't know if the length must be a unitValue or number in the units of the rule settings. I went with number because the Panel info has different number of decimal places for the different units. And as the Panel assigned the corresponding graduation info per cent the length value is empty

    function getRulerToolLengthAndAngle() {}

    points of var = [];

    points. Start = [];

    points. End = [];

    var / / desc = new ActionDescriptor();

    Var ref = new ActionReference();

    ref.putProperty (charIDToTypeID ('Rprp'), charIDToTypeID ("RrPt"));

    ref.putEnumerated (charIDToTypeID ('Dcmn'), charIDToTypeID ('Ordn'), charIDToTypeID ('Trgt'));

    desc.putReference (charIDToTypeID ('null'), ref);

    var / / desc = executeAction (charIDToTypeID ('getd'), desc, DialogModes.NO);

    If (desc.hasKey (charIDToTypeID ('points'))) {}

    pointList var = desc.getList (charIDToTypeID ('points'));

    var startPointDesc = pointList.getObjectValue (0);

    points. Start.push (startPointDesc.getUnitDoubleValue (charIDToTypeID ('X')));

    points. Start.push (startPointDesc.getUnitDoubleValue (charIDToTypeID ('Y')));

    var endPointDesc = pointList.getObjectValue (2);

    points.end.push (endPointDesc.getUnitDoubleValue (charIDToTypeID ('X')));

    points.end.push (endPointDesc.getUnitDoubleValue (charIDToTypeID ('Y')));

    var RES = {};

    res.toString = function() {return "RulerTool news" ;};}

    Pointed var = points.start;

    var points.end = b;

    If (pointed [0]

    var a = Math.max(pointA[0],pointB[0]) - Math.min (pointed [0], b [0]);

    var o = Math.max(pointA[1],pointB[1]) - Math.min (pointed [1], b [1]);

    var ang = (180/Math.PI) * Math.atan2(o,a);

    If (pointed [1]< pointb[1]){//negative="">

    Ang = - ang;

    };

    Res.angle = ang.toFixed (1);

    } else {}

    var a = Math.max(pointA[1],pointB[1]) - Math.min (pointed [1], b [1]);

    var o = Math.max(pointA[0],pointB[0]) - Math.min (pointed [0], b [0]);

    var = 180-((180/Math.PI) Ang * Math.atan2 (a, o));

    If (pointed [1]< pointb[1]){//negative="">

    Ang = - ang;

    };

    Res.angle = ang.toFixed (1);

    }

    If (app.preferences.rulerUnits == Units.PERCENT) {}

    Res. Length = "";

    } else {}

    var c = Math.sqrt + ((a*a) (o * o));

    var length = new UnitValue (c, 'px');

    length.baseUnit = new UnitValue((1/app.activeDocument.resolution),'in');

    Switch (app.preferences.rulerUnits) {}

    case Units.PIXELS: res.length = length.as('px').toFixed (2); break;

    case Units.INCHES: res.length = length.as('in').toFixed (3); break;

    case Units.CM: res.length = length.as('cm').toFixed (2); break;

    case Units.MM: res.length = length.as('mm').toFixed (1); break;

    case Units.POINTS: res.length = length.as('pt').toFixed (1); break;

    case Units.PICAS: res.length = length.as('pc').toFixed (2); break;

    }

    }

    return res;

    }

    }

    var getRulerToolLengthAndAngle() = Info;

    If (info! = undefined) alert (' the ruler tool angle is: ' + info.angle +'\nThe length is: ' + info.length);

  • How to increase or decrease the distance between letters in iBA

    I can change the distance between the lines of writing, but I don't know how change the distances between letters, to make the point more dense or lighter, could you please tell me how to do? If this is possible. Or should I go back to programs to make and then import it again into Indesign or Word iBA? Seems very troublesome and inefficient... must be a path inside the International Bar Association, so if you know I'd appreciate your comments. Thank you.

    iinspector > text > text > spacing > character

  • How can I use 2530 b and 4065 to measure the resistance between two selected pins?

    I want to be able to select 2 corners on a test with 2530 b set-up and measure the resistance between them with a 4065 DMM (PXI all). Ankles in question are each in blocks of 32 different poles, so I can match them in a double configuration 32 x 1 four or 64 x 1 if necessary. I can measure the resistance between several different pine sets as 0 on 33 pine pine, pin 0 at pin 34 pin 0 to 35 pin and pin 1 to 34 pin, pin 1 pin 36, etc.

    I understand how to measure resistance between a given pin and Earth using the the 2530 4065/b using the wizard OR-DMM/Switch Express, but it is unclear if I can measure the resistance between the two pins of selected by different user. I am a newbie of labview, used to write things in c#, so it may be something very trivial (I hope).

    Any ideas?

    Thank you

    -Russ

    Hey Russ,.

    I recommend starting with the following example (located in the Finder the example ('Help' to find examples):)
    "" Material input and output"Modular Instruments ' OR-Switch" niSwitch Dmm Switch Handshaking.vi

    Because you use a scan list, you can simply drag the two connections to the same entry and then the switch will wait for the two to settle before you send a trigger of the DMM... problem solved.  For example, to connect the CH1 to Com0 (DMM +) and CH93 to Com4 (DMM), then take a measure, then connect CH38 and CH120 to the DMM, you would use the entry list of scan to the following address:

    CH1-> com0 & ch93-> com4; CH38-> com0 & ch120-> com4;

    Note You can have as an entry in list of switch module scan.  In addition, you can only have a single advanced analysis and a measure full per switch module.

  • Measure the distance using color sensor 2.0

    Hi all!

    I would like to know if there is a way to measure the distance of an object using the color sensor that comes with the Mindstorms 2.0. I am gaining a few conferences of the sensor, but I don't know how to convert these values to distance.

    Any reference or a link would be appreciated!

    Thank you!

    Hi fran_jo,

    Here is an article which offers a good method to calculate the exact values of scaling to convert measures of intensity at a distance: http://www.hitechnic.com/blog/eopd-sensor/eopd-how-to-measure-distance/.  Do not forget that this relates to a third party of sensor, but the concepts should always be applied.

    Also note that the color sensor is affected by ambient light.  You can try to use a 2nd sensor to take account of all the ambient light.  What you trying to accomplish with this application?  Is there a reason that you are not using the ultrasonic sensor?

  • How can I measure the time between each two successive increase edges, using digital input?

    Hello

    I have tried two measure the time in seconds between each two successive rising edges on a digital input.

    So far I managed to detect the rising edge, increment a counter at each rising edge and take the time during which the increase is edge

    all I need now is subtract edge currently rising from the previous era of edge rising to calculate (T), which can be 1/frequency and display in real time for the user.

    but I do not know how to do this

    Can someone help me please!

    Woah!

    Sorry Apok, but your code becomes much too complicated and salty. I don't think that all records to offset or Boolean conversion/operators are necessary at all.

    If you want to measure the time between two keys so it's another (much less complicated) way. It simply records the time when press button in a registry change, then compares the two.

  • I'll try to find the distance between a smart camera and object?

    I am using smart camera or 1722, and I'm doing a VI that gives me the distance between the object and the camera of the aquised of the image with the grab module

    Can someone help me please?

    I'm new with labview and I don't have much time to make this project so please help

    You should pass on the IP Reset (on the camera), and then you will be able to make the assignment of intellectual property to a successful conclusion.

    Kind regards

  • The distance between objects, maintain ratios

    Im trying to increase the height of a drawing on illustrator, while keeping the individual components exactly the same thing. To the point of discussion saying theres four rectangles, one above the other... I want to increase the distances between each rectangle while maintaining the same ratio of distances. I don't know if this is even possible, but pointers are appreciated!

    Basically, you will first need to enlarge the complete drawing by the desired amount.

    Then do the math to calculate how much you would need to scale down in order to have the same size.

    Use the object > transform > transform each to resize the unique elements of this amount.

  • Check the distance between the objects when the window is resized (was: Muse Help)

    If I build a new website havn't Muse widely used yet, and I encountered a problem.

    http://jart01.BusinessCatalyst.com/index.html it comes to my test site, as you can see at present still very basic. Now, I'm trying to understand how I can control the distance between objects when the window expands or contracts, there seems little of the larger window and the gap between objects. Does anyone know how to set limits to the distance between them?

    I also tried to create a divisor of 100% for the Nav menu and can't get there either. So if someone could put me on the right track this would be great.

    You must define the flow layout and do the 100% resizable images. Who must work in Muse CC 2016

  • Scaling multiple objects without scaling of the distance between them, or vice versa

    Hello, if you have, for example, three at random circles, how can you in one step change the radii of all three circles without change the distance between them? When I retrieve all circles both by using the selection tool, and use the object-> scale, the size of the circles and the distances between them are set nationally.

    Otherwise, how can you increase the distance between the circles (in other words the size of the triangle balance you might say form) without changing the radii of the circles?

    This helps to actually create the lines connecting the circles and construction of the triangle, so these distances are in fact objects? Is there a solution without having to do that?

    Thanks a lot for all of your thoughts.

    Best-

    DTalvacchio

    The answer in both cases:

    Object > transform > transform each

    In the second case, you will first need to everything that the scale and adjust using transform each.

  • How to find the Distance between the two stores

    Hi all

    I need to find out the distance between stores in our organizations. For example, for a store and shop B, distance of 5 miles etc...

    I'm very very new in Oracle Spatial and don't know how to do it.

    Can you help me please?

    Kind regards

    Dilek

    Dilek,

    That have you tried that didn't work?

    See: package SDO_GEOM (geometry)

    Bryan

Maybe you are looking for

  • How can I get Firefox 5 Mac to warn me before quitting?

    Use Firefox 4, a warning dialog box was displayed until I leave the browser. This warning is essential for me since I work through a web application and risk losing work if I accidentally left. I often use Cmd + W to close tabs and Cmd + Q is a swipe

  • Equium L40 - 10Z goes dead after leaving her alone for a while

    Evening, I noticed a problem shortly after buying my Equium L40 - 10Z. If I leave it to the top, but don t he use for a period of 3 to 5 hours or more, the laptop is still on but there is no hard drive activity and the screen is blank. Nothing I pres

  • Mini Strip HD Digital Sony 63

    Will someone kindly advise me regarding Sony 63 Mini Digital HD Tape? Recently, I recorded a six minutespart of the band and a few days after I recorded the residual balance of the band...A few days later, I captured the content of the entire band us

  • Urgent: continous recorders of NIDAQmx and other instruments with multi-threaded vc ++

    I'm working on a software with vc ++ to control several instruments including a NO-DAQmx6289. For example, the features of the software. 1. communicate with data acquisition card (card data acquisition) and continuously acquire data from several chan

  • A new version of windows is already installed... where is it?

    I'm trying another thread for help, hoping someone can solve this mystery. I tried 10 (hated) windows and am back on windows 7 but have 'lost' windows mail along the way and can't get it back. My programs & features show that I uninstalled but I can'