Generate trains of pulses overlap several

I need to generate signals up to 8 TTL pulse, train up to 500 Hz with heavy duty from 0 to 100% open and close the valves with an accuracy of timing of 5 microseconds.  The pulse trains will be spread with equal delays and begin with a single trigger.

i.e.: If you have a period of 40ms and 8 valves, there will be a 5ms delay between each pulse train early. Each will have the same duty cycle and the period.

Trains of pulses must be performed simultaneously and stop when certain data criteria is met (the balance of the system state).

My Questions:

1 would be classified these as continuous or finite pulse trains?

2 do I need to use a counter/timer (or 2) for each train of pulses or can it be coupled with digital output?

3. what DAQ will have sufficient resources (counters/timers, DIO, etc.) to enable this work?

Thank you

1 continues.  The idea of pulse trains finished is to predefine * precisely * how many cycles to generate.  You will make assessments based on the software to decide whether to stop the pulse trains, but you will not be able to predict when this will happen in advance.

2. all things being equal (and it's not often), I could certainly do that with counters.  You can easily reach the accuracy of your calendar and let the data acq hw do all the work.  DIO can be an option, but it could prove to be a pain in the neck to set the output buffer to handle delays including and precision, you need.

3. I'd go with an oldie but goodie, the PCI-6602.   It has 8 available counters, as well as a little extra DIO.

-Kevin P

Tags: NI Hardware

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

  • generate trains of pulses of 5 kHz

    Hello

    I would like to generate digital impulses to 5 kHz oe less rate, any recommendation of material? better usb and budget type.

    I have usb 6501, I try to work on this, maximum output is 1 kHz the best. Is it possible to above?

    Appreciate any help here.

    Kind regards

    Simon

    You can use each channel to generate the train of pulses at a different frequency at the same time, and generation of pulse stops immediately as soon as the task is stopped.

  • How to connect USB 6259 so that I can generate trains of pulses of a meter

    Hello

    We just bought NI USB-6259 BNC. We used to use BNC-2110, which integrates the connectors BNC for trigger and the meter so that we can send trains of pulses through it to our electric Stimulator.

    However, I find no terminal BNC for the output of the meter on the new device. Could someone teach me how do?

    Thank you

    Jay

    Hi, Jay.

    Big question.  The screenshot below will give you the Signal of Counter/Timer associated with its respective PFI line:

    This table is located in the NOR-DAQmx help (using terminals of NOR-DAQmx devices"OR USB - 6259 BNC).

    To access these lines PFI one of the BNC (User 1 and User 2) user-defined, the line due to PFI line of the user desired.  For example, if I wanted to access counter 0 Out of 1 BNC user, I would wire pin 1 USER on pin 12 of PFI.  Manual specifications USB-6259 BNC does not give a good description of how to access the user 1 and user 2 BNC, so I refer to page 9 of the Manual of the BNC-2110.  It's the same idea, just different pinout.

    Let me know if you need more information.  I hope that you are having an amazing day!

  • Generate a single pulse on several channels of an external trigger high-speed DIO

    Hello

    I'm trying to implement a system using a PCIe-6535 b connected to a high speed of SMB-2163 DIO.  The system must be configured to work with a camera send a trigger (at the beginning of each show) to the PFI4 which in turn sends a single pulse on three digital output channels to lasers.  Each output has its own specific deadline and the width.  There is no counter on the SMB-2163, so I think I need to use Pulse Width Modulation (PWM).  I saw this example and adapted to my system:

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

    However, when the source to enter the DAQmx VI of sample clock is set to PFI4 (instead of the on-board clock) to receive input from the camera, changes in behaviour.  The rate of sampling in the sample clock VI is ignored, and each element of the digital waveform is triggered.  I need the sequence to complete each after trigger.

    I am attaching a quick diagram of the sequence.  Any suggestions on how I can get this kind of events triggered? (With the help of LabVIEW 2013)

    Thank you

    Mike

    PLATES

    The external signal must be configured as a trigger for digital startup rather than the sample clock.  I do not think the 6535 redeclenchables supports digital output, so you don't have to restart the task after receipt of each trigger (something like this, however you can improve performance by committing to the task by using the task of control DAQmx before entering the loop).

    Best regards

  • I need to generate 3.3 V logic level Digital train of pulses with the NI PCI-6221. Can I change the level of 6221 OR logic output?

    I need to generate 3.3 V logic level Digital train of pulses with the NI PCI-6221. Can I change the level of 6221 OR logic output?

    The output cannot be changed. 5V to 3, 3V level controllers are readily available (Maxim, I think). As long as the scanning speed (etc.) is fast enough for your pulse train, even 3, 3V regulator would work. I don't know if NEITHER offers a module to condition TTL levels.

  • Trains of pulses from switching on the fly

    Hello.  I'm having a problem with my state machine.  To my experience, we need to have a two trains different pulse at the request of various properties with and the idle state of the activity.  To do this, I thought that a simple state machine would meet all my needs.  However, my state machine appears to be locked in any case I chose when I hit the run button.  I suspect it has something to do with how generate impulses, which is to call a task request node repeatedly using a while loop.  My initial solution was to include just one button to stop this loop before moving my case, but it was ineffective.  Not even stop the state machine, that's when the loop has been able to stop the signal.

    Now I think I have what I want, need or change how the task VI stop and screw clear task are called (simple wiring in my case), or some commands that resets any process when I switch my machine of the State to another State.  It's probably something simple I forget, but I don't really know where to start.  It seems it would be easy in view of the nature of the State machines.  I have attached a sample VI, which is a compact version of my work VI, which implies a synchronization pulse to synchronize several channels which would pass them all when status changes.

    Note: The idea is to have the program running at all times and relaxation with a button or a switch in the experimental field.

    I use 2009 SP1, if you're curious.

    If you want that digital reading at each iteration of the loop, you must place the Terminal inside the loop. Currently, it is only read once at the beginning of the program, and then never again.

    Try execution highlighting to see for yourself.

    Overall, you have to rearchitect the whole program. Currently, it requires controls to be pressed in a certain order.

  • Generating Train.vi impulses

    Hello

    I use the PCI6023E card and I want to generate a pulse train ended up on one of the counters.  In my simple program, I don't have the Train.vi pulse generate with the following input parameters.

    Device number = 1

    Meter number = 0

    OK, I need connect the 1 meter out put at the door of the meter... Solved.

  • How to generate a single pulse with DAQmx

    I need to generate a single pulse using DAQmx.  Many of the example of the AO screw blood generation using waveform (multi) .vi buffer generation.  This VI generates a + / amplitude.  I want that my pulse to go from zero to a positive amplitude.  How to achieve this?

    Thanks in advance.

    What amplitude and what pulse width?

    If you have found an example with regeneration, to get a unique waveform, you can disable the regeneration and just do a single entry.

  • Generate the train of pulses with counters

    Hello

    IAM using PCI6023E data acquisition in labview 7.0.  I need to generate a continuous 5 kHz 1usec pulse train and I have exhausted my two counter/timers.  Can someone proposes how to generate a pulse train without using timers?  I/O maybe?

    Thanks in advance

    HV

    voh720 wrote:

    Yes, I have outputs analog left.  Can analog get the kind of resolution that I mentioned?

    Thank you

    According to the specifications, the 6023 has not all analog outpts. Quite difficult to use what you don't have.

  • Generate 2 Trains of pulses with different frequencies and Heavy duty with a PCI-MIO-16XE-10

    Hello

    I use a Board PEAK-MIO-16XE-10 DAQmx with LabView 8.6 to run a door for a piece of equipment controller. I need to create 2 separate, all pulse trains both trigger simultaneously, each with their own cycle frequency and duty. So far, I can create 1 pulse train and it works exactly as I need, however, whenever I try to enable the second train (called a door in this VI), I get an error saying: "the specified resourse is resevered," even though the first door is configured to use counter 1 and the second must be set to use counter 0. As I understand it, this map contains 2 separate counter/timer modules, so this should be possible. A large part of the rest seen in the attached VI's preparation for the signal processing and other controls that I use that I finished this VI.

    Thank you

    <><>

    Hi Eric - you forgot to attach your VI.  I did what you're trying to do with a similar card, but who has been using NOR-traditional DAQ (before DAQmx).  It should be possible with DAQmx as well.  A quick search on the forums turns up these two links, which suggests that your problem is that you try to create two tasks separate DAQmx, one for each counter.  What you need to do is create a single task DAQmx which includes the two counters, then together, that their frequency and duty cycle regardless.

    http://forums.NI.com/NI/board/message?board.ID=170&message.ID=241602

    Causes of error NEITHER-DAQmx-50103

  • Control the time times of high and low of trains of pulses in C++

    Dear team of support of National Instruments,

    Here's what I have so far:

    I was able to generate the number of pulses (a pulse = a rising edge and front descending one) that the user has indicated via the GUI I created in Visual C++ 2008.

    I use DAQmx 8.6.

    I use the DigitalSingleChanWriter (hopefully, that's what it's called).

    I use for the synchronization of the sample, on request.  I tried to use all other types of calendar but I always get a DAQException run the error that says I can use only OnDemand calendar.

    OK, so here's the problem:

    I have a USB-6008-6009 card connected to an oscilloscope.  I know that the connection is correct, otherwise nothing would appear.  However, if I send say... 6 impulses, the delay between the first rising edge and the first falling edge is dramatically different and then the second and the third.  If I return my samples, I get an assortment of new and totally random times.  So finally, my question is "Is there a way to control the time of a great time and a bit of time?"

    I use a Compaq 2003 lap top, what is worthy of the rubbish heap.  I'm not to blame on this right away as problems that will not solve the problem at hand.  Although I understand if it's actually the problem for random times, but I would still have no way to control the time themselves.

    I hope that I don't have drug it too long, but I decided that distribute information on would be better then just a few tid bits.

    Thank you for support, that you can offer,

    Daniel

    OK, so I just returned from the lab, and this is what I got:

    I was able to control the time at the time of the high and low by using the "WriteSingleSamplePort" of the DigitalSingleChanWriter method.

    I put it in a loop that repeated many times that the user wanted impulses.

    At the beginning of the loop, I used a delay function that I wrote and delayed for a time given and then a pulse with a value of 255 and then delayed again and a pulse with a value of 0. And then restarted the loop.

    In the end, it works.

    Of course, I have another question.  I kept reducing the amount of time between two pulses (1 s, .5s, .2us and so on).  However, once I have diminished the time of secondes.01 or a millisecond, the pulses on the arrested oscilliscope becomes smaller.  It seems that past 1 millisecond Board USB-6008/6009 is unable to deal with the exigencies of the moment.  Or else the computer trash part on that I cannot deal with the exigencies of the moment.  But I believe that the Council is not at fault because it was designed for this exact sort of thing, could you tell me if there is no limitation to the Commission which prevent production of pulses in or within a period of 1 millisecond.  Thank you very much.

    Thanks for all the help,

    Daniel

    P.S. I'll stop you buggin with big messages that I promise you.

    P.P.S.  If someone wants to see my source code for their own project, I'd be more than willing to share.  Please email me or leave a message here.

  • How to set the output meter channel to generate a signal pulse using DAQ6008

    Hello there I am generating a pulse signal of 100 Hz and a duty of 20% of the 6008 data acquisition cycle using visual studio 2013. I have code that needs to generate this but I'm not sure on how to set the channel output meter. When I run this NI MMAX and my vb error code indicates that the physical channel is not supported. I am a user of data acquisition were first and would appreciate any help offered.

    If you look at the USB-6008/6009 User Guide and specifications, you will see that the counter in these devices cannot rely as edges of entry. It cannot generate a pulse.

    Lynn

  • Generate/play digital Pulse - which one to use?

    Hello

    I use NEITHER cDAQ-9172 (with NI 9472 output module and input module (9421))   I am trying to generate a pulse, run it through a system (just a resistance at this point) and then read it in labview.  I am in a position to generate the momentum without problem, but whenever I try to read it I get an error about the clock.  Any suggestions?

    Thank you

    Looks like that I thought about it.  I had the said clock as timed material, but my hardware was wired wrong.  Once I corrected the connections it worked, so that must have been the problem.

  • Generate a single pulse in response to an external trigger

    Hello

    I have a PXI-5412 arbitrary signal generator, a simultaneous sampler PXI-6115 and PXI-6652 synchronization module. I would like to the PXI-5412 to produce a square pulse and PXI-6115 to acquire a set of data in response to a digital triggering module. (In the future I might want to generate a slightly more complex Wavelet, but for now a square pulse will do).

    I used This example as my reference. So far, I used successfully OR Sync to initiate through DAQmx data acquisition when arrives the trigger. However, I can't do the same thing with the generation of pulses. I've been able to get NOR-FGEN to produce continuous square waves, no simple impulses.

    The-OR-FGEN Arbitrary Waveform Generator VI Express lets me select finishes generation Mode. How can I configure the same screws no express?

    While we are at it, is there a better way to accomplish my synchronization the procedure I described (DAQmx, NOR-Sync + NI - FGEN)?

    Thank you!

    You can get this set as a single trigger mode. You could also learn how to express VI which make a right click on it > open Frontpanel.

Maybe you are looking for