PXI-6123 counter connections

Good afternoon.
As a labview novice, I apologize in advance for any poor communication on my part.  But, after scouring the discussion boards for a day and a half, I thought it time to post my situation.  Thanks in advance for any help/discussion.
Hardware:  PXI-6123
The setup:
Coming from an encoder on an electric motor I have 6 wires that carry 3 signals.
1)  A and A_not
2)  B and B_not
3)  Z and Z_not
The potential across A and A_not is a square-wave of +/- 10V who's period ocurrs 1024 times per motor revolution.
The potential across B and B_not is also +/- 10V and it's 90 degrees out of phase with the A signal
The potential across Z and Z_not is at -10V for the majority of the motor's rotation, but sends a +10V square signal briefly once per motor rotation.
(i.e. pretty standard encoder signal)
Problem:  I'd like to use the counter to process (RPM, angular position, etc.) these signals, but they are not in a TTL format.  The best I can do at the moment uses an external ground as a reference, such that the A signal moves +/- 5V relative to this ground.
The PXI-6123 card specs call for a 0-to-5V signal for its counters, and I'm worried that the -5V will damage the card.
I understand that I could bring in these square waves at analog signals, convert them to digital, and then use the counter to process the digital.  Is this the way to go?  The sampling rate associated with this conversion would have to be relatively fast in order to resolve the square waves, could this sampling/conversion process work separately from the sampling and recording of the other analog inputs?  I am recording 5 other analog inputs while the motor is rotating, and it would be undesirable to have to record these signals as very high rates.
So in summary, the big picture is:
-I have a +/- 5 V encoder signal from which I'd like to record the angular position of a motor.
-recording this angular position, in conjunction with other analog inputs, should not have to occur at very high sampling rates
It seems inputting the encoder signals into a counter is the best option.  Expect for 1 snag: I worry the -5V bias will damage the board.
Thanks in advance!
-Mike

Hi Brendel, this is Paul with Applications Engineer at NI.
You are correct that your card only supports 0-5V aka TTL counter inputs.  Only our industrial cards support the higher voltages.
There are a couple of ways we recommend to work around this, the first is to use a Schmitt Trigger to bring in your signal, and then convert it to the 0-5V you need.
The second is to use the analog triggering on your card to perform an analog comparison event, that I'll let the following links describe better than I can.
Explanations:
http://digital.ni.com/public.nsf/allkb/771D82A44F27A0AF86256DD0007FB9A1
http://digital.ni.com/public.nsf/allkb/39DF4F9A6F285E7986256B58006FC129
A forum post with a good discussion about it:
http://forums.ni.com/t5/Counter-Timer/Measuring-frequency-of-non-TTL-pulse-train-with-counters-on/m-...
And, some example code to look at:
http://zone.ni.com/devzone/cda/epd/p/id/2555
Let us know if you have any further questions.
Thanks,
Paul
Paul Davidson
Sound and Vibration Software Staff Product Support Engineer
National Instruments

