Continuous output of digital waveforms on PCI-6602

I use 6602 PCI to get a continuous 1 MHz square wave output of DIO1 ~ 32 sequentially controlled by LabVIEW. I Ctr0 to generate a clock 2 MHz and used Ctr0InternalOutput as a source of sample for DIO1 clock ~ 32. I have attached the code and the texture as follows.

The code works fine on PCIe-6251 and digital waveforms of 1 MHz is very stable.

But when I run on PCI-6602 I got an error-200077 (you asked for: sample clock; you can request: on-demand).

6602 PCI does support material timing? I found no information about this its specifications. If she can't, how can I avoid this problem and get what I want? Thank you!

Yi

Version: LabVIEW 8.2

hardware: PCI-6602

Hello

Have you looked at the specification for the 6602?

http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/1123

Click on "specifications".  Scroll down to "digital i/o".  Watch "Timing".  It clearly says "software".

The DIO lines on this Board are not timed by the hardware.  They are clocked by the software.  The data sheet that explains very clearly.  That's why you see the error clock sample - that the Council can't stand DIO clocked by the hardware.

The 6251 supports clocked by DIO material, so why your code works very well with this Council.  You can do the generation of signals with a 6602.

Hope says.

d

Tags: NI Software

Similar Questions

  • Can PCI 6602:How I use digital lines of the Board of Directors and at the same time to generate trains of pulses by using a meter?

    Hello!

    My problem appeared when I tried to update my traditional NOR-DAQ legacy code to DAQmx.

    I use 2 meter (meter 5 and 7 meter) on PCI-6602, to generate trains of pulses, as well as the lines of e/s digital port 0 (the form lines from 0 to 7). What I do in my request, it's that I'm starting to generate the pulse train on the output of 2 meters and after that I play with the State of digital lines.

    Traditional, it was no problem to use the meters and digital lines at the same time, everything went perfectly, but in DAQmx, is not possible.

    What's happening: I start generating train of pulses on the output of counters, no errors, but when I try to change the State of a line of digital port the generation of the pulse train is stopped. What happens when I start the task associated with the digital way.

    My question is: is it possible to create a channel on digital lines without changing the channels created for meters?

    Another thing that I managed to do with the panels 'Measurement and Automation Explorer' and Test for PCI-6602, is basically the same thing, I generate trains of pulses on the output of the 7 meter and try to start a job on the digital line, but I get an error:

    "Error-200022 occurred in test Panel.
    Possible reasons:
    Measurements: Resource requested by this task has already been reserved by another task.
    Device: Dev4
    "Terminal: PFI8.

    On the contrary if I use the counter 0 or a counter 1 to generate trains of pulses I encounter the same problem.

    What resources are used by 2 to 7 of the PCI-6602 card counters and the counters to 0 and 1 do not use?

    Thanks in advance for any answer!

    Ciprian

    After doing some real tests on this device, I found that it is a normal behavior for the jury of 6602.  This is because when you start a task digital all 32 lines are configured for digital i/o, so it replaces your meter operation.  The article below the link explains a little more on this subject.  You must start the digital task before the task of counter to use the features of both in your program.

    2 meter and above will not work correctly when you perform digital i/o on NI 6601 or 6602

    http://digital.NI.com/public.nsf/allkb/43F71527765EEC3886256E93006CD00C?OpenDocument

  • How can I write a digital waveform to the digital output (traditional DAQ)

    Hello

    I use a NI 6023e, PCI, with 8 digital outputs. I generated a digital waveform. How can I write for a specific digital production line now?

    I only have Labview 7, so I can't use DAQmx.

    Thank you very much


  • Support for triggers in PCI-6602 for counter input / output meter opearions


    I'm sorry, it took a lot of time to test my application in a real NI PCI-6602 map. I am now convinced that put off against channels support start trigger, arms and relaxing break start trigger. But the input meter channels use pause trigger and trigger start of arms only.

    I designed the app so that counter 0 is used as a channel of the meter and meter 1 serves as an output of the meter channel. The two channels are configured to use triggers to start of arms. Arms start triggers should come from a line of the RTSI. Using the terminal line 0 RTSI route connect API to arm the trigger for the start of the two channels. So when a pulse comes to line 0 in the RTSI two counter starts counting.

    One last thing, I'd like to know, is how RTSI signals are generated? I know that RTSI is used for synchronization of several cards of NOR.

    If there is only Board can we use the signal of the RTSI?

    Can the hardware PCI 6602 itself generates all signals to the RTSI lines?

    Thanks in advance.

    Johnson

  • static/digital waveform output and low frequency measurement of voltage - SMU-6358

    Hello

    1. I have an attached VI [digital_voltage_output] who must generate a logical true or false static state in the output of the device/port0/line1 Word to say. When the VI works I click the button several times, but nothing happens to the port0/lines1.

    2 such a thing [digital_voltage_waveform_output_square] if I'm trying to generate a digital waveform to pin the same with the waveform generating VI. If I connect a waveform chart to the output of the generator function VI, then the chart will show me the good waveform I want, but still nothing is written to the text file.

    3. I have read the manual for the X series cards, but it remains unclear for me a little how to things of the road in LV I have a measure of the frequency measurement VI low frequency that I downloaded. It offers me the ports for the supply frequency - ctr0, 1, 2, etc. As far as I'm concerned the PFI ports are responsible for these types of actions. How can I find out the LV that I want to connect say ctr0 and pfi0? »

    I use LV 8.6.

    Thank you

    Kriváň

    Hi Kriváň,

    The problem you had with the choice of a specific digital line as a physical channel, is that the control that was previously used in this example was created for a data acquisition task that uses a whole port rather than a specific line. I was able to overcome this problem by removing the control and recreate. The control now gives you the option to choose the specific digital lines e.g. port0/PXI1Slot2/$line0.

    I was also able to overcome the error of-200802 you mentioned. I was able to do this in a real constant of wiring at the entrance to auto-start the VI DAQmx writing then remove the DAQmx beginning the subsequent code VI. The modified code is attached.

    I hope this helps.

    Best regards

    Christian Hartshorne

    NIUK

  • count digital events on a counter with pci-6602 with reminder on the CVI

    Hello

    I use a card PCI-6602 with CVI 8.5 and I need trig on the event.

    On each pulse, I received, I need to do some actions like increasing a counter, send a message to Rs232 etc... I want to do no loop by checking that the value of the counter has changed. I would use a reminder to run this code only on the value of edge or a counter event.

    My problem is that I don't know what function for this. Is it possible to get an event on a pci-6602?

    Thank you

    James

    It's true. If a earlier without change detection and it works.

    Thanks for your help.

  • Response time of PCI-6602

    Dear users of the forum,

    I use a Counter/Timer OR PCI - 6602 for send TTL signals to another device in our laboratory. I send the signal every ~ 1-5 ms, but this time is not fixed (it depends on some other process that I do in my program of LabVIEW), so I can't use a continuous waveform.

    So, I wrote a short test program to familiarize yourself with the PCI-6602 (see attachment).

    If I send a pulse, it seems I can do this just about every 14 ms (at least this is calculated with the tick counts lag which is not very accurate; but to count the pulses with a meter gives almost as much time). So, it seems that the PCI-6602 has too long a response time for my application!

    Can someone tell me if he made the same comment? Either I use the bad vi/treat the PCI-6602 in the bad sense? If Yes, what should I do to make my small test program and finally my main program faster?

    I would be recognizing all the help and the comment!

    partial81,

    I have another idea for you to try.  Starting the 6602 being the operation that takes the most time I wrote an example which uses a trigger to start to generate the impulse and puts in place the meter to retriggered.  Basically whenever you issue a start trigger, the meter will generate a pulse.  I then use a digital line on the 6602 to generate this trigger to start (I use PFI0 and Port0/$line0 which is actually the same line in the material).  For the reenclenchee generation, wait until what is not useful, so I replaced it with a 1 ms wait.

    Can you try this and see if it works better for you?

    Dan

  • Synchronization of the signal with PCI-6602

    Hello

    I need to generate three signals that must be synchronized.

    To do this, I use a PCI-6602.

    The first signal is used to trigger a device, the second signal is used to simulate the noise.

    The third signal should wear the noise so that it starts before the trigger signal and stops shortly after the trigger signal.

    The signals are then combined with an external logic circuit.

    (To see what I mean, see the first PDF).

    I use a fourth timer to synchronize all other clocks, but the three signals are beginning to run before starting the timer task. I have this evaluated using not to no and a oscilloscope.

    The trigger and gate (first and last signal) are below 100 Hz, the noise signal is about 200 kHz.

    At least the trigger and the door must be started synchronously, otherwise the waveform is not what we want. The noise signal didn't need to be synchronized.

    I am sure I am missing just a little detail here, maybe you can show me what I missed.

    Please check my screenshot of LabView to see what I've done here.

    If you want more information about the VI, I can take apart a little and send it, too.

    Try using start to the outputs of the 3 meter (see attached VI)

  • Generate digital waveforms of high frequency

    Hi all

    I have some problems. Today, I am generating several digital high frequency waves with my DAQ (PCI-6251) card. The duty cycle of the waveform must be adjustable.

    The required frequency is 100 kHz.

    To do this, I have tried several solutions:

    (1) I used counters in the acquisition of data to generate waveforms, and it worked fine.  However, I have only two counters. In my application, I need to at least three waveforms with different cyclical report;

    (2) I used a 'loop' and structures 'case' in labview to build the model of waveform and then feed them to the digital I/o. However, the problem with this solution is that the frequency of the wave generated cannot be high.

    (3) I used a 'digital' generator in Labview to generate waveforms and then feed them to the digital I/o. In this case, the time base is from an external source (200 kHz). However, with this solution, the cycle is not adjustable.

    Please give me some advice on how to make these waveforms.  Your assistance is appreciated.

    OK, so I may be wrong, but after mucking around for a bit, I realized that the regeneration should be automatic - in other words, if you a pattern to the right and then just leave your VI work in a while loop, you will find that the generation is continuous.  Discover the correlation dig write metered in the finder for example Labview.  You can leverage this as you get the cyclical report you are looking for.  You can split the signal down what you write a single period consisting of a series of 0 and 1.  In other words, if you want a wave of 100 kHz with a cycle of 20%, you write a pattern of digital waveforms a 1100000000 at the rate of 1 MHz.  Using this technique, the resolution of the cycle will be limited by the on-board clock speed (80 MHz = 0.125%).

    Let me know if this makes sense - I am unable to reproduce this on my desktop and have never had to do this before.

    Cheers, Matt

  • Continuous output DAQmx and queue software

    Hello

    I'm coming out of a digital waveform on a map of data acquisition using the internal clock. Now, I also store the waveform for later processing by using the exact time at which the wave was written. So I would get a rear wave form that lets me know what state my digital output was at one point.

    Y at - it an option to do this?

    Or, as an alternative, could I somehow synchronize the beginning of the output waveform to the DAQ card with a timed loop? Because I know that the waveform that is written, this loop could return for example of this waveform with the good "t0" for each iteration.

    The code runs on a target-RT.

    Background: I'm controlling one instrument that has no indication of its current state, but I would like to save its current state on the entry of order.

    After some research, I realized that there is a VI 'DAQmx create calendar Source' that returns a source calendar synchronized to the clock of the task DAQmx sampling. This source of synchronization can be used as a source of synchronization for a timed loop. There is here an example for this:

    https://decibel.NI.com/content/docs/doc-25763

    Unfortunately, I realized that my digital I/O hardware has no timing hardware capabilities so too, this does not work for me and I stick to a software solution that is timed.

  • How I ouptut a digital waveform, it has collated and compare it to the original with a usb-6211 box?

    I want a digital waveform to a circuit of output, read the return signal and compare the original to the read signal. I use a usb-6211 housing is it possible and if so, how?

    Use a comparator "equals sign", mark the post as a solution if you have the makings of what you wanted.

  • Generate a digital waveform like memory on PXI cards

    Hello

    I'm looking for a way to send a large digital waveforms using a PXI digital signal generator. I saw DIO HS cards, but their memory is smaller than the files that I want to transfer. My understanding is that the PXI backplane bandwidth 132 MB/s. So, I shouldn't be able to stream a digital signal from the memory of the card that is slower than the CPU? For example, 50 Mbits / second (equivalent to only 6.25 MB/s)? However, I think I understand after reading their textbooks is that you cannot continuously transmitting a large waveform of the processor memory file, you must transfer the file to the memory of Council first and then transfer that out.

    Does anyone know if there is a way to have a flow of digital signal generation card an arbitrarily large directly from memory to the processor of digital signals? Or, what is the fastest card of pxi digital signal generation that does not require the storage of Council first files?

    Thank you

    Isaac

    Hello Isaac,.

    Take a look at the following area developer.

    NOR-HSDIO Stream from disk (generation) using Win32 file IO

    Note that you will not be able to take full advantage of the maximum rate of update HSDIO devices, because the data must be transferred in a bus.  Some other considerations are the width of the data as well as the HSDIO device you select, which may depend on other requirements not related to the size of file or waveform (for example the standard voltage or whether you need hardware compare).  For more information, take a look at the developer following items area.

    Data streaming of Architectures in the PXI systems
    The use of National Instruments Logic Analyzer and generator of test patterns Solution

    Advanced features of e/s high-speed digital devices White Paper Series

  • Reference library of digital waveforms of SPI for LV 7.1

    Hello

    I'm using LabVIEW 7.1. I want to implement SPI communications on a NI HSDIO (PCI-6541) device.
    The SPI Digital Waveform Reference Library (http://zone.ni.com/devzone/cda/epd/p/id/6163) is available for LabVIEW 7.1? Someone at - it successfully he converted from 8.2 to 7.1?
    The screws are also available under the reference Application Communication Protocol series for digital devices of waveform page (http://zone.ni.com/devzone/cda/epd/p/id/6200) available for LabVIEW 7.1?

    Any help would be appreciated. Thank you.

    Hello

    Unfortunately there is no simple way to convert libraries back to the 7.1.

    My suggestion would be to download an evaluation copy of LabVIEW 8.6

    You could use the trial period to open libraries and use as reference to re-create what you need to in 7.1.

    Hope this helps,

    John

  • Photon counting using Photon unique cash Module and PCI-6602

    Hi all

    I am currently working on program couting of photons using a single (Excelitas) and PCI-6602 photon counting module connected to the BNC-2121.

    I took a glance at other positions, but I still couldn't solve my problem (or, again, I'm not sure if yes or no, the problem is the specification of the material).

    In the program, I'm generates a trigger to 1 MHz pulse using a trigger in a separate loop.

    Other than that, I have loops of the producer-consumer model to get data and do a simple subtraction to calculate the number of photons in 1 microsecond.

    According to the values connected to 'Input.BufSize' of buffer DAQmx and "Samples per channel" DAQmx calendar, I could change the loop number that the program has done its job correctly.

    With the values, the program acquires photon 1 MHz with signls for 139 times.

    After that, the program stops and the loopback number increases very quickly.

    When I forcifully took stop the program, while the loop number increases very quickly, the program appears "error-200141".»

    The error that says "data has been replaced before it can be read by the system." Mechanism of data transfer is interrupted, try to use DMA or USB in bulk. Otherwise, divide the input signal before taking the action. "even if the meter explicitly works in DMA mode by using the sample clock.

    I wonder there is nothing that can solve my problem or even the only solution will buy a better Board of counters/timers.

    Thank you all for reading this.

    I will be very happy with any index

    Kind regards

    Myeongsu

    Yes, the same thing happens on my system.

    It does not happen with PCIe-6612.

    I found more strange things:

    When I start to reduce the frequency at a time given (800kHz) can fill the buffer, it will not start since the beginning of the buffer. He can go to the beginning of the buffer only at 100 kHz for my PC.

    Options to fix:

    (1) PCIe-6612. Seems to work. I tried streaming at 10 MHz, 5 min - fine.

    (2) reduce the frequency of the pulse. If your laser supports 100 kHz, you're fine.

    (3) put in place additional synchronous counter at 100 kHz. Basically, it's material average number of photons by 10 pulses.

    (4) read 2 adjacent pulses each 1/50 kHz - then your data transfer will be 100 kHz and you will get the number of photons of this impulse of the 20 - th.

    Programming issues:

    (1) remove the display of the received picture, make only the processing of data and show results if you really need it.

    (2) clock.vi sample sets the buffer size, if you specify the size of the buffer, do this after this vi.

    (3) I deleted unnecessary "loop generation." He is running on the hardware and stops when you stop it - after reading the loop ends.

  • Can someone tell me how to extract a part of a digital waveform?

    I am trying to extract a part of 2 analog waves (using the http://zone.ni.com/devzone/cda/epd/p/id/4149 for example) analog signals is synchronized with a digital waveform.  I need to extract the same portion of a digital waveform.  Can someone tell me how to add the digital extractor in the example above?

    Hello

    Here's your extractor example slightly modified in order to add the digital data extraction.

    The principle is exactly the same, the tricky part is how to get digital data which is different from analog data.

    You can also add nodes property to identify the value read on the analog graph sliders on the digital chart.

    Kind regards

Maybe you are looking for