Two counter inputs and counter output NI 9401

I am trying to configure two counter inputs and one counter output on one NI 9401. I have looked and found how to configure digital lines in booth directions but it seems like I can only do two counters in all on one module. Can someone verify this for me or let me know how to get all three on to one module?
Thank you

Hi mschoenwald,
The counters are actually located on the backplane of whatever chassis you are using--I'll assume you are using cDAQ and not cRIO.
If you have the older <link no longer exists>, then there are only 2 counters available in general.  You can access both from a single parallel (8 lines or less) digital module in slot 5 or 6 of the chassis.
The 2nd generation Compact DAQ chassis (including 9174, 9178, 9181, 9188, etc.) includes 4 counters.  You may access them from any slot with a parallel module.  There is no restriction preventing you from accessing all 4 simultaneously from a single module.
The 9401 is bi-directional and configurable by nibble (line0:3 may be configured one direction, and line4:7 another).  However, it is quirky in that it requires the line direction to be configured before any of the tasks are started.  This is because the data lines themselves are used to set the line direction behind the scenes.  The best way to work around the behavior is to use DAQmx Control Task to explicitly reserve your tasks before any of them are started (see here).  Keep in mind that the counter output should use the opposite nibble from the two counter input tasks.
Best Regards,
John Passiak

Similar Messages

  • Simultaneously read more than one input and generate output

    Is it possible To simultaneously read more than one input and generate outputs depending on these inputs? If this isn't possible what is the best way to go about making some sort of timed loop that will read an input, read the next input, decide whether or not to output and so on. Hope someone can help. Thanks.Message Edited by Esmith13 on 05-25-2005 01:36 PM

    Hi,
    You should look at the synchronized examples for analog input and output that can be found in the example finder under:
    Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Synchronization>>Multi-Function
    These will get you started to being able to handle multiple tasks at the same time.
    I hope this helps. Have a Great Day!
    George

  • Xbox digital audio input and then output through MacBook digital audio port

    Hi,
    Sorry if this has been asked before but I'm trying to output a Dolby Digital (I think AC3) signal from my Xbox 360 into the MacBook's digital audio input and then output it through the digital audio output. I can output 5.1 sound from the MacBook itself but I can't get the Xbox audio to pass through. I don't know if the audio is at a sample rate not supported or needs decoding or what!
    Any help would be appreciated!

    If that doesn't work, I'm not quite sure.
    A combination of the Audio MIDI Utility (in Applications/Utilities), SoundSource, LineIn, and Soundflower (http://cycling74.com/products/soundflower/) might work, otherwise I'm stumped. Your best bet is probably a dedicated external USB or FireWire audio interface.

  • Digital input and digital output at the same time

    Hi all
    I have a PCI-6503 board. I have done 2 task that run simultaneously: the first one is port0_16 output and the second one is port2 input.
    I get sometimes (not every times...this is strange...) error-200587 saying:
    'Requested operation could not be performed, because the specified digital lines are either reserved or the device is not present in NI-DAQmx.
    It is possible that these lines are reserved by another task, the device is being used through the Traditional NI-DAQ interface, or the device is being reset. You might also get the error if the specified resource is currently in use by LabVIEW network variables bound to the DAQ Channel, or if the DAQ Channel is being used in any OPC Client software.
    If you are using these lines with another task, wait for the task to complete.  If you are using the device through the Traditional NI-DAQ interface, and you want to use it with NI-DAQmx, reset (initialize) the device using the Traditional NI-DAQ interface. If you are resetting the device, wait for the reset to finish.'
    In the attached VI i have recreated the basic structure of my real VI (the error is present even here of course...).
    How can i do?
    I want to have both digital input and digital output with the same PCI-6503 every single cycle... Is it possible?
    Please help me!!!
    Kind regards.
    I love the smell of napalm in the morning
    Attachments:
    DIO simultaneously error.vi ‏31 KB

    Hello Maverick,
    Did you have any luck with the example Raven sent you?
    In Raven's example, it properly passes the DAQmx task from one SubVI to another to avoid having to open the task again. These errors are likely to occur when you have multiple DAQmx calls in a VI that call the same task again without clearing the previously opened task. If at any given time you try to open a task that already is being used, you might receive an error "resource is reserved"... similar to your original example.
    If you are interested, here is an awesome link that gives a detailed explanation of the LabVIEW dataflow paradigm
    Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
    Thanks and good luck!
    Jordan Randall
    National Instruments Italy

  • Differenct between count(0), count(1) and count(*)...???

    Hi,
    Please clarify the difference b/w count(0), count(1) and count(*)...???.
    SQL> set timing on
    SQL> select count(0) from trade
    2 /
    COUNT(0)
    112158506
    Elapsed: 00:00:03.08
    SQL> ed
    Wrote file afiedt.buf
    1* select count(1) from trade
    SQL> /
    COUNT(1)
    112158506
    Elapsed: 00:00:02.01
    SQL> ed
    Wrote file afiedt.buf
    1* select count(*) from trade
    SQL> /
    COUNT(*)
    112158506
    Elapsed: 00:00:02.03
    SQL>
    Is there any differences??
    Thanks
    SATHYA

    Looks the same to me
    admin@10gR2> create table big_table as select * from all_objects;
    Table created.
    admin@10gR2> set autotrace traceonly
    admin@10gR2> alter system flush shared_pool
      2  /
    System altered.
    admin@10gR2> select count(1) from big_table;
    Execution Plan
    Plan hash value: 599409829
    | Id  | Operation          | Name      | Rows  | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |           |     1 |   185   (2)| 00:00:03 |
    |   1 |  SORT AGGREGATE    |           |     1 |            |          |
    |   2 |   TABLE ACCESS FULL| BIG_TABLE | 72970 |   185   (2)| 00:00:03 |
    Note
       - dynamic sampling used for this statement
    Statistics
            322  recursive calls
              0  db block gets
            947  consistent gets
              0  physical reads
              0  redo size
            413  bytes sent via SQL*Net to client
            381  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
              1  rows processed
    admin@10gR2> alter system flush shared_pool
      2  /
    System altered.
    admin@10gR2> select count(*) from big_table;
    Execution Plan
    Plan hash value: 599409829
    | Id  | Operation          | Name      | Rows  | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT   |           |     1 |   185   (2)| 00:00:03 |
    |   1 |  SORT AGGREGATE    |           |     1 |            |          |
    |   2 |   TABLE ACCESS FULL| BIG_TABLE | 72970 |   185   (2)| 00:00:03 |
    Note
       - dynamic sampling used for this statement
    Statistics
            322  recursive calls
              0  db block gets
            947  consistent gets
              0  physical reads
              0  redo size
            413  bytes sent via SQL*Net to client
            381  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
              1  rows processed

  • Synchronization of analogue input and analogue output?

    Hi there,
    I have a signal synchronization problem:
    I am sending two waveforms (i.e choice between sinus square triangle etc see attached VI) to a mechanical system and then I'm reading the acquired signal from this same system (and it should be similar).
    The signal I am reading is indeed similar, however, the synchronization is not perfect. Whenever I changes the frequency of the signal the phase of the aquired signal is shiffting...
    Does anyone have an idea how I should synchronize both send and aqcuired signal?
    Many thanks,
    Best,
    Renaud
    PS: I attached the VI in question 
    Attachments:
    Galvo_Monitor_3.vi ‏43 KB

    Hi,
    As you stated, there is mechanical system inbetween, it is obvious to have delay in response. If you try the same code by direct wiring Analog Input and Output, you will observe no delay in them.
    Regards,
    DCKAN

  • 2 inputs and 1 output.

    Hi all,
    This is my first post.
    I use an arduino 1 board to read 2 (x & y) analog signals.
    I would like to command 1 pwm output on the bases of the 2 analog signals.
    The idea is create a table 3x3 in wich x and y axes are based on the values of the analog signals and the output is the pwm output.
    I have tried in several modes but no succes.
    Can someone help me?
    Thanks a lot in advance

    thanks for the reply.
    I woul like to realize a simple PWM controller. I made the same writing the SW in C and it was working, but no flexible and without a graphical interface.
    Well...
    inputs:
    Two analog signals; range  0-5V f(t).It could vary very fast in the time. I use two simple potentiometers to simulate the voltage variations.
    output:
    PWM: range 0 - 255. connected to a led.
    I woul like to have the possibility to change the PWM with a table m X n where m is related to input 1 and n is related to input 2.
    I will post the the SW tried by me as soon as possible. Now... dinner!
    thanks all and best regards!

  • Difference in analog input and analog output values

    i am using 6014 DAQ card for providing motor speed reference voltage to Driver and reading back speed
    feedback voltage using LabVIEW 6.0. For this i have used AO Single Update and AI Single scan. Both are in the same while
    loop.The loop has a Wait timer of 50ms. When i take a plot of Analog o/p and input, i get a shift
    between input and output. Why is the shift or the time not synchrnised..please help..When the while loop wait timer is 200ms instead of 50ms, the shift is not there.

    I believe the problem is 2 fold. First if you are using traditional DAQ, or DAQ 6.9.3 or before, the driver is single threaded. Therefore the 2 VIs will not run simultaneous. Try DAQmx and you may be more successful.
    The other is that you are using higher level 1 point VIs. In general they are not the best to use in a time sensitive loop. You are better off using hardware timing, rather than software timing. With hardware timing you have more control over the synchronization of the 2.

  • Difference between count(col_nm) and count(*)

    Hi i tried the following
    create table chknull (a )
    as select 1 from dual union all
    select 2 from dual union all
    select null from dual And i selected the values which are not null
    select count(*) from chknull where a is nullReturns me 1 record
    But
    select count(a) from chknull where a is nullReturns me 0 record
    Why it returns like above;
    Could you please give me the hint in this
    Thanks

    Count(<expression>) where expression is a column, a literal or a calculation, counts all non-null occurences of the expression. Since your column a is null, the count of non-null occurences of the expression is zero. Count(*) is a special case of count(<expression>) where the expression evaluates to a row. So, as long as the row exists count(*) will count it.
    Consider:
    SQL> WITH t AS (
      2     SELECT 1 id, 'A' name FROM dual UNION ALL
      3     SELECT 2, 'B'  FROM dual UNION ALL
      4     SELECT 3, null  FROM dual)
      5  SELECT count(*) star, count('Banana') literal, count(name) col,
      6         count(case when mod(id, 2) = 0 then 1 end) calulation
      7  FROM t;
          STAR    LITERAL        COL CALULATION
             3          3          2          1John

  • External mic inputs and speaker outputs for CP-7937G Conf Phone

    Has any tried to connect the Polycom® SoundStation IP Multi-Interface to the Cisco Conference Station CP-7937G Phone, it appears to be the only way to get eextra mic inputs and line level outputs for enhancing conference call?  See attached Quick Start Guide.

    Here's where I am on interfacing external mikes, PCs, speakers, etc. with the Cisco 7937. It seems this I/O port is quite a mystery to both Cisco and the manufacturer (Polycom). There are virtually no technical specs for it anywhere on line. So, I bought a variety of cables and connectors and tried exploring. I could never get anything but input into the 7937 to work. I could never get any output from it despite the output symbol next to the port. Here are the input test results:
    3 pole 2.5mm to dual stereo 3.5mm breakout cable didn't work at all
    4 pole 2.5mm to stereo 3.5mm for input worked only on one pole (red connection). Half volume?
    3 pole 2.5mm to stereo 3.5mm for input works only on white connector (louder?)
    3 pole 2.5mm to mono 3.5mm for input, works (louder?)
    2 pole 2.5mm to stereo 3.5mm for input, works
    2 pole 2.5mm to mono 3.5mm for input ,works, and is simplest.
    So, if you want to feed an external audio source into the Cisco 7937, almost any type of 2.5mm male connector cable at the 7937 will work
    I could never find any mention of successful use online, and could not find an output signal myself, so I suspect the 7937 was just mislabeled.

  • Creating seperate audio input and audio output tracks?

    I need a bit of advice on how to do this. I'm using a simple Lightsnake USB cable to hook my guitar directly into my computer, now i can record into the program but need to switch between the Unknown USB input and the built-in inputs to get sound. This has made monitoring tracks impossible and is pretty frustrating, any help would be appreciated.

    Hi Dennis
    Logic Express seems to like a single source in and out, however you can get around this by going into Audio Midi Setup (Applications -> Utilities -> Audio Midi Setup) and creating an aggregate device with which you can choose separate input and output devices. Then, simply choose the aggregate device as your audio driver when you're back in Logic.
    P.S. I assume this is still valid for LE8 as I havent got my copy yet
    Good luck and may the force be with you
    Sam

  • When using the analog inputs and analog outputs of the PCI-7344, what is the conversion between the voltage entering the card to counts? Similarly, what is the conversion between counts to voltage at the output of the card?

    I am using the PCI-7344 to control my system. The analog inputs are connected to the output of my system while the analog outputs serve as feedback to the system. The system is a servo. I want to know what is the conversion between the voltage read at the input, to card counts, and finally to the voltage output to the system.

    Carole,
    If you are trying to do analog feedback with a servo motor, Chapter 14 of the manual talks about how to set up the torque feedback. Also linked below is a LabVIEW example of analog feedback.
    Chapter 14
    NI-Motion User Manual
    Automatic Analog Feedback with FlexMotion example
    A. Talley
    National Instruments

  • I am trying to use a SC-2024-RTD DAQ board to do 3 things (monitor two sensors (input) and control a small motor (output)) simultaneously. I have not been successful using labview for output. I can't even get it to show a voltage at the output pins.

    I have it configured for voltage modulation, channel 0, and I am testing Ix0+ and Ix0-. To run it, I am right-clicking on the function and clicking "test". What's wrong?
    thanks, Alex Millie
    [email protected]

    Ix0(+/-) are make the excitation current. You can see this in figure 4-1 in the user manual. You can see the output voltage from the MIO card by looking at the voltage from terminal 23 to terminal 20 (channel 0) and terminal 23 to terminal 21 (channel 1). You can see this pinout on page 3-5 of the SC-2042-RTD user manual.

  • How to combine the analog input and analog output vi's

    Hi !
    I have a perfectly running triggered analog input acquisition vi. I have a seperate vi for analog output that's running perfectly too. Can someone tell me how to combine these two operations so that I could get a vi that does simulataneous AI and AO without missing triggers. I have tried all the different kinds of configurations suggested by NI support but nothing seems to work. Can someone help ?
    thanks,
    Shiva
    Attachments:
    dac_good.vi ‏77 KB
    adc_good_fw.vi ‏124 KB

    Shiva;
    I'm attaching a good Application Notes that shows how to synchronize multiple DAQ tasks, in Labview.
    Hope this helps.
    Filipe
    Attachments:
    Advanced_Sync_Techniques_for_DAQ.zip ‏166 KB

  • Difference between count('), count(1) and count(col name)

    Hi All,
    I want to know the difference between below
    select count(*) from table;
    vs
    select count(!) from table;
    vs
    select count(col name) from table;
    thanks,
    Nikky

    Hi, Nikky,
    Nikky wrote:
    Hi All,
    I want to know the difference between below
    select count(*) from table;
    vs
    select count(!) from table;
    COUNT (*) retruns the number of rows, regardless of what (if anything) is in them.
    If you use any literal, such as the number 1 or the string '!' instead of *, it does the same thing. Remember, string literals are enclosed in singl;e-quotes, so
    COUNT ('!') -- Inside quotesreturns the total number of rows, but
    COUNT (!) -- No quotesis an error.
    select count(col name) from table;If col is a column in the table, then
    COUNT (col)returns the number of rows where col is not NULL.
    If you want to count two different columns, such as col and name, you either have to do two separate COUNTs:
    SELECT  COUNT (col)  AS col_cnt
    ,     COUNT (name) AS name_cnt
    FROM     table_x
    ;or combine them into one expression:
    SELECT  COUNT ( NVL ( col
                        , name
               )          AS col_or_name_cnt
    FROM     table_x
    ;depending on what you neeed to do.

Maybe you are looking for

  • How to insert a flying image in a video

    How to insert flying images  in a video...someone it's speaking in the left side and in the right side some flying pictures are coming, staying for 2-3 seconds one by one....some ideas??? Like the weather forecast...you have someone in the left side

  • Hi, I forgot my pin code. What should I have to do ?

    Hi, I forgot my pin code. What should I have to do ?

  • Oracle 8 EE (CD) problem with Java & Memory

    i have thi problem. When I run installation from Oracle 8i Enterprise Edition (Release 8.1.5) just install maybe half of all database. Some problem with memory (like no free memory in computer.) But why if I have 64Megs of ram ?! Some same problems ?

  • Where can I get some easy tutorials on making two things: read on..

    I want to create a logo with a shine or light glare moving across it. I also want to do this for text. I'm making an eyewitness news logo and introduction. I'm working on a PC. I have premiere pro and AE CS4 versions.

  • Question for an owner of Zen Vision

    I'm considering buying one and I like most of the things I've read. It's now between the iPod Video and Vision M. But I have an iRi'ver and there's a major problem with the random function. It will only play from about 200 songs, all with titles at t