How to count the pulses with digital input on 6351

Hi all experts in Labview,.

I just got my USB x series 6351 and it works fine, but I certainly lack of labview skills to use it to its full potential.

I would like to read digital pulses with several digital inputs and count the number of pulses each T interval in time. All impulses that I entered on any edge of the clock are not synchronized and can occur at random times during the tests. Basically I have an oscillator of square waves can I modulate the frequency. I don't want to use the meter as inputs as I'm limited to only 2 entries (if I use the option 2 input meter for metering of pulses or frequency). The input frequency can range from 0-1 kHz and goes 0 - 3V. So not too fast, and I shouldn't make too many mistakes trying to get the count of pulses and then back out the frequency in accordance with article ni.com on counters.

I would like to read the 8 digital input channels and get the number of impulses for each channel. I searched high and low for help online but can't find examples that have been useful. Anyone have any ideas on how to go or direct me to a resource? Thank you very much in advance!

Are you worried about getting the number as a physical operation timed?  It would be nice to acquire a digital waveform and then postprocess on it to detect how many events took place?  I've attached an example that shows how you can accomplish this. It reads a digital waveform and then uses a detection of crete VI to determine how many pulses occurred. Should be a few adjustments to your particular signal.  The VI I use seems to count events twice (probably count each edge), so counting it gives should be reduced by half in order to work.

Tags: NI Software

