Ramping a pulse signal using PCI-6602 card

I'm controlling a stepper motor and need a continuous pulse output with variable frequency. I need to accelerate and decelerate teh motor (It can't start immediately at a high frequency but needs to be ramped up to it). I can't have any hiccups in the signal or the motor can stall. It seemed I had my own ramp program written (which gradually increased the frequency value sent to the counter) to solve this problem, but when I switched to Office2000 I started getting hiccups in my signal. I also have a PCI 1200 card and could use A/O but I think using the counter signals would be better. If I'm wrong let me know. Once I have the motor up to speed I am reading in a pulse signal to analyze with FFT.
thanks for y
our help.

A few thoughts & musings, hope some of them are useful:
1. The sequence for setting a new frequency should be to first load up the new pulse specs (use 1 & 2, not 3 & 4), then issue the "switch cycle" command to 'Counter Control.vi' You can look at NI's example program called 'Pulse Width Modulator' to verify syntax.
2. If your frequencies are low enough and your loop time is fast enough, you may be trying to update the pulse specs before the previous specs have completed a full cycle. This has traditionally been a no-no, though I'm not 100% sure that it remains one with the latest NI-DAQ drivers.
3. No ideas about the possible interaction with MS Windows and/or Office 2000. Haven't used either.
4. (My own latest installment in a multi-year running gripe at NI): Wh
en oh when will we be granted the ability to perform buffered counter OUTPUT operations? Just as in the analog world, one can acquire a signal with AI and then reproduce it with AO, it would be REALLY REALLY handy in the counter world to measure with buffered semi-periods and then reproduce the same pulse train with a buffered output.

