PXI 6602 shared DIO Counter lines

Hi,
I have a question regarding the PXI-6602. From the manual I see that some of its PFI channels are shared. If I wanted to use a counter to generate a timed pulse. Can I use the associated gate and source PFI as digital output lines without affecting the counter?
Here's a concrete example: Let's say I'm using the counter 7 to generate a timed pulse on PFI 8 which is the CTR OUT. Can I simultaneously use PFI 10, which is listed in the manual as having possible signals CTR 7 Gate and P0.10, as a digital output? Can I simultaneously use PFI 11, which is listed in the manual as having possible signals CTR 7 Source and P0.11, as a digital output?
Thank you!

Hi,
Take a look at this example related to routing counter signals through the RTSI lines.
http://www.ni.com/example/27109/en/
Reference Table:
http://zone.ni.com/reference/en-XX/help/370466W-01/mxdevconsid/tiosigconcounters/
Luis S
Application Engineer
National Instruments

Similar Messages

  • Regarding NI PXI-6602 - How to route PFI_33 to a grounded DIO Line.

    The PXI-6602 card with the TIO chip seems to be very robust on counter and DIO pin assignments and routing, but I have found that counter 1 has a pin (PFI_33 -AUX IN (UP/DOWN) ) that has been troublesome.  I need to either route this pin to another pin such as a DIO pin set as an output and pulled LOW or be able to manipulate the pin to a low state when I setup counter 1.  This is to ensure that noise is kept to a minimum due to the PXI-6602 being cabled to a board with a PLD on it.  Any solutions on how to tie PFI_33 low?
    -Tim

    B Spears,
    Looks like I'm heading down that path... We were looking to do it in software, but nothing has come to light.  Interesting enough, DAQmx has a good sub-vi (DAQmx Connect Terminals.vi) but I am dealing with code back from LABView 5 days utilizing Traditional DAQ.  Try writing a snipet utilizing both "Write to DIO.vi" and "DAQmx Connect Terminals.vi" and watch the error codes fly. 
    One option NI has offered was to re-write the DIO tasking in DAQmx instead of traditional... this maybe an option... but, wow!  That's a lot of code.
    Thanks for the reply B Spears,
    -Tim

  • WANTED: NI PXI-6602 counter/timer

    I'm looking to buy a used NI PXI-6602 counter/timer board. Got one?

    "Zvezdana S." wrote in message
    news:[email protected]..
    > Hugh,
    > To possibly obtain an used board from National Instruments, you should
    > contact your regional Internal Sales Representative (ISR) for possible
    > used boards. If you are not sure who your ISR is, generate a service
    > request at:
    I never knew NI had an SRQ line we could pull.
    Craig Graham
    Physicist/Labview Programmer
    Lancaster University, UK

  • RPM Measurement using Quadrature Encoder and PXI 6602 counter

    Hi,
    I am on a project at work where I need to verify the speed (in RPM) of an unloaded motor which can operate up to 1400 rpm.  After doing some research, i determined that a quadrature encoder could be used to make the measurement.  I am looking at this encoder  http://sine.ni.com/nips/cds/view/p/lang/en/nid/205321.
    I have a PXI 6602 counter/timer module in which I would like to interface to the quadrature encoder.  I would like to create a VI that allows me to calculate the speed using the encoder.  Can someone provide me with details of what needs to be in the VI or an example which can do this?  At the most basic level, i want to calculate the speed on demand.  After doing this, i would like to figure out how to quickly calculate the speed so that i can determine response time of the speed changing within sub-millisecond resolution (1 ms resolution max).
    Further, i created a VI that allows me to change the pulse width of a 100 Hz pulse train at run-time which tells the motor controller the desired speed.  I would like to be able to use this VI to change the speed of the motor and the first VI (that I am seeking help about) to calculate the response time (time between the initial speed and settling at the new setpoint).
    I am familiar with the NI example finder, but have not been able to find an example that I can use.
    Thanks,
    Gary

    Hey Gary,
    I think for you setup, you should try using the Meas Dig Frequency - Low Freq 1 ctr. You can find it by searching example finder with 'low freq'. This vi tells you the frequency of a digital signal by sampling between two pulses and inverting the time between pulses. If you hook up your encoder to a counter and have that counter specified in the vi, it will be able to give you on demand readings of frequency (you can do some multiplication to get the rpm value, freq*60/pulses per revolution of encoder). A simple way to take continuous readings is to put a while loop around the daqmx read and the data output of the read. You can also replace the numeric indicator to a waveform chart to graphically display the change of frequency or rpm readings over time.
    You should be able to integrate this as two separate tasks with the pulse train vi you created earlier.
    Hope this helps
    Luke W

  • Routing signals PXI-6602

    I'm trying to route a single input to more than one counter.  I've been wading through the routing signals options with no success.  I have a PXI-6602 and using LabView 8.20.  I have a single input that I want to measure the period and pulse width on.  Hooking up multiple external lines is an option, but I'm converting from fiber to the input so it would be much easier to route the signals internally.
    My 6602 is Dev1.  I can't seem to nail down how to use the route signals vi.  I've looked at some examples with no more clarity.  What's the easiest way to accomplish this task internally and is there a simple clear example?

    I would wire to the PFI pins associated with the Gate input of either Ctr0 or Ctr1.  These PFI pins are *not* shared with DIO functions so there's no chance of conflict with future DIO usage.
    Both period and pulse width measurements should allow you to successfully specify any of the Gate input PFI pins as the signal source.  You shouldn't need to call any explicit signal routing functions if you're using DAQmx -- it handles most stuff auto-magically.
    Another option may be to configure for semi-period measurement.  Depending on the polarity setting, the pulse widths will be either the even or the odd values in the measurement data.  The periods will simply be the sum of adjacent pairs of values, though you may need to ignore the very first value in a buffered measurement -- it represents the (meaningless) time from starting the task until the first active edge.
    Sorry, not at a LV machine to create & post an example...
    -Kevin P.

  • PXI 6602 +BNC-2121 +LabView 7.0

    Hello,
    I am using a PXI 6602 with BNC-2121 Connector Accessory and LabView 7.1 to measure a time in a cams programmer (it is composed by a motor, cams, microswitches. The cams rotate and commutate the microswitch state). I need to use all eight counter but for the moment I set up the program with only one counter ( only one cam). When the measure start I need to count the seconds until the microswitch commutate. In a complete rotation of the cam the microswitch can commutate more times and I need to measure every operation (see Figure 1) and I want to save every time (ti) in a matrix because in a second time I would create a output plot. There is a difficult in this measure: when the microswitch commutate there are a rebound problem. The rebound time (Tr in Figure 2) in negligible respect the cams programmer tolerance and I want eliminate it from my measure. Can Somebody help me to write the program, I am new in LabView world.
    Thank you
    Luca
    Attachments:
    Figure.jpg ‏26 KB

    Hi AlessioD,
    I understand that this is an old post, but I'm also interested in using
    buffered event counting with all the 8 counters of PXI-6624. Is it
    possible to do this and will there be any DMA issues. Do I need to use
    some sort of interrupt for counting? Also the link that you send no
    longer seems to be valid. I would love to read the document that you
    are referring to.
    Actually i'm more concerned because my application requires me to sync
    all the 8 counters of 6624 with 4472( I will be sharing the
    oversampling clock of 4472 with the counters).
    Thanks
    Kallis
    Have a nice day!!!
    LabVIEW | LabWindows/CVI | TestStand
    Certified LabVIEW Architect

  • Filter pxi-6602 LabVIEW DAQ-mx

    Hi,
    I have a PXI-6602 card.
    The signal to measure is on the gate pin.
    On the source pin, it is the internal 20MHz.
    The counter uses the ND_BUFFERED_EVENT_CNT mode.
    I have a LabWindows code with NI driver DAQ for this card which uses filter with this function <<< Line_Change_Attribute( device number, line name, ND_LINE_FILTER, ND_5_MICROSECONDS) >>>
    I must rewrite the code to LabVIEW with NI driver DAQ-mx.
    I use the counter to count edge mode.
    I don't know how to configure the same filter in LabVIEW with DAQ-mx.
    Can you help me ?
    thanks
    best regards

    Assuming you're using the external signal as a "sample clock" in your edge count task, you would enable the filter like this (called before starting the task):
    There are other ways to configure what is essentially the same thing though--if you're using the external signal as something other than a sample clock (e.g. a "pause trigger") then there would be a different property that you would need to set instead.
    Best Regards,
    John Passiak

  • PXI 6602 interrupts

    I cannot configure a PXI-6602 counter to use Interrupts"
    "I am trying to collect data on 4 channels. Each channel uses a counter of the NI-DAQ PXI-6602.
    For the first three channels I use DMA by default.
    I have added this line of code for the fourth channel which uses counter 3, before I PREPARE & ARM this counter:
    Set_DAQ_Device_Info (device,
    ND_DATA_XFER_MODE_GPCTR3,
    ND_INTERRUPTS);
    but I always become a SetupError (-10600)
    I've tried several different things, also:
    GPCTR_Change_Parameter(device, ND_TRANSFER_MODE, ND_INTERRUPTS);
    but it does not work.
    I am obviously not setting the last channel to use interrupts correctly. Am I supposed to do something else besides Set_Device_Info? Is ND_PROGRAM initializing
    the counter back to use DMA?
    Any help?

    There is a KnowledgeBase Entry that discusses the problem:
    http://digital.ni.com/public.nsf/websearch/540B236C81310B6F862569B5007D5DDC?OpenDocument
    So I would recommend to download and install the latest NI-DAQ driver. After that it should work.

  • Route signal from pxi 6602 to RTSI

    Hi,
    I have a problem to export pulse from pxi 6602 to RTSI0. The code is simple as follows:
    DAQmxCreateTask("",&taskHandle);
      DAQmxCreateAOVoltageChan(taskHandle,"AO/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL);
      DAQmxCreateAOVoltageChan(taskHandle,"AO/ao1","",-10.0,10.0,DAQmx_Val_Volts,NULL);
      DAQmxCfgSampClkTiming(taskHandle,NULL,1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,2);
      DAQmxCfgDigEdgeStartTrig (taskHandle, "RTSI0", DAQmx_Val_Rising );
      DAQmxWriteAnalogF64(taskHandle,2,0,10.0,DAQmx_Val_GroupByChannel,out,NULL,NULL);
      DAQmxCreateTask ("", &countHandle0);
      DAQmxCreateCOPulseChanTime(countHandle0,"TimingIO/ctr0","",
       DAQmx_Val_Seconds,DAQmx_Val_Low,1,0.5,1);
      err = DAQmxExportSignal (countHandle0, DAQmx_Val_StartTrigger, "RTSI0");
    //  err = DAQmxConnectTerms ("TimingIO/Ctr0Gate", "RTSI0",DAQmx_Val_DoNotInvertPolarity );
      DAQmxStartTask(taskHandle);
      DAQmxStartTask (countHandle0);
    the lines at DAQmxExportSignal(..) and DAQmxConnectTerms(..) both generate big negative number, I spent hours and no answer. In fact I have to use the counter to trigger other boards in my project, I plan to use the route signals a lot.
    Sincerely,
    Taishan

    Hello Taishan,
    Thanks for contacting National Instruments. 
    When you are using DAQmx with a PXI system, much of the signal routing can be handled implicitly by the driver.  From your code, it appears that you want to use a counter output to start an analog output task.  Please let me know if this assumption is incorrect. 
    When used while configuring your analog output task, the following function will cause the internal output of Counter0 to be routed automatically over the PXI backplane to the analog output device.  I have assumed that your PXI-6602 is in slot 2 of the PXI chassis. 
    DAQmxCfgDigEdgeStartTrig (AnalogOutputTaskHandle, "/PXI1Slot2/Ctr0InternalOutput", DAQmx_Val_Rising);  
    The tutorials Getting Started with NI-DAQmx and Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications are great starting points for programming with the DAQmx API.  Since you are using C, Using NI-DAQmx in Text Based Programming Environments, is a great starting point for comparing the LabVIEW API to the C API for DAQmx. 
    Please post back if you have any questions. 
    Regards,
    Browning G
    FlexRIO R&D

  • How can i find out the resolution and accuracy of PXI-6602 module?

    I have a 32 bit  8 channel PXI-6602 counter module.  PXI card is interfaced to PC with MXI-4 link. How can i find out the resolution and accuracy of this system.What is the maximum accuracy and resolution i will get from this system. Because optical signal to cmos conversion signal is given as a input to the counter.

    Hi chandhu,
    Were you referring to the accuracy of the count register or the timing clock? 
    PXI-6602 specifications can be found in the NI 660x Specifications.  The resolution of the count register is, as you’ve noted, 32 bits.  This corresponds to a maximum count value of 4,294,967,295.  As long as all of the edges are in accordance with TTL specifications, the accuracy of the count register is 100%.
    On the other hand, the PXI-6602 baseclock accuracy takes on the baseclock accuracy of the PXI CLK 10 signal.  Again, this is all found in the specifications.
    You may also want to check out the NI 660x User Manual – it contains a lot of details on the operation of these counter/timer devices.
    I hope this helps.  Please post back if you have further questions.
    Ed W.
    Applications Engineer
    National Instruments

  • PXI 6602 and encoder reading with two counters

    I'm reading three encoders with 2000 pulses for each revolution with a PXI 6602. As the loads are connected to the motors through a transmission ratio of 200 I need to count both the encoder pulses in each revolution and the number of revolutions.
    I think I could use one counter, with the standard connections, to count the number of pulses in each revolution and another counter, with the source connected to the Z index signal and the up/down connected to the B channel, to count the number of revolutions.
    Does somebody know if there is a simpler solution or a solution that needs only one counter?
    Thanks

    You can do this with one counter. Since you know the relationship between counts and revs (2000:1), you don't really have to count the index pulse separately. Just take the total count and divide by by the counts per rev. The quotient is the number of revs and the remainder is the position within a particular revolution. Make sure to turn off Z indexing with Counter Set Attribute (attribute 20), so that the counter does not reset each revolution.
    Take a look at the NI-DAQ shipping examples in LabVIEW 6.1\examples\daq\counter\ni-tio.llb or at the example linked below. Just add the division operation to get the number of revs.
    http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/8bebc7cce0aa65f686256866005e411b?OpenDocument
    This
    seems like a fairly simple solution. Please let me know if I have misunderstood the question.
    Good luck,
    Brent R.
    Applications Engineer
    National Instruments

  • Timed digital IO in PXI-6602

    Dear All,
            I have PXI-6602 timer card. In which i have 8 timer IO and 32 Digital IO. In my application i need timer tick or counter on which i have to change my 32 digital IO state.
            I mean to say that if timer tick is 100, i have to make high on D0
                                         at timer tick 250, i have to make D0 low and D1 high.
                                         at timer tick 500, i have to make D0 hign and D2 high etc......
    means i want to use one timer, use timer interrupt at each timer tick and in software at particular timer tick i have to do start heate, then after give chemical......
    Thanks
    --Vishnu

    Hi Andreu,
    the best way to analyze your question is to post a short example on the programming language that you´re using in order to investigate a little bit.
    Moreover, under NI Find Examples of LabVIEW (if you programm with LabVIEW), you can find several examples how you can programm your digital port about (you can type "Write" or "digital" under Search tab).
    One example would be: "Write Dig Chan-Int Clk-Dig Start.vi".
    Regards
    Diego M.

  • Pxi 6602 pulse generation

    Hi i am new user and i got pxi 6602 iwant to generate a 5 khz 3.5ms 2.5 amplitude and 2.5 offset i probably need to use 2 counters can someone tell me which wires i need to connect on scb 68 device and how ican write this program?
    Thanks for helping me
    Solved!
    Go to Solution.

    Did you read the specs before buying the device? You can't use any counter, let alone two. The device has TTL compatible signals so no amplitude or offset control. A card with timed analog output would work.

  • Query on NI PXI 6602 Timing I/O Module

    How to configure the PXI 6602 Timing I/O module to generate frequency on 8 lines and measure the frequency using the same card?

    To me, the pinout is pretty clear so yes, the PFI lines and P1,P2 are related.
    I can't advise you whether you should get the board repaired or make do. My concern would be whatever caused the failure of P0 would also cause the failure of whatever port you moved to.
    Attachments:
    pxi-6220.PNG ‏36 KB

  • PXI 6602 pulsewidth timing?

    Using the PXI-6602 with LabView 8.5, is there anyway to get the time of when a pulse occurs?  Continuous pulsewidth reading is good, but just need time info also.  Essentially we need the function of cont. digital read, which we do on the PXI 6123, but we might run out of channels on that. 
    Thanks.

    Hi Beck,
    I would still recommend a period measurement if you are looking for times between rising edges. See the screenshot below from the NI-DAQmx Help which shoes the differences between these counter measurements.
    You can then add the period between rising edges from each subsequent an initial timestamp to get the timestamp of when that pulse occurred. This can then be complied into an array which can be written to a file.
    Regards,
    Kent
    Applications Engineer NIC
    Message Edited by tnek on 12-11-2008 04:56 PM
    Digital Multimeter Home
    Attachments:
    periodmeasure.png ‏6 KB

Maybe you are looking for

  • Transfer an Email from one account to another and ...

    Dear Team, I joined BT recently this month and I have a btinternet Email for more than 5 years when i was living with my brother. Now I want to tranfer my email from my brothers account to my account and make it my primary email. I called 3 times the

  • Setting up .properties file

    Hello I would like to know if theres any particular rules for setting up the .properties file. Like in my application i have four *.properties files 1)log4j.properties 2) mapping.properties and so on the mapping.properties file have jsps mapping..so

  • Permitted payee in Vendor master

    Hi Experts, I have created a Vendor master with a Permitted payee in the General--Payment transactions.  I know this is at a general level. The permitted payee is also defined in the same company code. When I go into FB60 and look for "Payee" , it sa

  • Newbie: trouble creating an eventlister

    actionscript 2.0 This code below gives this compile error: The class or interface 'MouseEvent' could not be loaded. function btnTest_Click(eventObject:MouseEvent) trace("Test"); btnTest.addEventListener(MouseEvent.CLICK,btnTest_Click); any suggestion

  • Need a developer to work with me - FMS/Flex/RTMFP/RTMP etc.

    Hi, I already own a video chat website that uses strictly Stratus (RTMFP), as you may already know, the connections between the peers are not always stable, as in people don't always connect to each others. From my past programmer's opinion, it was b