Similar Messages

  • How to acquire analog signal and send a TTL pulse at the same time based on PXI 6123

    Hi,
    I am using a PXI-6123 data acquisition card, as the picture show in the attachment ,I want to acquire the analog signal of ai0 through reference analog window and at the same time send a TTL signal to trigger my camera. I have tried two methods, one is using the DAQmx Export signal.vi another is using DAQmx connect terminals, but when the data acquisition card acquire the analog signal, the DAQmx Export signal.vi and the DAQmx connect terminals sometime can send an TTL pulse ,sometime can not.
    I don’t know why?  or some other method that can achieve my arm is appreciated.
    Regards
    chunlei
    Attachments:
    method export signal.vi ‏21 KB
    method connect terminal.vi ‏36 KB
    Send a TTL pulse.JPG ‏288 KB

    Hi,
    Have things changed over the years?
    I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
    If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
    If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
    Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
    1. What can be done to synchronise AI with DO?
    2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
    Thanks in advance!

  • Using PXI 6251 counter to delay a trigger on PXI

    Hi at all,
    I need to synchronize some devices on an PXI chassis. Basic operation is a user waveform generation on a PXI5401 that routes the Trigger Signal for the generation to one of the PXI (RTSI) lines. I'd like to use this trigger signal to start a counter on a PXI 6251 counting the PXI 10MHz Clock. No problem so far ( at least none that I see What I need is a possibilty to set another sync signal as soon as a certain counter value is reached in order to use this signal as a delayed trigger signal. Is it possible? And how? I've taken a look at the LabVIEW Example finder, but haven't found an example yet...
    Thanks!
    Oli
    P.S. Using LabVIEW 7.1.1, NIDAQ7.4 and a PXI 1042 via MXI4
    Programming languages don't create bad code, programmers create bad code....

    Nathan,
    Thanks for your excellent solution. I'm ordering the Aux100 cable (9-Pin DIN to two BNC Female) to export the trigger signal from the PXI to the Device_2. I will test the program (Echo_Mode_PXI_5122.vi) to be sure it will be suitable for my application.
    Another problem, when my system is working on ultrasound Pulse-echo mode (Pulse_Echo_Mode_PXI_5122.vi), the input trigger must be set a delayed trigger acquisition (by setting the trigger delay to, for example 3µs) to remove the signal of power source. Could you please tell me how I can configure the digitizer in this case?
    Regards,
    John C.
    Attachments:
    Echo_Mode_PXI_5122.vi ‏49 KB
    Pulse_Echo_Mode_PXI_5122.vi ‏49 KB

  • 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

  • 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

  • Data counter connection active

    a noted stating "data counter connection active" keeps popping up.  what does this mean and how do i stop it?

    05-Jul-2008 07:33 PM
    omro wrote:
    Ah, you mean the red "hang up" button, not the red "power" button.
    The data connections are started by the email client connecting to check the email and not disconnecting after it checks. I wonder why it does that?
    yes, the red hang up button, so the E71 has red power button, hmmm...
    have you tried editing your General Profile to set warning tones off
    you got IMAP on?
    Message Edited by friedbrains on 05-Jul-2008 07:39 PM

  • OID count connection whit VIP Address or Content

    Hi!
    I need an OID to do count connection with "content" or "VIP Address.
    Thank's!

    OID
    1.3.6.1.4.1.2467.1.36.14.1.13.1.0 and 1.3.6.1.4.1.2467.1.36.14.1.13.1.0
    apCntsvcCntName.9.77.105.100.100.108.101.115.101.120.6.76.111.119.101.108.10
    8.7.97.110.100.111.118.101.114 (octets) Lowell
    apCntsvcCntName.9.77.105.100.100.108.101.115.101.120.6.76.111.119.101.108.10
    8.8.119.101.115.116.102.111.114.100 (octets) Lowell
    apCntsvcCntName.9.77.105.100.100.108.101.115.101.120.9.108.105.116.116.108.1
    01.116.111.110.8.119.101.115.116.102.111.114.100 (octets) littleton

  • PXI 6239 counter

    Hi,
         I have PXI-6239 card , i have many query on this card .Does this card requires any external voltage for counter input and timer output .I am not able to read timer output i have done a code for this everthing is correct eventhough i am not reading any frequency but in the multimeter it shows overloaded but i have given input as just 10 HZ. And also i have dount on digital output i have conneccted the external circuit as shown in the user manual but here also same problem that i am not reading any voltage.Could any one clarify about this

    Hello AutoTec,
    You do not need to connect an external source to your
    counter.  There are a few counter examples
    that are shipped with LabVIEW and will measure a digital frequency.  (Hardware
    Input and Output >> DAQmx >> Counter Measurements >> Digital
    Frequency >> Meas Dig Frequency-Low Freq 1Ctr.vi)  Connect your signal (10Hz signal) to the gate
    (Pin 32 or PFI 1) on the counter. 
    Pin 32 can be used for a PFI line, P0.1 digital input line
    or a counter gate line.  If you use this
    pin for your counter application, you can not use as a PFI or digital line.
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • Changing the PXI-6624 Counter Output rate on the fly

    I'm programming an application in VB.net 2005 to set several counter output channels (each with its own task) on the PXI-6624 card. I'd like to know if there is a way to change the frequency of the output without stopping the task, changing the frequency and restarting the task. I'm using the PXI-6624 card to simulate encoders and speed sensors.
    Thank you very much,
    JonS101

    Hi,
    Yes, you can change the frequency on the fly. Here is a knowledgebase that will give you an insight of how you should approach this matter. How Can I Change the Duty Cycle on My Continuous Pulse Train? To find this property node and how to use it refer to the DAQmx .NET reference: Where Can I Find NI-DAQmx Property Node Listings and Help?
    I hope it helps
    Jaime Hoffiz
    National Instruments
    Product Expert
    Digital Multimeters and LCR Meters

  • PXI-6229 counter output

    Hi,
    I was using the DAQMx test panel for PXI-6229 module with my PXI-6229  card. I couldn't find an option of routing the counter pulse generation output to different PFIs. It is locked at PFI12 for ctr0 and PFI13 to ctr1. Is there some way by which I can route to other PFIs in the test panel or do I have to write code for it.
    I want to route ctr0 output to PFI10 and route PFI12 as a counter input to measure frequency.
    Please let me know
    Thanks
    Shiladitya

    Shiladitya,
    The Test panels are designed for functional testing only, and do not necessarily expose all capabilities of the device. In order to route these signals to custom PFI lines, you would need to write code. In LabVIEW, this would be done using a DAQmx Channel Property Node. Simply wire the intended terminal to the CO.Pulse.Term property.
    Hope this helps,
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Computer does not boot when pxi 1033 is connected

    hiiiiii...........i am using NI pxi-1033 for my application & this pxi is connected to my system through PCIe-8361. i am using it from last 10 months, now suddenly my computer does not boot up. i start pxi first then start the computer but computer screen shows no signal. there is no blue screen error.
    can you give me any point to troubleshoot the problem.

    This probably doesn't help, since your setup used to work, but I have had to run the MXI Compatibility Tool on more than one PC.
    http://joule.ni.com/nidu/cds/view/p/id/3119/lang/en
    One PC would only boot one time in ten, before running the tool.

  • Chassis PXI 1044 est connecté à mon PC : le PC ne boot plus !!

    Bonjour,
    Si je met sous tension mon chassis PXI (avec des cartes 4472B)  et que je le connecte à mon PC via une liaison fibre optique : le PC bloque pendant le boot ( problème de configuration )
    Si je ne connecte pas le chassis , le PC boot mais le PC ne reconnait plus  le chassis !!
    QuiZZZ?

    Bonjour
    Cdaubol,
    Merci
    d'avoir posté sur le forum National Instruments. 
    Est-ce que si tu démarre le châssis PXI sans la carte 4472 puis tu lance
    ton PC tu observe le même comportement? Peux-tu nous indiquer les éléments de
    l'ensemble de ton système (OS, version des drivers, pont MXI...).
    Benjamin R.
    R&D Software Development Manager
    http://www.fluigent.com/

  • PXI 8252 looses connection

    In a realtime application we have the problem to loose connection to firewire compact flash. The CF is just a backup - but the whole process of data storage ist stopped occationally. The system ist running perfectly for hours - but then we have cases where we loose connection after 5 to 30 minutes, without beeing able to identify a problem. Cable connections seem to be perfect, restart may solve the problem - but not always.
    Does anybody have experiance with firewire card 8252 - or in combination with PXI 8102 (which could also be the source of the problem) - that could help to undserstand the problem?
    PXI 8252 has three firewire ports (A,B,C) - could ONE of these be a problem while the others work reliably?

    Hi, thanks for answering.
    we use bus powered connection.
    After some more local discussion I should say that we use three systems in parallel - but only one fails sometimes. The difference for the very system is that three threats are running (-> higher load) and that we use a bus extention, so there are some hardware solutions which may have some influence on the stability.
    Thanks, regards
    Volker

  • Counting connecting clients.

    Hi !
    Can anyone show me a code to assign a number to different clients connecting to a java server ? I created a server/client pair and want to track the number of clients connecting to the server. A basic code would do.
    Thanks,
    TrueFaith

    And my solution still applies.
    Every time a connection occurs you have, from the socket standpoint, a new client.
    Now perhaps you want to track connections via something else besides just connections. For example user name. Or IP address. Or some other criteria.
    Then the actual tracking method depends on the criteria. For example if you want to track via IP address, then you could use the IP address itself. Either as is, or convert it to a real number.
    On the other hand if you want to use some other criteria then the criteria (or a way to determine that) must come in the data that the socket receives. And it means you must store some sort of information somewhere. One way to do this is to create a table in a table base and use a 'key' field as the number. For each 'new' client a new entry is made. For 'old' clients they are looked up and the existing key is used. A database isn't a requirement but if you already have one it is convenient. This can be an in memory store if the information does not need be maintained if the server bounces (and the possible data set is small enough.)
    The above would also apply even if you wanted to use the IP address but you wanted to display a smaller number. (Keeping in mind of course that tracking via IP generally only works for 'real' internet addresses or fixed intranet addresses.)

  • Questions about PXI-6624 signal connections of outputs

    Attachments:
    6624.JPG ‏34 KB

    I just got off the phone with NI support, so no worries on the answers.
    Short versions:
    The unique ID's are regenerated when a sequence is copied.
    Teststand doesn't need higher versions uninstalled to reinstall an earlier copy.
     Connector Pane Checksum implies a different underlying VI, but having the same connector geometry/inputs/outputs/types should allow you to have a different VI for different installations without different sequence files.
    Still waiting to hear back from support on whether the goto pointers get updated properly when a sequence or portion of a sequence is copied.

Maybe you are looking for