Similar Questions

  • How to count the pulses using RIO (FPGA)

    Hello

    I want to use RIO (FPGA) for counting the pulses produced by a sensor,

    but I don't know how to program. can someone help me.

    Thanks in advance

    CAIX wrote:

    Hello

    I want to use RIO (FPGA) for counting the pulses produced by a sensor,

    but I don't know how to program. can someone help me.

    Thanks in advance

    Search for example for 'Meter of RIO' finder.  There are dozens of examples that should help you.

  • I want to generate a pulse of a meter train and count the pulses with the other counter on a USB NI DAQmx 6259.


    Salvation;

    Here is the solution for your problem.

    The cause is that "Gen dig Pulse Train-Finite" uses Ctr0 both Ctr1.

    Please refer to:

    "When you do a finite pulse train generation, a counter generates pulse train, and the other counter generates an impulse that acts as a barrier to the first counter. If you change the pulse train to generate continuously or

    only generate a pulse, you can run two tasks of meter at the same time without error. »

    http://digital.NI.com/public.nsf/allkb/04BEDD9E9E91ED3486256D180048116D

    I used Ctr0 and Ctr2, jumping Ctr1 as it is reserved by "" Gen dig Pulse Train-Finite ". I works very well.

    Kizito.

  • How to count the fields with the bit data type

    Hi friends,
    I'm stuck in this report.
    My responses as it looks.

    region... offices... groups1... work2.
    A..........a1............. 0..........1
    A..........a2............. 1..........1
    A..........a3............. 0..........0
    B..........a1............. 1..........1
    B..........a3............. 0..........0

    Here 0 and 1 are values of bit (true and false)
    I need to create a report that matter works if the value is true (1)
    as...
    Region... total_Work1... total_work2
    A................... 1.............2
    B................... 1.............1

    and
    Offices... Total_work1... Total_work2
    a1............... 1.....................2
    a2............... 1.....................1
    a3.............. 0......................0

    Please help me calculate this total when core values are few.

    Thanks in advance

    Hi Toony,

    This is caused by internal database storage, a true is stored in the form of-1. Just take the integer ABS (absolute).

    concerning
    John
    http://obiee101.blogspot.com/

  • How to concatenate the string with a digital command?

    Hello

    How to concatenate the string with a digital command?

    Thank you.

    I think I forgot to add the semicolon, what you can do is, drag the CONCATENATE function and add semicolon.

  • How to count the time exactly?

    I tried to count the time using a VI like the one attached.

    It's that's not couting correctly. There is a possible reason, I have observed.

    The computer isn't able to handle the VI as soon as necessary.

    I thought about this because, when in edit mode the time count was very bad, and, when I created an application and installed, it ran okay, how 'light '. But today, when I tried to use this application with an old computer it did not work. The clock is slow.

    Is it possible to count the time correctly?

    I use a DAQ6009 to make my works, my VI is big enough and I need one iteration to each 1 ms (milliseconds) as I am with digital inputs from 5 events of coders (I know that's not the right way to count the encoders, but it's the only way I can do it, and it works).

    Thank you in advace! I hope you can help me!

    Hugs!

    Ok.  I will try to help you understand certain things.

    The number of cycles and wait (and wait until the next ms Multiple) functions all use a 1 kHz derived from the clock of the processor clock. The accuracy of these clocks is not large, although they are probably similar to the precision of the stopwatch.  Any time generated by these functions will show some differences in the time of the clock as it is derived from a different oscillator.

    Updates from the front panel are time by LabVIEW and the operating system. Most of the screens are updated with 60 to 80 times per second, maximum. What made the operating system, an update of the screen might be delayed by 10s of milliseconds or more.  It is certain that not all of the values at the end of the Add function will be displayed.

    Wait for him until the next ms many will wait more than 1 ms if the other code in the loop takes longer than 1 ms.  I don't know, but I think that the indicator is buffered so that any delay by the operating system to update the display should not slow down the loop. I tried to remove the flag, and it doesn't seem to make a big difference.

    I modified your VI to provide several indications of the performance. First of all, I added to the sequence of three-frame structure to allow synchronization of the loop. Second, I changed to a loop which runs a specified number of iterations. Thirdly, I hooked up the output of the timer until the next ms Multiple to a tunnel of autoindexing allowing a record of the time of each iteration appears in the table of ticks. I calculated the differences between successive instants and poster on a chart, so that you can see the performance.

    I didn't want to sound criticism of your use of English.  You write in English, much better than I could in your language!  What I was trying to make is that such general descriptions that ' Besides correctly ' without quantitative results or evidence in support of the application do not have enough information to help us help you.

    Lynn

  • Programming of the event with digital I/o

    A Structure of the event can be used with digital I/o?  All the examples I've seen show the Structure of the event used with the keyboard or the mouse.  But have not found many examples showing the Structure of event used with digital input.  I'm mainly looking for a link to an example. But you can provide any help will be appreciated.

    Howard.

    Yes, you can register events DAQmx.  Look in the IO position-> data DAQmx-> Advanced-> palette of events acquisition DAQmx to start, or search for events DAQmx.  All DAQmx devices support events of change detection, which is probably what you want if you have the digital I/o, in order to verify that it is supported by your device.

  • How to count the page that is provided on page element

    How to count the page that is provided on page element

    Hi durgeshj41842015,

    the kDocBoss has an IPageList interface with GetPageCount() function.

    Markus

  • How to take the last 7 digits of a varchar column

    How to take the last 7 digits of a varchar2 colum

    COL1

    12345678

    12345

    1234567890123

    1234567

    Out put should be as below

    COL1

    2345678

    12345

    7890123

    1234567

    everything built in function or in any other way please

    Hello

    assuming that the entry contains only numbers, as in the example, the addition of 7 spaces to the left and selecting the 7 last characters toured:

    with dataset as

    (select col1 from column_value

    table

    (dbmsoutput_linesarray

    ("12345678"

    '12345 '.

    '1234567890123'

    "1234567".

    )

    )

    )

    Select col1

    , substr (lpad (", 7,' ') | col1-7) col1_last7

    of the dataset

    /

    COL1 COL1_LAST7

    -------------------- --------------------

    12345678 2345678

    12345 12345

    1234567890123 7890123

    1234567 1234567

    Rob

  • How to count the number of elements in a data block

    Hi all
    How to count the number of elements in a particular data block oracle Forms 10g.
    If it's a text_item or the display_item or the list_item etc is there any method to do this.

    Please answer...

    get the first element with GET_BLCOK_PROPERTY(..., FIRST_ITEM);
    loop until GET_ITEM_PROPERTY(..., NEXTITEM) is null
    count on in the loop.

  • How to make the transition to digital in 10g

    Hi all


    We have 10g database of primary and standby, I have never worked before sleep, customer wants me start switch, can you please let me know how to make the transition to digital in 10g.


    Thank you very much.

    It's the way I'm following passage in the
    ------------------------------------------------------------

    (1) check that there is no active users connected to databases.
    (2) select message from v$ dataguard_status;
    (3) select protection_mode from database v$.

    Step 1 check if it is possible to perform a failover.

    SQL > select database_role, db_unique_name, SWITCHOVER_STATUS, v database name $;

    DATABASE_ROLE DB_UNIQUE_NAME SWITCHOVER_STATUS NAME
    ---------------- ------------------------------ -------------------- ---------
    PRIMARY OFMSREGT_SIM UNAUTHORIZED OFMSREGT

    SQL >

    If you get NO allow status for SWITCHOVER_STATUS, verify that the standby database is connectivity.

    If the SWITCHOVER_STATUS column displays ACTIVE SESSIONS, you can successfully achieve a failover by adding the WITH clause LOGOFF to the statement ALTER DATABASE COMMETTRE through PHYSICAL standby

    Step 2 open the passage on the primary database.

    SQL > SHUTDOWN IMMEDIATE;
    SQL > STARTUP MOUNT;
    SQL > ALTER DATABASE COMMIT TO SWITCH STANDBY MODE PHYSICAL;

    Step 4, check the transition state in the view V$ DATABASE.

    SQL > SELECT SWITCHOVER_STATUS FROM V$ DATABASE;
    SWITCHOVER_STATUS
    -----------------
    TO_PRIMARY
    1 selected line

    Step 5 place yourself in the role of physical standby database target the main role.

    You can switch a standby database physical role ensures the primary role
    When the standby database instance is mounted mode redo apply or open
    for read-only access

    SQL > ALTER DATABASE COMMIT AT THE GRADE CROSSING;

    Step 6 complete the transition of the database ensures the main role.

    If the physical standby database has not been opened in read-only mode since the
    the last time it was started, run the SQL ALTER DATABASE OPEN to open
    the new primary database:

    SQL > ALTER DATABASE OPEN;

    If the physical database was opened read only since the last
    time it was launched, you must close the database waiting for target and restart:

    SQL > SHUTDOWN IMMEDIATE;
    SQL > STARTUP;

    Note: There is no need to close and restart other bases before (not involved in the digital switchover) who are online at the time of the failover. These databases on hold will continue to
    function normally once the failover is completed.

    Step 7 if necessary, restart log apply services on standby databases.
    He must deliver the command FRO repeat apply as:
    SQL > change database recovery managed standby database disconnect from the session.
    or
    And stop repeating applies to give
    SQL > alter database recover managed standby database cancel;

    Step 3 Shut down and restart the former primary instance.

    SQL > SELECT OPEN_MODE FROM V$ DATABASE;

    Step 9 check the synchronization between the primary and standby:

    Primary
    SQL > select thread #, max(sequence#) in v$ archived_log where archived = 'YES' group by thread #;

    Sleep mode
    SQL > select thread #, max(sequence#) in v$ archived_log in case of application = 'YES' group by thread #;

    Stop the former primary instance and restart and mount the database:

    Sense of SWITCHOVER_STATUS
    --------------------------------------------
    The column SWITCHOVER_STATUS of v$ database can have the following values:

    NOT ALLOWED - this is a database of pending and the primary database has
    not been first switched, or it's a back-end database and there is no data pending.

    ACTIVE SESSIONS - indicates that there are active sessions of SQL attached to
    the primary database or emergency that must be disconnected before the
    failover operation is allowed.

    Transition to THE PENDING - this is a database of relief and the primary database
    application of the digital switchover has been received but untreated.

    LATENT pass - the digital switchover has been waiting mode, but has not completed
    and I went back to the primary database.

    Primary SCHOOL - this is a database of pending, any sessions active, i.e.
    allows to switch to a primary database.

    In STANDBY mode - this is a primary database, any sessions active, i.e.
    allows to switch to a standby database.

    RECOVERY NEEDED - this is a database of pending that has not received the
    application of the digital switchover.

  • How to play the song with .wma extension

    How to play the song with .wma extension

    If it does not DRM, use VLC. If so, no Mac OS X software can play or convert.

    (142864)

  • How to fix the error with the code: 0xe7210001 failed to load powrprof, object: cls

    Hello

    Dose anyone know how to fix the error with the code: 0xe7210001, message: unable to load powrprof, object: CLSD-no-it is found;
    OR: Fingerprintsoftware OR error: replicas THotkey.exe message window and the computer freezes

    Maleware scanned and virus, also in safe mode, found no infection, reinstalled driver fingerprint, but nothing has changed.

    grateful for the help!

    Hello

    > message: unable to load powrprof, object: CLSD-no-it is found;
    In my view, this would mean that there is a problem with Toshiba Power Saver
    What laptop Toshiba, you have exactly?

    Maybe reinstall Power Saver could help. You can find it on the official website of Toshiba.

  • How to have the sidebar with thumbnails by default in the application preview? Whenever I open a PDF file, there is no sidebar.

    How to have the sidebar with thumbnails by default in the application preview?

    I'm on OSX El Capitan 10.11.3 on iMac, and whenever I open a PDF file, there is no sidebar. I have to every time click on the Sidebar icon, then select the thumbnails. I would like to be on by default, but cannot find the option or how to edit the plist file...

    If the thumbnails is checked in the menu 'View' preview, it should always open a PDF file with the open sidebar. Unless of course, it's a single page PDF.

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

Maybe you are looking for

  • 1

    1

  • Problems with ping and 56 k modem about half current speed.

    I have a few questions. I've switched & my internal modem says it's 56 k. I know that I won't get a full 56 k, but I'm only running at about 26 k. Why what can I do about it? Additionally, every time that I ping ALL websight, it always comes back wit

  • Exit Safe Mode and return to normal operation setting

    I tried using the F8 key repeatedly. Safe mode will not change to the normal selection there. I can't connect to the internet in this w/o Safe Mode select one that includes the installation of drivers. I tried the system restore and any suggestions o

  • How to change my location in Windows?

    My computer, or possibly Windows, seem to think that I am located in Federal Way, WA.  I guess it was sort of a parameter by default when I bought the laptop.  I am not, however, and I would like to know how to change it to my hometown.

  • recharge the laptop battery via USB

    I'm going to take a long flight (10 hours) and want to use my 2 want my eReader than him. Is it is possible to recharge the battery using a USB cable?