Use timing measured using counter 1 to set the pulse width on counter 2

I am measuring time between 2 edges on counter 1.  I want to be able to generate a pulse on counter 2 that is dependent on the time measured by counter 1.  The delay on counter 2 is a multiplicative of the time measured on counter 1. Is this even possible?

Hi Thaison V,
I am using a PCI 6251 M series card and using DAQMX.  Your assumptions are alomost correct.  I am using a period measurement to measure time in between two leading edges on counter 1 inside a while loop.  I had set up the second counter to generate a single pulse on each trigger (retriggerable digital trigger) inside the same loop and update the low time of the pulse using the channel property.  There seems to be a 2 iteration delay between when counter 2 catches up with time measured on counter 1 time.  I believe this is because the pulse is already generated before the vaule is measured on counter 1.  I suppose if I can use counter write after the counter 1 is read out it might work, but I haven't figured out how to use DAQMX write to write a single pulse ( it works only for pulse train??).
thanks for your help
V

Similar Messages

  • DAQMx has no output when the pulse width is less than 0.1sec

    Hi,
        I am developing a application to generate square wave(voltage) and out put from a DAQMx card (PCI-6723   - 32 point analog in/out).  I attache a simplified code (labview8.5) I wish somebody can help me to figure out what is the problem
        When I set pulse width longer than 0.1 sec. everything works fine. If I set the pulse width less than 0.1 sec, the output from DAQ eithet gets nothing or incorrect(I used a Osclliscope to monitor the  DAQ output), although my labview monitor showed correct output.   I wonder if it is a sampling issue of the DAQ card.
         Thanks
        Guang
    Attachments:
    test21.vi ‏69 KB

    I think one or two things could be causing the problem.
    1.  Your DAQmx write is set for 1 sample.  I don't know how that dynamic signal type works with such a setting.  Perhaps it is just putting out the first sample of the signal that is generated.
    2.  The math for the frequency of the square wave does not make sense.  You are adding a pulse delay with the pulse period, then inverting it to get the frequency.  So a 1 second delay with 1 second pulse is a 1/2 Hz wave.  A 4 second delay with a 2 second pulse would be a 1/6 Hz wave.  That doesn't make sense to me.
    I would recommend building your own waveform or array and not using the express VI.  If you have a 1000 Hz frequency established let's say, build a 1000 element array.  For a .1 second pulse, set replace 100 of those elements with a 100 element array of the voltage value you want.  You can index it wherever you want in the array to account for whatever delay you want.  If you want a 1 msec pulse, then just replace a single element of that array wherever you want.

  • Setting the preferred width or height of a ListView using css ?

    Is it possible to set the preferred width and height of a Node (a ListView) using css ?
    Just in case I tried with:
    .my-list {
         -fx-pref-width: 130;
         -fx-pref-height: 100;
    but it does not seem to work.

    Not that I know of. Searching for "prefWidth" in the CSS documentation yields no results. JavaFX layout is typically not managed by CSS, but by FXML and/or Java. You can set the prefHeight and prefWidth as attributes in the FXML file:
    <ListView fx:id="..." prefWidth="130" prefHeight="100" ... />or in Java:
    ListView<String> listView = new ListView<String>();
    listView.setPrefWidth(130);
    listView.setPrefHeight(100);

  • Changing the pulse width of a counter on-the-fly - ?

    I'm seeing strange behavior when trying to change the pulse width of a
    counter while it is running continuously.  Using the property node
    I can set the DAQmx Channel Properties "Low
    Time" and "High Time" when the values are
    changed by the user (see attached VI).  The first change is
    ignored initially, but then applied when a second change is made, i.e.
    the changes are applied one step late.  If I read the respective
    properties the values are what is set but not what is being
    generated and seen on an o-scope.  I added a
    condition of watching the property "Ready For New Value" before applying the
    change, but that doesn't alter the behavior.  What am I missing?
    Windows XP
    LabVIEW 7.1
    DAQmx 7.4.0f0
    PCI-6251
    Thanks,
    DTL
    Attachments:
    GenDigPulseTrain-ChangingSpecs II.vi ‏104 KB

    Alan,
    Thanks for the reply.  I don't know if I explained in well in my
    previous post, but I'll try to confuse again: The issue is that the
    property node change is reflected on the hardware (pulse output) one
    change delayed.  Example: Start the VI with time value A. 
    The user sets the time to value B, the property node read for the time
    will read value B, but the output pulse (hardware) stays at value
    A.  Then the user sets the time to value C, the property node read
    is C, but the output is now B, and so on...
    I've worked with the DAQmx Write, as the example you pointed to shows,
    and it will work properly (reflect the change immediately on the
    hardware).  If one replaces the DAQmx Write to a Channel Property
    Node it will start working as I described above (change reflected one
    change delayed).  Note: A subtle additional change is that I have
    changed everything to Time (High, Low) instead of Frequency (Duty
    Cycle,  Frequency) - ?.  Note 2: DAQmx Write doesn't bring
    out all the properties - what if I have to use a property node? 
    Do I need to "double pump" the values?
    FWIW,
    Don

  • How to set the column width in the PDF exports of interactive reports ?

    Hello,
    I have a huge problem with the PDF export for the Interactive reports. I'm using APEX 3.2.
    I have to produce a PDF report in landscape format that show 21 columns. My problem is that the columns have a ridiculous short width and that the text inside the columns do not wrap in the columns. So I get things like that :
    Date Name
    2011 Leina
    I should see 2011-08-01 and the name Leinad Jan
    I tried several things to format the columns, but none of the them has any effect on the PDF itself.
    1) I used HTML code in the report query. It works well with the interactive report, but display the HTML tags in the PDF.
    2) I used css to set the width of my columns. It works in the interactive report, but not in the PDF, the column width do not change.
    It's like the report do not notice that my page format is Legal 14 x 8.5 (Landscape) and still believe it's 8.5 x 11 (which is "portrait")
    Do you have any idea so set the columkn widths in the reports ?
    Thank you !
    Edited by: leinadjan on Aug 1, 2011 11:15 AM

    To "remember" the column widths, add a mouse listener to the table header. Upon mouseReleased(), get the column widths and save them to your file. When the application starts next time, get the stored widths and set them using:
    table.getColumn("XXX").setPreferredWidth(...);
    By default, your columns are adjustable, but you can use:
    table.getTableHeader().setResizingAllowed(true);

  • New to portal: Setting the column width in portal QBE report

    I'm trying to set different widths to different columns in the QBE report. One of the columns in the report contains long descriptive text. With the default column width the reports runs into many pages and user has to scroll a lot. I would like to set the column width for this column so that it does not wrap for every 2/3 words. In the customization tab, I'm setting the width type to "Char" and selecting the number of characters to be displayed in that coulmn. Percent/pixel width type also didn't help. Should I set the Header width also?. I'm not sure where to set this header column width.QBE report just ignores these customization parameters and displays the report in default format. Please let me know if you have any idea/solution to this problem.
    Thanks
    Surya

    Hi,
    This is a bug and has been fixed 30984.
    Thanks,
    Sharmila

  • 10.8.6 Column view. Can we set the window width to resize to it's longest file?

    I have a MacBook Pro, 10.8.6. I always have my windows open in Column view. Can we set the window width to resize to it's longest file? I'm always having to manually make the width wider and it's annoying.
    Thanks

    Hi, the latest OSX is 10.7, soon to be 10.8, there is a way in Leopard/10.5 & Snow Leopard/10.6 to make finder display that...
    http://osxdaily.com/2007/12/02/show-full-directory-path-in-finder-window-title-b ars/
    A possible workaround for Tiger/10.4 is both of these which show the full path & is Copyable...
    Find Any File...
    http://apps.tempel.org/FindAnyFile/
    EasyFind...
    EasyFindPath
    Near the bottom of the page.

  • How can i set the column width in the jtable?

    how can i set the column width in the jtable?
    can anybody send me a simple example??

    TableColumn column = table.getColumnModel().getColumn( columnIndex );
    column.setWidth( desiredColumnWidth);
    column.setMinWidth( desiredMinColumnWidth);
    column.setMaxWidth( desiredMaxColumnWidth);

  • In Delayed Pulse Generation vi,Problem With THE PULSE WIDTH??

    In Delayed Pulse Generation vi, I want to input a very low number for the Pulse Width while using an external timebase source. But the minimum pulse width has to be 2. Does anyone know how can I solve this problem??

    Hey 45,
    Unfortunately, there is no way to generate a pulse width smaller than 2x your external timebase.
    There is an option to create a pulse of arbitrary width of your external source if you can afford some software processing in between. What you can do is use 1 counter to measure how many source edges of your card's internal timebase (80 MHz for TIO only, 20MHz or 100kHz for TIO and STC) your external signal is. This uses pulse width measurement as the counter application. Once you know how many source edges it takes to represent your pulse, then you can use triggered pulse generation and use the internal timebase with the pulse specs set to create the exact pulse width you want (and delay) and you can use your external pulse as the trigger. Th
    is works well if your pulse is always the same width and you can measure it before hand. As an example, let's say your pulse is 20 internal timebase pulses when measured. This means you can use the pulse specs to specify a pulse width of 0.75 your pulse width by using only 15 internal timebase edges for your pulse width.
    I don't know if I was clear above or not but if you give me your exact application you are looking to achieve, I might be able to help you out. Hope that helps.
    Ron

  • Using VM level application constant to set the attributes on the interview screen

    Hi All,
    We have a Performed By as one of the interview question which should be defaulted with the user id of the person who launched the OPA session (through web determinations).
    There is a user-id application constant which is available at the VM layer. Is there a way to set the Performed By question on the interview screen with this user-id by modifying the VM templates?
    Please help.
    Thanks,
    KK

    I tried with that code, its giving compile error for this: Can you please let me know what I am missing here:
    PreSeedValues.java:44: isUnknown(com.oracle.determinations.engine.EntityInstance
    ) in com.oracle.determinations.engine.Attribute cannot be applied to ()
                    boolean userIdKnown = (! performedBy.isUnknown()) && (! performe
    dBy.isUncertain() );
    Because an attribute exists for an entity, it can have different values across different instances, so, when you try to get the value (or check its know/unknown state) you need to pass in the entity instance. In you case the global entity instance: performedBy.isUnknown(ruleSessionGlobal) and performedBy.isUncertain(ruleSessionGlobal)
    Also, one more thing, we have around 50 different screens and each screen has this performed by attribute with different name. Now to set this in code, it would not be a good idea to write 50 lines for different performed by attributes. Can we have something like getting the screen name for the current screen in user context and user that as a prefix for the attrubute name. e.g. RA0084_Sheet_Performed_By in this RA0084_Sheet will be the interview screen name.
    It sounds like you want to set the user id when each screen is submitted. The OnInvestigationStartedEvent will only fire once, when the investigation starts. If you want to set an attribute when a screen is submitted, you probably want to use something like a OnValidateScreenEventHandler which is fired when a screen is submitted and has the screen details in the event.
    See Events and Event Handlers in Oracle Policy Automation Developer's Guide

  • Using a PhaseListener in order to set the locale on the UIViewRoot

    Hello,
    I am wondering which is the best phase to set the locale on the UIViewRoot...
    I don't know whether to choose the "update model values" or the "invoke application" phase and whether to set it before or after the phase.
    Can anyone please help?
    Thanks in advance,
    J.

    I'd say at any time AFTER the restore view and BEFORE the render response phase should be fine. I cannot be 100% sure as I've never actually done this. I would experiment and find out if I were you, only way to be really sure.
    I'm assuming you want to do this to only have to put this code in one place. Its not an option to use f:loadBundle in a facelets template that you share among all your pages? Then you don't have to muck about with phase listeners.

  • Can I use a colour palette control to set the colour of an LED on front panel?

    Hi,
    I want to allow the user of my LabView program to be able to set the colour of an enlarged LED on the front panel using a colour palette control also on the front panel. Is this possible or can the LED only be the colour it is set to in its properties dialogue box?
    Thanks,
    Dave.

    The question is of course: "Does it really need to be a boolean LED that has a True/False and all the boolean logic???
    If you just want an LED lookalike where the color can be easily controlled programmatically I would recommend a color box indicator instead. You can even customized it to look like an LED! The attached example (LabVIEW 7.1) shows both methods, but the color box option is programmatically much less messy (no bundling, no array building, no property nodes!).
    (To make the LED color box indicator, I customized a plain color box and simply imported the graphic elements from the regular LED indicator.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ColorBoxLED.vi ‏22 KB

  • I have an A2300 camera and don't know how to use it. How do you set the time/date.

    I am a novice at this.  I can take pictures, buy can't find them. Does the cd that came with the camera show how to 
    operate the camera. What is the function key for and how do you use it.
    Any help would be appreciated.
    Thanks,
    Tross.

    Hello Tross!
    When you take images, provided that you have a memory card inserted, they are saved direct to the card.  They can be accessed in camera by going into the Playback menu.  There is a CD that has an instruction manual on it that does show you how to use the camera.  If you do not have this, you can download the manual here.
    The Function/ Set button serves two main functions.  One, it displays a small menu where you set the shooting mode and image quality options.  Second, all setting that need to be confirmed are done with the Function/ Set button. 
    Changing the date and time settings
    1. Press the Menu button.
    3. The Tools Menu appears.  Go to Date and Time.
    4. Next, operate the date and time screen:
     Set the year, month, date, and time.
     Change the year, month, and date.
    - Set the daylight saving time (one hour is added to the current time).
    5.  After the settings are completed, press the ) button.
    We hope this helps answer your questions and that you enjoy the camera.  If you need to contact us immediately, please feel free to contact us through the web site.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to set the BARCODE width and length for label printing..

    Hi All,
    How to set the Code 39 barcode label format in the sizxe of 0.20" * 1.4". By default while printing barcode size exceeds my current requirement. Please let me know to customize the size of barcode labels.
    Thanks.

    I don't know what you mean by "Code 39" because my Output Designer software doesn't offer that barcode (or do you mean "code 3 of 9?). In any case, are you trying to control the size of the text (which is what I think of when you refer to "label")? If you are, then just change the font & size. If you are wanting to modify the physical characteristics of the barcode itself (height & length for a certain number of characters) then you are probably out of luck. Or at least in for some trial & error.
    There are a series of "barcode.xxx" files in the 'config' folder where Output Designer was installed to. These are text files that contain the physical characteristics of the various barcodes for various printers. The parameters that you would be interested in is the height and width of the bars (black & white). For example, a barcode might be defined as .400 high with narrow bars 3 "dots" wide, wide bars 9 "dots" wide and white space the same or different. Presumably changing these values would affect the generated barcode. For example, in this example the wide bars are 3 times the width of the narrow bars so I would assume that relationship would have to remain. To make the resulting barcode shorter you would then use 2 for the narrow and 6 for the wide.
    You would have to make the change in the file(s) that would be used for your printer(s).
    There are four width values for each of the parameters. Most of the barcodes only use 2 but some have 4. I'm assuming that when there are 4, like in "4 8 12 16", that the barcode definition has 4 different widths of bars and/or spaces.
    There is no guarantee that the scanning hardware & software will "see" and interpret the resulting barcode correctly.

  • Setting the view width on tab pages

    can anyone tell me where and what values to set for a tab page to display as spread table over the entire width of the tab page. The spread table look is ok, but there is only about half the tab page used.
    On the second tab page there are two blocks with the second one placed "right of" the first. These two fill out the available width of the tab page.
    All suggestions are welcome!!!!

    hi Dominic,
    thanks for your reply.
    >
    --To display items as a spreadtable on a canvas, use the
    --Multi Block Overflow Option (BLKOVF), providing the
    --criteria in the Designer Online Help topic 'More About
    --Block Generation' are met. There are plenty of help
    --topics on setting and using spreadtables.
    >>
    The items are all dislpaying, except when you navigate to the block via the toolbar (NxtBlk button).
    Everything else works just fine.
    It seems that when the WHEN-TAB-PAGE-CHANGED trigger fires, the spread table view is "invoked", but not when navigation occurs via the toolbar
    >
    --If you want to spread the design of items across a
    --tabbed canvas, then you do this manually. The Relative
    --Tab Stops Editor feature can help you with this.
    >>
    I have used the relative tab stops editor, and that worde fine also
    Robert.

Maybe you are looking for