Similar Messages

  • How do I take A/D samples on a falling edge of pulse Train using PCI 6024E card?

    Sampling using external triggers for A/D
    Attachments:
    DAQ_appln.doc ‏70 KB

    Hello MWallace,
    Is it triggering properly the first time? Since you have the timing VI outside of the while loop, it should only read in 4000 samples total, not 4000 each time you hit start. It is probably just reading the same data in the PC Buffer over and over, not getting new data every time. To prevent this, pull the timing VI into the while loop and clear the task every time (DAQmx Clear Task.vi).
    If it is not triggering even the first time, take a closer look at signal on the PFI line. Is it actually starting at 5 V and going down to 0 V? Instead of using a PFI line, use the same setup on a counter source line. Open a test panel in the Measurement and Automation Explorer. On the Counter I/O tab change the mode to edge counting and see if it detects the falling edge.
    Please let me know if you have any questions. Have a great day!
    Sincerely,
    Marni S.

  • How do I synchronize a pulse output to a sine wave input on a pci-6602 card?

    I have a sine wave from a function generator as the input on the source of a counter. Input frequencies vary from 2-60 kHz. I want to produce a pulse train at a different frequency (10 Hz), but in phase with the sine wave. I have only been using Labview 5.1 for a short time. I am using the PCI-6602 card with a SCB-68 connecting block.

    Hello;
    Unfortunately, you can't connect a analog sinewave to the counter source. Counters only work with digital TTL signal type. To accomplish that task, you will need a MIO board working in sync with the 6602 you already have.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • Can the PCI-6602 card be configured for 3.3 volts?

    I would like to be able to configure my pci-6602 card to output 3.3 volt signals either in software or with MAX. Can this be done?

    The 6602 uses only 5V logic for it's driven outputs, but there is a Tri-State Enable feature which drives the output to high impedance instead of hi. This allows you to pull up the outputs to the required logic voltage.
    The Tri-State Enable is found using the wired OR map in the DIO Port Config.vi

  • Maximum number of PCI-6602 cards in 1 computer?

    Is it possible to have 4 PCI-6602 cards in 1 computer?
    Are there any DMA channels or IRQ limitations we need
    to worry about?
    Our computer will have 1 graphics card in the AGP slot,
    possibly a PCI NIC ethernet card and possibly a PCI
    based sound card. It will also have an IDE controller
    with 2 hard drives and 1 CDRW.
    The PCI-6602 manual seems to imply that if you are
    using more than 3 counter channels that you must
    use the slower Interrupt based transfer mode which
    has a maximum transfer rate specified as 2000
    Reading/second. If there are 4 PCI-6602 boards in
    the same computer and all 8 of the channels are
    used on each board does that mean the total
    transfer rate is still 2000 Readings/sec? Or
    wo
    uld the total transfer rate be 8000 Readings/Sec
    since there are 4 PCI-6602's (2000 Readings/Sec
    for each of the 4 PCI-6602's)?

    Hello;
    The only concern you need to have is the number of IRQs available. As far as DMA channels, as the PCI bus itself has only 3 DMA channels available, all the devices that use DMA will share those 3 channels. But, as IRQs can't be shared, the number of counters you will be able to use will be the exact number of available IRQs you still have on your machine.
    As far as transfer rate, the maximum transfer rate will be 2000 Readings/sec, regardless the number of counters you are using.
    Hope this helps.
    Filipe

  • Resistance measurement using PCI-6602

    Hello,
    I would like to measure the resistance between 2 points using my PCI-6602 counter/timer card while using LabVIEW. The resistance values to be measured will vary between 10 ohms and 1000 ohms approximately.
    I found three examples in LabVIEW example finder for measuring resistance but am not sure which one to use. Moreover, which pins of the PCI-6602 would be used for measuring the resistance?
    Please advise me how I could use this PCI-6602 card for measuring resistance values and what the pin configuration would be.
    Thank you,
    Viktoriya.

    As you have written, the PCI-6602 is a counter/timer board. It has no analog input and is not suited for analog measurements !

  • Counter using PCI-6602 for multi output

    Hi guys,
    currently I tried to control a linearmotor using PCI-6052E and PCI-6602.
    The questions is, how to use PCI-6602 to be a counter which will be converted to several output (multioutput):
    (1) converted to position >> 1count = ...[mm] --> position measurement
    (2) converted to voltage >> 1count = ...[mV] or [V] --> voltage measurement
    (3) converted to current >> 1count = ...[mA] or [A] --> current measurement
    (4) converted to velocity >> 1count = ...[mm/s] --> velocity measurement
    (5) converted to acceleration >> 1count = ...[mm/s^2] --> acceleration measurement
    (6) converted to force >> 1count = ...[N] or [kg.mm/s^2] --> force/load measurement
    (7) converted to frequency >> 1count=...[Hz] --> frequency measurement
    (i) Please assist me how to connect the driver's encoder (Ch. A A/ B B/ Z Z/) with PCI-6602, so I can get all informations above (7 measurements). What/which port of PCI-6602 connect to where from the driver.
    (ii) Please assist me how to connect the feedback signal to the PC. What/which port of PCI-6602 connect to PC.
    (iii) How to test those 7 measurements above using Measuremant and Automation Explorer (MAX) ver.4.4.1?
    Thank you for your kindly help and assistance.
    Best wishes,
    hendro

    Dear Jochen,
    (1) Principally, I'd like to use PCI-6602 to be a motion encoder also be a counter (Is it possible? Due to the manual, it is possible). I expect to have all information, such as position, time, velocity, etc. from that motion encoder (or at least the position and time). It is also expected of using PCI-6602 to do all measurements that I mentioned before . My meaning is, after having a signal from the counter, that 'count' will be converted to desire units under other programs. So, in this case, PCI-6602 is only used to get the 'count'.
    Simplified, the voltage command will send to the system (linear motor) through PCI-6052E (-10V to 10V). The actual position or other actual information will be catched (read) by using PCI-6602 (as a motion encoder, also as a counter). Then, this actual position will be used as a feedback, that will be compared to desired position.
    Is that also possible to use PCI-6602 be a motion controller + a counter + a frequency measurement in a same time parallely?
    I don't decide yet (I don't know) which acquisition rate will be needed/required, higher is better.
    (2) I'd like to apply an adaptive robust controller (yes, it is a closed loop system) under matlab with their feature called Real-Time-Workshop instead of using LV.
    (3) Power drive for the linear system will be driven by AC servo drive.
    Thanks for your help before,
    Warmly regards,
    hendro

  • Use PCI-6602 to produce synchronous different TTL singals

    I am using PCI-6602,if I want to use two line to producing two different TTL singals,and the two TTL singals must write to lines synchronously.How can I get it,Thank you !!

    Hi,
    You can generate two pulse trains, one on each counter. If this is what you need, you can do that easly with pulse generation VIs - you can look at the LabVIEW shipping examples - in particular, look at Generate Pulse Train (NI-TIO).vi
    Regards,
    RamziH.

  • Acquiring signal from PCI 1428 card

    Hi,
    I'm new to labview and been tryig to acquire the trigger signal from the PCI 1428 card. Is there anyway to acquire the trigger signal internally without using an external cable (breakout cable)? Can labview acquire this signal without using the external DAQ card?

    Hello DjBiomed,
    It may help if you can provide more information regarding your application.  What are you ultimately trying to do with this trigger signal?   With the 1428 trigger line, it needs to be wired to something (either externally or through RTSI).  LabVIEW cannot automatically detect this unless it is connected.  You can look at the trigger examples that come shipped with the driver in the LabVIEW Example Finder for a better understanding.  They can be found on the browse tab under Hardware Input and Output >> IMAQ >> Signal Input and Output.   I hope this helps.
    Vu

  • Is possible to use PCI 6250 card for order power spectrum in sound and vibration

    Hai all,
    Iam new to Labview sound and vibration. In my application i need to extract the order power spectrum, for that iam using PCI 6250 NIcard. I tried with our NI example program i cant able to get the prober result. Whether this card is suitable for my apllication ?. If it is suitable can any one explain to me to get the order power spectrum...
    In my application iam using one analog signal and one encoder signal(Speed) . Can any one Help...
    Thanks in advance,
    Vijay

    iam using one accelerometer to get the signal from transaxle gear box. This accelerometer signal iam passing to charge amplifier card to get 0-10v signal. This signal iam passing to PCI6250 ai- 0 channel and encoder is connected with motor is passing to ai-1channel for analog tacho. iam using NI example program (Order power spectrum - analog tacho. VI).
    sampling rate is 1000 S/s and no. of samples 1000 for acquiring data. But i cant able to get speed and order magnitude value proberly. Encoder PPR -1000. Can u help me....
    Regards,
    Vijay.

  • Error 50103 occurs. Reading three signals off PCI 6259 card

    Error 53103 occurs in my program. Am reading off three inputs from the NI PCI 6529 card, AI3 to AI5 using the DAQ assistant. Any help please?
    Attachments:
    Untitled.vi ‏520 KB

    You're trying to do two AI tasks on the same device at the same time. You can't do that, because the device has only one AI timing system (among other reasons). Try combining the two tasks into a single task, or chaining the error out of one task into the error in of the second task.
    Joe

  • Use PCI-6602 Counters from different threads

    Hello,
    I have read that DaqMX is thread safe. So is it possible to use several Counters form the PCI-6602 form different threads at the same time?
    Thanks
    farmer

    Hi Farmer,
    the DAQ driver is thread safe, that means, that the driver manages the
    data flow to your application and no data gets lost in case of
    simultaneously tasks in an multichannel acquisition for example. So the
    mechanism of how to deploy the data from different channels in your
    application threads will be managed by the driver.
    It's possible to create parallel threads where an data aquisition with
    different channels is running. The new DAQmx driver is a multithreaded
    driver, it improves the performance and programming simultaneously is
    much easier.
    Have a look on the following link for further information to that,
    http://digital.ni.com/public.nsf/allkb/E1C8492854855FA98625689E0072E832?OpenDocument
    regards,
    Nikolai

  • Acquiring 4 channels at 10kHz using PCI-6070E card and Labview 7.0. I need to average a signal that is time-locked to an analog trigger. Is their an available vi to accomplish this?

    I am acquiring 4 channels of data, sampling at 10 kHz. I am using a PCI-6070E board. I need to average a biological signal time-locked to an analog trigger that occurs at about 3/second. Is there a vi that will accomplish this?

    If you are looking for a way to do a "retriggerable" acquisition, there is a shipping example called Acquire N - Multi-Analog Hardware Trig.vi that accomplishes this. However, please note that this example achieves this effect by reconfiguring the task for each trigger in software. This means there is a delay between reconfigurations. If a trigger signal comes during this reconfiguration, it will be missed. This delay is system dependent on how fast your computer can execute the reconfiguration code. The 6070E does not support hardware retriggerable acquisitions.
    However, if you are wanting to acquire continuously and then do some post-acquisition analysis, I couldn't find any examples that accomplish this, but it wouldn't be too hard to build one yourself. Y
    ou would probably want to include your trigger signal as an additional input channel. Then once you've acquired all of your data, in software you can scan through the data acquired for the 5th channel and then segment your data according to that signal. I hope this information helps.

  • K9NBPM2 not using PCI Express cards

    I have a K9NBPM2-FID.  Integrated graphics works fine, and the BIOS is set to auto for which graphics card to use.  I have tried two different graphics cards in the slot, and it is not trying to use them.  The cards are receiving power it seems (they are warm upon removal), but no display is there, and windows doesn't see the cards.  I also tried setting the BIOS setting to both to use both adapters..  No matter what, it seems, it will not initialize the card, and will only use the integrated graphics unit.  I also checked to ensure that primary display device is PCI Express --> PCI.
    Tried a GEForce 6200 LE and an ATI x800

    Moan Guide

  • Measuremen​t of CMOS signals using PCI-DIO-96

    I am trying to measure a CMOS signal level with current limiter resistor (25k) on the output. But the CMOS device is not capable of sinking the input of the PCI-DIO-96 because of the 100k pull-up resistors on the board. Will the PCI-DIO96 work as an input if I remove the 100k resistor or use e.g. 500k instead?

    Hello;
    When a digital board has a pull up resistor, that means the output line is a open collector type, so, a "external" connection needs to be made to the Vcc supply. Then, when a current is applied at the base of the transistor, the transistor switches and the ground (low state) is connected to the output lead. If no current is applied to the base of the transistor, then the Vcc level is being output at the output lead, meaning a high digital state.
    The value of the resistor is chosen depending on the specifications of the transistor used as the gate. As my understanding, as long as you increase the values of that resistor you shouldn't have any problem as far as high current flowing trough the transistor when it switches. I've never tested that myself, but I
    don't see why that couldn't be done.
    But always keep in mind the warranty will void if you make such changes.
    Hope this helps.
    Filipe

Maybe you are looking for