Using external clock on a 6062E DAQ card

In my application I need to use an external clock (2 MHZ) to sample 10 channels at 40 KHz each. I connected the external clock to PFI_7/Startscan, enabled the ND_IN_CHANNEL_CLOCK_TIMEBASE and ND_IN_SCAN_CLOCK_TIMEBASE using The Select_signal function. If I use only two channels (instead of 10) everything works fine. If I try to increase the number of channels to more than 2 I get a digitized waveform with points missing (one every 2). I tried to decrease the sampling rate to 4 KHz per channel, but the problem persisted. For 2 channels everything is always fine, but for more than 2 I get the same error in the digitization pattern.
The relevant lines of my codes are attached
Thank you for your help
Enrico Gratt
on
Attachments:
Sample_code.pas ‏3 KB

Enrico,
I have a couple of questions. Do you see the same amount of missing data regardless of how many channels (more than 2) you are acquiring? If you use the internal 20 MHz timebase, can you successfully acquire all 10 channels at 40 kHz?
Spencer S.

Similar Messages

  • Use external clock (PFI2) with Traditional DAQ

    Can figure out how to specify the external clock line (PFI2) while using Traditional DAQ (7.4.2f3).
    Can anyone help?  TIA.
    George
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

    I never used such a configuration but I found an example that will probably be helpful for your problem: it's named SCANsingleBufExtScan and you will find it in samples\daq\ai folder on your hard disk.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How can I use external clock to implement a delay?

    Hi all,
      I am testing to use external clock to drive dev/PFI0 (on device 6711) which is used as the clock for the analog ouput. I have thinking two applications by using the external clock but I don't have much idea on the implementation yet.
    First of all, I have a sequence of data (array) with each sample being sent at the interval of 1us. I use an external clock (10MHz) driving the PFI0 so it is pretty easy to achieve that goal. I am thinking what happen if I want each sampel being sent at different time. For example, if I have 5 samples, I want the first one sent 1us after the task start and wait 2us to send the 2nd sample, wait 5us to send the 3rd sample and wait 11 us to send the 4th sample, and wait 1us to send the last sample. Is it possible to achieve that based on the external clock?
    Second question is about the delay. My code require ciritcal timing and the builtin delay doesn't behave very well because I am running in windows. I can increase the priority of the vi to highest, it helps a bit but still not perfect. I am thinking if it is possible to implement hardward delay based on the external clock. Any idea?

    Hello dragondriver,
    To answer your first question, yes you could send data in that fashion. You would have to programmatically build a pulse train and use that to trigger the sending of data. The answer to the second question is essentially the same. You should be able to programmatically build a pulse train with a delay and use it as trigger to begin whatever operation you have.
    Jonathan L.
    Applications Engineer
    National Instruments

  • Can I get a stepper motor to work useing an AO channel on a DAQ card?

    Can I get a stepper motor to work useing an AO channel on a DAQ card? I know its a very low currentl coming out, but what Im going to be using the motor for is very weak. Has anyone tried this before? I certinaly dont want to spend 2,000+ on somthing that will be basicly moving a string on some pullys back and forth.
    Thanks,
    -Mark

    Greetings, Mark
    You can certainly use the A0 as a driving signal, but you need to amplify the current considerably to run a stepper motor. Additionally, most stepper motors require multiple phase driving signals to work properly. If I understand your application, I believe a stepper motor is a bit of overkill...you only want to use them when precise positioning and repeatability is an issue. You might look at some of the linear actuators available.
    Eric
    Eric P. Nichols
    P.O. Box 56235
    North Pole, AK 99705

  • I use labview 8.0 and i can not run daqmx driver for pcmcia 6062e daq card

    i use labview 8.0 on window xp .when i installed a PCMCIA daq card 6062E, i could not run daqmx driver.It is fine to see that the traditional version is working well.When i install daq card sometimes it is working well with traditional driver  but mostly i see error on reading an analog input from PCMCIA daq device.An error called 'base adress' occures .I use last version of driver that is daqmx 8.0.1. and i have installed this correctly but again i could not  see any signal on the test panel for daq-mx driver.I don't know what is the problem.Also when i install PCMCIA daq card Please reply this message.I need your helps.
    Thanks

    Hello,
    Thanks for your reply.I will try to answer your questions.
    I have checked the Device Mananger and I have seen that the device is detected by Windows  XP.  For another question the card shows up under both NI-DAQmx Devices and Traditional NI-DAQ (Legacy) Devices consistently in the Measurement & Automation Explorer.I use a way that I reset the driver for traditional NI-DAQ in MAX,and then i reset the device for NI-DAQmx driver in MAX and again i tried to run the test panel of DAQmx driver but again i saw a wrong signal or noise signal on the test panel i could not see the sinusoidal signal that i connected. i do get the test panels to run with the card using the DAQmx driver,  But could not run the DAQ diagnostic utility.The error was as i specified below.
    03.05.2006 09:49:35
    Results saved to:  C:\Documents and Settings\serkan\Desktop\Diagnostic Results.txt
    Selected Device: Dev1
    Device Type: DAQCard-6062E
    Serial Number: 107509E
    Device Support: (PASS)
    NI-DAQmx Version: 8.0 (PASS)
    Device Reset: (FAIL)
    Error -50002 occurred at an unidentified location
    Possible reason(s):
    The specified device is not a valid device. The operation could not be completed as specified.
     ------ DIAGNOSTIC UTILITY ABORTED -----
    And for your last question i can say that i have used the DAQ card on other laptops.But the results were the same.İ hope to see your reply
    Thanks,
    Serkan Buhan
    Electrical-Elecronics Engineer
    Researcher
    TUBITAK-BILTEN

  • Can I acquire waveform at faster sampling rate using external clock?

    I am trying to acquire waveform at a sampling rate of 1MHz. My 6036E card is maxed out at 200KHz. Is there a way to achieve a sampling rate of 1MHz using an external sample clock? Your PFI pin can take external clock as an AI sample clock, right?

    Hi,
    I remember I asked the similar question before in the NI forum, they reply me:
    the max sample rate (scan/s/channel) cannot be greater than your board max sample rate, even you use external scan clcok. So the answer is no for your case.

  • External clocking proble with NI-DAQ 6534 after driver upgrade

    Hello newsgroup,
    I've got a Problem with a pattern generation using the NI-DAQ 6534.
    I'm using it in 32 Bit Output mode with external clocking.
    After changing the PC and the OS from a P II 333 Mhz running Win98
    to a P 4 1,8 GHz running WinXP Pro the use of new drivers was nessasary,
    because the old driver doesen't work at all. The following problem occurs
    by using actual driver: Using my old programm external clocking doesen't
    work anymore, but internal clocking works fine. I'm using C++ not Labview.
    I'm not shure if this is the right newsgroup for my problem. If not please
    give me a hint were it belongs to.
    Regards
    Michael

    Michael:
    What version of NI DAQ did you have? What version did you upgrade to? Is your 6534 a PCI board or is it an AT/ISA based device? Have you changed your code at all? You code should be fully compatible with a new version of NI-DAQ... Please provide more exact details of the problem so I can help futher. Are you getting errors or is it just not working?
    Sincerely,
    Brooks B
    Applications Engineer
    National Instruments

  • How to generate a pulse waveform 90 deg phas shifted with respect to a pulse generated using a counter in PXI 6070E daq card ?

    Hi
    I ma using 6070E daq. I am generating a infinite pulse train using one of the counters. I want to generate another pulse train which should 90 degress phase shifted with respect to the previsously generated pulse. How to implement this using the counters in the DAQ card.

    Hi Gopal,
    1) yes the frequency generator is programmable. You have 2 timbebases (10MHz and 100kHz) and you can divide down by any integer between 1-16. Those are the only frequencies you can use.
    2) The way counters work is that you can apply a gate signal to the counter which will cutoff the output. Therefore, you can have a second counter generating a pulse train of an equivalent frequency to the frequency generator (fout) but you don't want it to start immediately. You want it to start only after a short delay (equivalent to a 90d phase). Therefore, you need to "gate" or prevent the output on this counter for that small delay period of time. The way you can do this is by using a second counter to create a delayed pulse. You would
    connect the output of that counter to the gate of your pulse train function. That way, during the delay period of the pulse, you won't be outputing your pulse train yet. When the pulse (high-time) of your pulse reaches the gate, then your pulse train will start generating its pulse train (which is consequently delayed by the amount of delay used in the single delayed pulse counter). Since you don't want your pulse to go back low, you will have to turn off or clear your pulse counter while it is high. That way the signal on the gate will remain high forever.
    Your better solution is to use a PCI-660x card to perform this action. You will have more counters which will give you a greater range of frequencies to choose from and you will have more accurate timing of the signals.
    Anyway, hope that clears things up. Have a good day.
    Ron

  • Mac G4 crashes using continuous generation with PCI-1200 DAQ card

    I've been trying to use a PCI-1200 DAQ card with a Mac G4 to create a continuous analog output signal. The problem is that the computer locks up after a while (a few minutes). I have been using the Generate Continuous Sine Wave vi, but the problem remains.
    I've tried slow signals (10Hz) and fast signals (2kHz) but the computer still seems to crash. I have no clue what is going on!

    bissdp,
    The first thing I would recommend is making sure you have the latest version of the driver:
    www.ni.com > Support > Drivers and Updates > Current Versions > Multifunction DAQ
    Another you could try is to determine what component is causing the computer to lock up. Use a process explorer utility to try to see what processes are locked up. A search in google might turn up utilities like this one: (http://www.clarkwoodsoftware.com/peekaboo/)
    Keep in mind heat or speed issues. It may sound funny, but you may want to try opening the computer case and making sure the board has enough air flow to keep it cool.
    These are just some ideas for now, I hope they help.
    Alejandro Asenjo
    Applications Engineer
    National Instruments

  • Help with DIgital Output Array with 6062E DAQ CARD...

    Good morning, folks... I need some help with digital output of the 6062E PCMCIA card... I can output 1 line without problems... I need to control a 4066 with my digital outputs... I am doing this without greater problems... but there's something... I need that when one of my outputs is high, the others become low, unchangeably... so I tried to use an array to control my output and I couldn't do that... some errors showed up... can you help me please? Maybe there's any errors at my software, then I thank you if you help me... the vi is anexed...
    Best Regards...
    Attachments:
    Untitled 3.vi ‏20 KB

    See below for one of many methods. Change the "lines" string for your setup.
    Also, please explore the Examples that ship with LabVIEW, and read your card's manual.
    Richard

  • Want to use external clock for SCTL on myRIO

    Hi people,
    I'm trying to find a way to get a 2.5 MSPS 16-bit ADC, TI ADS1602, to send data to the myRIO device. Ideally, I want to record bits at 40 MHz in order to get the benefit of the full 2.5 MSPS. I know that I can create an 80 MHz SCTL on the FPGA to create a 40 MHz clock, but when I checked this clock signal on an oscilloscope it was obviously significantly degraded by slew rate limitations, so it looked more like a sine wave than a square wave. I doubt that it would work to use this signal as a clock to drive the ADC, since the ADC's specifications say the allowable jitter is around 100ps.
    I can use an external oscillator to drive the ADC, but then I have to find a way to sync that clock with the 40MHz FPGA clock. Is there any kind of PLL structure that would allow me to sync the myRIO FPGA clock to an external clock? Is there a way to make a single cycle timed loop be driven by an external clock? Or if I was able to customize the FPGA personality to accept an SPI signal of up to 40 MHz (ten times the officially supported limit...), would it be ok to use an FPGA loop running at ~160 MHz and tell it to sample the SPI line each loop and proceed from there? 
    Thanks!
    Solved!
    Go to Solution.

    Hi 3.14159... ,
    The myRIO does not have the ability to import a clock to use on the FPGA Block Diagram to clock single-cycle timed loops (SCTLs). The new sbRIO-9651 that just released at NI Week (not shipping yet) is the only sbRIO that has the ability to import an external clock into LabVIEW. Several of our FlexRIO products also have this ability.
    As you alluded to, you can sample the signal at twice the frequency (or possibly more) to and wait until an edge trigger to execute a certain piece of logic. If you open the Example Finder and navigate to Hardware Input and Output » R Series » FPGA Fundamentals » Triggers and Watchdog » Trigger Detection this gives a simple example of doing that. Again, since you are wanting to sample at 10x the supported frequency, all bets are off but it may be worth a try.
    Tannerite
    National Instruments

  • Using External Clock to write counter value to buffer

    Using CTR mode config which input controls at what frequency the counter value gets written to the buffer? How do I set it up so the counter value is written to the buffer at the same time Anologue inputs are written to a buffer, without using the other counter.

    Hello,
    Could you please explain what type of counter operation are you interested in doing? That would help me in suggesting something.
    But if I roughly understand what you are saying here, you can use a same clock to provide as scan clock for analog input and then use that clock for the counter. But depending on what counter operation you are trying to do will decide whether that clock be provided as source or Gate.
    You may take a look at examples provided at the following location too :
    Measurement Hardware
    Sincerely
    Sastry V
    Applications Engineer
    National Instruments

  • Using LabVIEW and an E-Series DAQ Card to perform relatively high speed single point acquisition in response to a changing DIO pattern.

    I am using the DIO lines on my E-series card to drive an external multiplexer which switches 1 of 8 sets of 3 signals to channels 0,1 and 2 on my DAQ. I need to acquire the 3 single points of data, do a little processing, then update the mux code before acquiring the next 3 points of data and so on. I have been trying to do this using hardware controlled loops but can only achieve a real sampling rate (time between the same set of three signals) of about 200s/s. I am trying to achieve in excess of 800 s/s. Any ideas?.

    HI CP,
    You are doing pretty good if you are getting 200S/s.
    I believe the only way you can get 800 S/s reliably is to go to LV-Real Time. Not for the speed, but for the determinism.
    That's my idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Using a counter on PCI-6023E DAQ card

    Hi there,
    I'm about to use a 6023 card to measure a periodic pulse signal. I need to count the number of the pulses. But...I've heard that the counters on my card are unusable in that case. Is that correct? Do I have to chage my card? Or can I do it with 6023E?
    Thanks in advance;
    Radek

    Hi DAC,
    The counter on your 6023E board is the DAQ-STC counter/timer. This counter fully supports counting the number of pulses. Depending on your application development environment, if you search the shipping examples you will find examples that perform this function.
    This is so long as your digital pulses are 0-5 V or TTL compatible.
    Other applications supported by your counter are:
    Simple event counting
    Gated-event counting
    Single-period measurement
    Single pulse-width measurement
    Single pulse generation
    Single triggered pulse generation
    Retriggerable single pulse generation
    Continuous pulse-train generation
    Buffered event counting
    Buffered period measurement
    Buffered semi-period measurement
    Buffered pulse-width measurement
    Fre
    quency measurement
    Buffered frequency measurement
    Finite pulse-train generation
    Quadrature encoders
    Hope that helps. Have a good day.
    Ron
    Application Engineering
    National Instruments

  • Why do error comes when trying to use NI ISA GPIb and NI DAQ card (both PnP)together while they work well when one at a time?

    we configured gpib pnp and at-mio-64e3 cards (isa) in the same pc.gpib function was invoked to take the device to remote and listen mode.now when daq function getDeviceInfo is called the remote mode of the device is removed and after this it always shows no gpib board until pc is rebooted

    Hi,
    I have some questions:
    What OS are you using?
    What driver versions?. You can find the driver versions in the Windows Add/Remove programs utility. DAQ driver is NI-DAQ anmd GPIB driver is NI-488.2.
    Is there any error code?
    I haven't found any known issues between these two drivers. How are the board's resources configured? Base address, IRQ, DMA.
    Let see if with this information we can clear out what is going on.
    DiegoF.

Maybe you are looking for

  • Iphone 5 randomly gets blue screen. Will not turn on after I tried to restart it.

    I have had my Iphone 5s since about a month after they came out. It has worked perfectly up until now. While I was at work I was going about my regular business using my phone as usual. I put it into my pocket and about 15 minutes later pulled it out

  • Can you help me with Page Layout and/or Design ideas for a software manual?

    Greetings, I am a new InDesign user, and am converting a software manual that I created in MS Word into InDesign. It will be converted to a pdf to view online. I have the basics (3 master pages, page numbers, running headers, 2column pages with text

  • Satellite p745-s4217 overheating after upgrade to windows 8.1

    I have Toshiba Sattelite P745-s4217 intel corei5 2nd Gen I upgraded from windows 7 to 8.1, since then I have had lots and lots of problems, in this topic I am disccusing one of them, it overheats anytime I watch netflix or extract a zip file and it j

  • External Hard Drive (Seagate) does not appear

    I recently updated to the new Maverics 10.9.2 and now my external hard drive does not show up in finder, or on my desktop.  I have looked using disk utility and disk drill and nothing appears.  I was wondering how I could get the information back fro

  • Report for stocks with no movement

    Hi All, I would like to know is there a report / transaction, where i can check for all materials in a particular plant / storage location, which has stock, but there was no movement for a particular period. Eg: Mtl-A, stock - 100 nos, Period - Jan 2