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

Similar Messages

  • 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.

  • 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 Register Level Initialization

    I am trying to program a PXI-6602 using Registry Level Programming.
    It is hooked up to a BNC-2121 so I can check activity.
    I would like to know how to
       1. Configure the DIO_! through DIO7 as Outputs. The manual says to write registers BAR1 Offset 0x77C and 0x780 with 0x02020202.
           This seems to work.
        2.

    I am trying to program a PXI-6602 using Registry Level Programming.
    It is hooked up to a BNC-2121 so I can check activity.
    I would like to know how to
       1. Configure the DIO_! through DIO7 as Outputs. The manual says to write registers BAR1 Offset 0x77C and 0x780 with 0x02020202.
           This seems to work.
        OOps - I got shipped out
       2.  When I try to Write to the published IO Registers the unit doesn't write to the outputs.
            This board works fine using MAX, so I know it is pilot error.

  • PXI 6602 - Retriggerable Finite Pulse Train Generation

    Hi,
    I have a VI in LV7.1 where I configure PXI 6602 to generate finite pulses whenever a trigger is received. And the Retriggerable Property is set to TRUE. I look for the task to complete in order to proceed with the other operations.. This actually works. As soon as the pulses are generated DAQmx Task Done becomes TRUE.
    The same VI I upgraded to LV 2011but this time the 'DAQmx Task Done?' never becomes TRUE even after the trigger is received and pulses are generated. 
    Does anyone know if the 'DAQmx Task Done?' functionality is changed in higher version of LabVIEW so that it no more works as it was in LV 7.1?
    Is yes, then do you know what property to use to know that the operation is done?
    Any help is highly appreciated.
    Thanks.

    CORRECTION TO PREVIOUS POSTING THERE WAS AN ERROR IN HOW I DESCRIBED THE PROBLEM:
    I have a problem using a retriggerable finite pulse train as in the NI example Retriggerable_Finite_Pulse_Train. I use ACTOUT to gate the first re-triggerable pulse control and the second pulse control generates the continuous pulse train which is gated by the first retriggerable pulse control. The ACTOUT signal is generated by an AI control which senses a crank trigger (Hall Sensor). The re-triggerable pulse train is used to modulate a fuel injector in sync with ignition timing and RPM.  If the period of the ACTOUT signal changes due to a change in RPM, the pulse train is recalculated. It works OK with one hitch. Even at constant RPM, after about 15 re-triggerer pulse trains the final pulse of the train does not complete. This leaves the signal high in-between successive re-triggerer pulse trains. This incorrect high signal between re-triggerer pulse trains means that the fuel injector is incorrectly left on in-between pulse trains. This incorrect high signal goes on for about 10 pulse train events and then returns to normal. This pattern repeats. I use the ActualPeriod of the second control's continuous pulse train to ensure the pulse train ends correctly within window of the first re-triggerable pulse. This work but with time this pulse train seem to shift slightly. Is there another way to create a different type of re-triggerable pulse train that overcomes this problem?

  • 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.

  • Comment mesurer un fréqunce avec une carte pxi-6602?

     Bonjour,
    Je cherche grâce à une carte PXI 6602 à mesurer la fréquence d'une signal périodique.
    Cette carte possèdent 8 compteur/timer, et je suis déja parvenu à genérer des trains d'impulsion sur ces compteurs.
    Néanmoins je ne parviens pas à mesurer des fréquences...
    Pour cela j'ai tenté de mesurer la fréquence d'un simple signal carré de 50Hz (amplitude 10V) généré par un GBF. J'injecte ce signal sur le PFI38/GATE0 du compteur 0, mais j'obtiens apres génération de mon code une fréquence nulle. J'ai réalisé ce code sur labVIEW 8.6 avec la fonction "Measure Pulse Width or Period.vi"   (code en pièce jointe)
    Merci d'avance pour votre aide
    Pièces jointes :
    mesure_freq.jpg ‏515 KB

    Desole, je ne parle pas francais bien. Vous devriez avoir des exemples pour l'usage du dispositif de l'E-serie DAQ en Visual Basic dans le repertoire \Program Files\National Instruments\NI-DAQ\Examples.
    Chris Matthews
    National Instruments

  • PXI-6602 is not detected by M&A

    Hello,
    I have a PXI-1033 (integrated MXIe card) chassis with a PXI-6602 module installed in it.
    Measurement & Automation Explorer shows only PXI System (Undifined), please see attached file (1.jpg). In the list "Identify as" I can not see NI-1033 controller. Before that I have installed software form "NI PXI Platform Service". When I choose NI-1033 controller from CD the message "could not import controller information" is appeared, when I choose any other controller, Measurement & Automation Explorer shows "chassis" which I can identify as PXI-1033. But there is no possibility to detect PXI-6602 card by Measurement & Automation Explorer.
    System information: Win XP, LabView 8.5.1,NIDAQ922f0 drivers are installed.
    So, the questions:
    1. Why there is no DAQmx branch in Measurement & Automation Explorer tree with PXI-6602 card? 
    2. How can I test my PXI-6602 card (it absolutely new, but...)?
    3. How it is possible to install correct controller for PXI-1033 chassis?
    Thank you.
    Attachments:
    1.jpg ‏141 KB

    Hello,
    the problem discussed in the previous message was fixed and here is the solution:
    After additional investigation it was found that the issue is with "This device cannot find enough free resources that it can use. If you want to use this device, you will need to disable one of the other devices on this system. (Code 12)". This topic was discussed (http://digital.ni.com/public.nsf/allkb/04C12CB4A5143ECC862572DC007B8DF6). But it did not help. I updated the BIOS in my Laptop (Dell Vostro 3300) from A05 to A09 version. But it did not help again.
    After that I found a "MSI-Express BIOS Compatibility Software". Installation this software fixed the problem.
    Hope this information will be helpful.

  • 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

  • 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

  • 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

  • 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

  • Periodic spikes - BNC 2121

    Hi, I'm using a BNC 2121 to do event counting.
    I used the example for counting provided by NI. The only difference is that I plot the difference between current count and previous count as the loop updates.
    By varying the loop update speed (the wait for next millisecond multiple) I vary the noise and this will also depend on the source I am counting which is fine.
    My problem is that as the millisecond multiple goes small (2ms) I start to get periodic spikes which are much larger than the noise. If I go to 1ms the average completely moves to the top of the spikes which were at 2ms.
    Does anyone know why this would happen? Is there some kind of limit in either labview or the BNC 2121 to how often a counter value can be updated? 
    This might be difficult to grasp or I am not making it clear I'll probably post some pics later. 

    Results and block diagram.
    The results show images with segments of varying update time.

  • 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

Maybe you are looking for

  • Mouse-Over, Focus, URL Links on Web pages ..all quite odd in last two days

    And I have no suspicions about why. For example, it used to be that headlines on google news changed the cursor when I passed over them .... and .. that URL was listed at base of a browser. It used to be that if I selected a pull-down menu that had s

  • T-code FB03 :Cleared items

    Hi All, T-code FB03 displays document for a journal/ accounting. User says Baseline date field on the screen (display document: Line item xx)for cleared items should be allowed to change by the user. Currently this field is not allowed to change by t

  • Oracle Reports : Run time error when there is a call to DBMS_LOB package

    I am facing a strange issue, please do share if you have some inputs. When I try running the compiled RDF report(Generating XML to be specific), Oracle Reports Builder crashes when I make use of the following formula function. Strangely, this works f

  • Ipod wont charge or connect

    My 8gb Ipod Touch 2g shut off due to low battery, but when i plug it into my mac, it shows the low battery symbol with a lightning bolt and then the apple startup symbol, then shut off, and then repeats the same pattern over and over. the ipod will n

  • Change default folders in contacts and add a contact!?

    Hi! I can create a "newFolder" under contacts so far so good :-) I can read the Folders with  get "Folders".... so i become all Folders under contacts... Now i will write in my "newFolder" a new contact... But i can only write in the Default Folder..