Generate single pulse with DAQ card

Hi
I was trying to use a VI found on the NI site "generate single
pulse "DAQ-STC" but another VI is requested in order to run;
that's "set pulse specs.vi". Someone knows where to find it?
thanks for all
bye
-Claudio
Claudio Vinegoni
URL: http://www.gapoptique.unige.ch/members/vinegoni/default.htm
GAP-Optique Phone: +41 (0)22 7026158 (lab)
University of Geneva : +41 (0)22 7026082 (office)
Fax: +41 (0)22 7810980
20, Rue de l'Ecole de Medecine Email: [email protected]
CH-1211 Geneva
SWITZERLAND
Sent via Deja.com
http://www.deja.com/

As of NI-DAQ 6.9, you could find the Set Pulse Specs.vi in LabVIEW/vi.lib/daq/zadvctr.llb.
Erin
Claudio Vinegoni wrote:
>>>Hi>I was trying to use a VI found on the NI site "generate single>pulse
"DAQ-STC" but another VI is requested in order to run;>that's "set pulse
specs.vi". Someone knows where to find it?>thanks for all>bye>
-Claudio>-->************************************************************************>Claudio
Vinegoni>>URL: http://www.gapoptique.unige.ch/members/vinegoni/default.htm>>GAP-Optique
Phone: +41 (0)22 7026158 (lab)>University of Geneva
: +41 (0)22 7026082 (office)> Fax: +41 (0)22 7810980>20,
Rue de l'Ecole de Medecine Email: [email protected]>CH-1211 Geneva>
SWITZERLAND>>****************>>>Sent
via Deja.com>http://www.deja.com/

Similar Messages

  • How do I generate a pulse with a user specified puse duration, down time and repitition, and then out put to a graph?

    How do I generate a pulse with a user specified puse duration, down time and repitition, and then out put to a graph and then to daq ports? 
    I used lab view in engineering class, but that was the extent of my usage and after fiddling around in lab view and looking on the web looking for solution, I could not produce desired results.  My professor wants me to produce something that will output a pulse for a specified duration, then downtime for another specified duration and then repeat the process a specified amount of times.  
    I am using labview version 7.1
    Thanks in advance.

    Hello,
    Are you using hardware (DAQ card) to generate this pulse or are you planning on doing this all in software.  If you have a DAQ card in LabVIEW you can go to Help » Find Examples and then select Hardware Input and Output » DAQmx » Generating Digital Pulses » Gen Dig Pulse Train-Finite.vi.  This will use a counter from your DAQ card to generate a finite number of pulses at a specified frequency and duty cycle.  Give this a try, or let me know if you are not using hardware, and we can figure something else out.
    Regards,

  • Unable to count fast pulses with DAQ(pcmcia card)AI-16E-4, using the example vi

    I am using the AI-16E-4 PCMCIA Daq card to count pulses from a device that has an open collector pulse output. I am current just trying it out to see if I can get it to count the pulses correctly before I go ahead and further develop the program. I am using the Example program for counting pulses with this device.
    What I am finding is that when I increase the pulse rate above about 20,000hz it slows down and then stops counting pulses. The documentation for this device states the max input frequency is 20mhz, therefor it should be able to count the pulses I am planing on providing. The fastest rate the device I am connected is around 2.mhz. Can someone tell me how to get the AI-16E-4
    to count these open collector pulses.
    Attachments:
    regulation_tester.vi ‏89 KB

    Hello;
    You need, first of all, to provide a pull up resistor for the open collector device, in a way that its high state fits within the TTL levels.
    Once that is done, you just connect its output to the counter source input. The device should be able to go up to 20MHz, with no problem.
    Regards
    Filipe A.
    Applications Engineer
    National Instruments

  • How to generate a pulse with 9472?

    I am trying to generate a single 8V pulse of 10ms duration on multiple channels of the 9472.  The 9472 is in slot 4 of the 9172 compact daq chassis.  To test my results, I have connected an oscilloscope to one channel of the 9472 (with no load attached).  I tried modifying the Create Digital Waveform VI from the Write Dig Chan-Ext Clk example VI.  In doing so, I generated a binary array with the first half of the array filled with all 0's and the second half of the array filled with all 1's.  When I triggered my O'scope on a rising edge, I saw the channel turn on (also the LED was lit on the 9472).  However, the channel stayed on even after the routine had completed (LEDs were lit solid).  So to try to turn the channel off, I appended one 0 to the end of my array.  Now the O'scope won't trigger and I see no sign of the LEDs on the 9472 blinking.  Any ideas how I can solve this problem? 
    I was able to get a single pulse of the proper duration by setting up a task in MAX with the 9472 in slot 5.  But in doing so, I was only able to generate the pulse on one channel.  I need to be able to parallel multiple channels for my application.

    I am trying to generate a single 8V pulse of 10ms duration on multiple channels of the 9472.  The 9472 is in slot 4 of the 9172 compact daq chassis.  To test my results, I have connected an oscilloscope to one channel of the 9472 (with no load attached).  I tried modifying the Create Digital Waveform VI from the Write Dig Chan-Ext Clk example VI.  In doing so, I generated a binary array with the first half of the array filled with all 0's and the second half of the array filled with all 1's.  When I triggered my O'scope on a rising edge, I saw the channel turn on (also the LED was lit on the 9472).  However, the channel stayed on even after the routine had completed (LEDs were lit solid).  So to try to turn the channel off, I appended one 0 to the end of my array.  Now the O'scope won't trigger and I see no sign of the LEDs on the 9472 blinking.  Any ideas how I can solve this problem? 
    I was able to get a single pulse of the proper duration by setting up a task in MAX with the 9472 in slot 5.  But in doing so, I was only able to generate the pulse on one channel.  I need to be able to parallel multiple channels for my application.

  • Create pulse with 6542 card

    Hi just wondering if you can create output pulses that are in sync with a clock in signal input (all TTL) with the 6542 PXI card?  For example control the pulse width and delay with reference to an input clock signal?  If so any examples, thanks.

    Hey svt4cobra6,
    Do you need the 1 ms pulse to go out on a PFI line? If not, I would recommend using one of the data lines on the 6542 to create your pulse. As smercurio_fc mentioned earlier, you can use the Example Finder, and browse by task, then go to the Hardware Input and Output -> Modular Instruments -> NI-HSDIO (High-Speed Digital I/O) folder. Here is where you can find a lot of examples specific to the HSDIO device you are using. For your application, it sounds like you want to do both generation and acquisition, so check out the folder that says Dynamic Generation and Acquisition. One good one you could use to kind of simulate the device you will eventually hook up is the "Dynamic Generation and Acquisition - Source Synchronous". This example is probably not going to do exactly what you need it to do, but you can get some ideas from it, like how to export a clock with your data, or input a clock from your DUT, and how to use a trigger for when to acquire data.
    Now this source synchronous example uses Strobe as the Acq clock, but if you want to generate data based on an external clock, you will probably want to check out the "Dynamic Generation with External Sample Clock" example (found in the Generation -> Non-Scripted folder). If you are basing your pulse off of an external trigger and an external clock, you should check out the Specifications (Start -> Programs -> National Instruments -> NI-HSDIO -> Documentation -> Specifications) of your device for the Delay from trigger to digital data output, to make sure you can account for this if you need to.
    For the acquisition of your serial data, that also has a chip enable, you could check out the Dynamic Acquisition Hardware Pause Trigger, if you want to acquire data when your chip enable line is high, and then not acquire (or pause acq) when that line goes low.
    Now back to my recommendation for using the data lines as your pulse generator instead of a PFI line, you can use the onboard clock rate, let's say you use the max rate of the 6542, which is 100 MHz, which will generate samples every 10 ns, you can generate 0's until you are ready to output your 1 ms pulse, and then you would generate 1's, as many as you need for your 1 ms. I'll let you do the math. If you don't want to "oversample" this much, then you can slow down your clock rate to maybe 10 times your 1 ms pulse, which you would then output 10x "1's" for your pulse, and then however many 0's before and after your pulse. So basically all you are doing is using data (0's and 1's) to build your pulse. You could also use the Digital Waveform Editor to help you do so. One advantage of using a data line to generate your pulse is that you can vary the pulse width by adding or removing 1's, and when you are running at 100 MHz, you can get 10 ns steps of how much you want to change your pulse width.
    Again, there will probably not be a specific example that does your exact example, but by using bits and pieces of the existing examples, you should be able to figure out which functions you will need to do what you want. Finally, if you are just getting started, I recommend not only looking at a bunch of the HSDIO Example programs, but also the NI Digital Waveform Generator/Analyzer Help document (or the online version), as there is a ton of great information in there about your HSDIO device, like how it works, what features it has, and how to program it. I hope this helps. Please let us know if you have any further questions or concerns. Thanks, and have a great day.
    Regards,
    DJ L.

  • Generate DES key with java card with JCRE 2.1.2

    Hi everyone,
    I want to generate DES key in my applet . my card supports GP 2.0.1 and JCRE 2.1.2 .
    I have tested my applet with JCRE 2.2.1 and used this JCSystem class functions to generate DES key and it compiles and works correctlly .
    but when I want to compile my applet with JCRE 2.1.2 I recieve an error which says that API 2.1.2 doesn't support JCSystem class .
    so I'll really appreciate it if anyone could tell me how can I generate DES key with JCRE 2.1.2
    and also I use JCSystem class functions to get my card's persistent and transistent memory , so with this class not working on JCRE 2.1.2 I have problem to read my free memories too .
    So I'll appreciate your help on this matter too.
    Best Regards,
    Vivian

    Hi Vivian,
    I don't seem to have any problem with the code you posted. What is the error you are getting? Is it with the compiler or with the CAP file converter? If it is a compiler error, you will need to ensure that the Java Card API jar is in your build path.
    Here is a simple class that works with JC 2.1.1 (which will work with JC 2.1.2 as well). I have confirmed that this applet compiles and will return encrypted data to the caller.
    package test;
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    import javacard.framework.ISO7816;
    import javacard.framework.ISOException;
    import javacard.framework.JCSystem;
    import javacard.security.DESKey;
    import javacard.security.KeyBuilder;
    import javacard.security.RandomData;
    import javacardx.crypto.Cipher;
    * Test JC2.1.1 applet for random DES key.
    * @author safarmer - 1.0
    * @created 24/11/2009
    * @version 1.0 %PRT%
    public class TestApplet extends Applet {
        private DESKey key;
        private Cipher cipher;
         * Default constructor that sets up key and cipher.
        public TestApplet() {
            RandomData rand = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
            short lenBytes = (short) (KeyBuilder.LENGTH_DES / 8);
            byte[] buffer = JCSystem.makeTransientByteArray(lenBytes, JCSystem.CLEAR_ON_DESELECT);
            key = (DESKey) KeyBuilder.buildKey(KeyBuilder.TYPE_DES, KeyBuilder.LENGTH_DES, false);
            rand.generateData(buffer, (short) 0, lenBytes);
            key.setKey(buffer, (short) 0);
            cipher = Cipher.getInstance(Cipher.ALG_DES_CBC_ISO9797_M1, false);
        public static void install(byte[] bArray, short bOffset, byte bLength) {
            // GP-compliant JavaCard applet registration
            new TestApplet().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
        public void process(APDU apdu) {
            // Good practice: Return 9000 on SELECT
            if (selectingApplet()) {
                return;
            byte[] buf = apdu.getBuffer();
            switch (buf[ISO7816.OFFSET_INS]) {
                case (byte) 0x00:
                    cipher.init(key, Cipher.MODE_ENCRYPT);
                    short len = cipher.doFinal(buf, ISO7816.OFFSET_CDATA, buf[ISO7816.OFFSET_LC], buf, (short) 0);
                    apdu.setOutgoingAndSend((short) 0, len);
                    break;
                default:
                    // good practice: If you don't know the INStruction, say so:
                    ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
    }Cheers,
    Shane

  • Simulation PID on control and design with DAQ card how to connection

    hi guys.. i am a beginner for LabVIEW 
    i have homework design PID on simulation path and i found by google
    how to connect simulation path to DAQ card ??
    anybody can help me
    which function to connect it???

    Duplicate Post

  • Simultaneously generate a pulse with each AO iteration

    Dear Filipe :
    Would you please take a look at the comment of the question "Synchronize counter and 2AO boards"
    I don't know whether you have read it.
    Is it possible to generate a pulse train instead??
    Thanks!!

    Dear Filipe:
    I attach a Word file,and I describe my problem in it.
    Thanks!!
    Attachments:
    Generate_a_delayed_pulse_with_AO_boards.doc ‏25 KB

  • Data acquisition with daq card 6533

    Hi all,
    i need to develop a c++ (visual studio .net, no measurement studio)
    program that performs data acquisition at a sampling rate of 10Khz
    using a windows xp laptop and the daq6533 card.
    The program must sample 8 digital signals. Each signal has a limited
    time duration, say a few seconds, and acquisition should start on the
    first rising edge of a signal, and terminate on user input. Browsing
    through the code provided with the driver, i found the examples in the
    cdio folder. It seems to me they almost do what i actually need.
    Unfortunately, many of the functions used there are not supported by
    the 6533 card, in particular the GPCTR_* family. I've read somewhere
    else that this card does not have an hardware counter, is that exact?
    I'm a beginner in this field, so i don't know what are possible alternative solution to my problem (if any).
    Thanks for any help.
    walter

    Thanks for your reply.
    I don't know actually whether i need to use counter-related functions. My problem is the following:
    I need to sample 8 digital signals with a frequency of 10khz. Every signal have a duration of a few seconds in time, and they come from sensors attached to a train's railway. Acquisition begins on the first rising edge of a signal (which coincide with the passage of the train), and end with user input (which should be after the train has passed).
    It would be of great help if you can point me to a relevant example, or give me some basic guidelines on our to proceed. If you need more information, please just ask.
    thank you very much.
    walter

  • I need help in understanding with DAQ card best fits my purposes

    I need a direct face-to-face meeting with an applications engineer.

    Hello Akwan,
    National Instruments has a whole technical department to help you choose the best equipement for your applications. Application Engineers will help you with any problems you have regarding devices you already have. Call (888) 280-7645 and a Technical Representative will assist you with your choice.
    Thank you for calling National Instruments
    Serges Lemo
    Applications Engineer
    National Instruments

  • Generate a single pulse - long width ( 160sec)

    Hello,
    I have a DAQ Pad6052E. I want to generate a single pulse with one of the 2 counter/timer. It works for pulse width (high state) below ~160secondes. For my application I need to generate a much longer pulse width.  I want to have a pulse width >200 secondes.
    If somebody can give me some advices, that would be very appreciated.
    Thanks,

    In addition to JB's ideas, here's another one if your other counter isn't being used.
    Use the other counter to generate your own custom clock.  Let's suppose it's at 1000 Hz.  Then setup the counter you really care about to use the 1000 Hz clock signal as its timebase.  This will extend your duration capability by a factor of 100.
    Your duration limit is based on the ratio of count register size to timebase frequency.  Your board's counters max out at 2^24.  Your max duration is approximately (2^24 / timebase freq).  The lowest internal timebase is 100 kHz which is why you're limited to about 167 seconds.  With your custom 1 kHz clock, you'll get 100x that much.
    -Kevin P.

  • Generate pulse with NI-6024

    Hi,
    can I generate defined pulses with the NI-6024 Card? I'd like to generate 100 Pulses with 0.27 Hz frequency.
    I'm using LabView 7.1
    Yves

    You can add the attached vi between the 'Frequency control and the DAQmx function in 'Gen Dig Pulse Train-Finite.vi' in the examples. This will change the frequency slightly to one that will work. You can add a local variable for the 'frequency' control to see what it changed to. You have have to increase the number of visible decimal places to see the change.
    Randall Pursley
    Attachments:
    Set Frequency.vi ‏14 KB

  • Generate a delayed pulse with analog trigger

    I want to generate a pulse with counter when the gate of counter receives a voltage value which is generated by analog output chanel,is this possible??
    I am using PCI-6713
    Thanks!!

    You can generate a triggered pulse in a counter by sending a signal to the gate from the Analog output, as long as such analog output meets the operational contitions of the counter of the PCI-6713. Just make sure that the signal does not exceed 5V. The trigger on the gate pin will be taken as low from 0 to 0.8V and as high from 2 to 5V.
    Thanks for contacting National Instruments!

  • PCI 7830R series DAQ card with SCB 68

    Can anybody how to mapp PCI 7830R card with SCB68, which was connected in 0 connector? is thier any VI as an example for this

    Hello Sir.... i created a VI in Project Explorer Methode to test the working condition of DAQ card PCI 7830R which i installed in my PC , in both Sub VI and the Host VI the programme is working , now i connect the SCB 68 hardware with DAQ card thro RMIO cable , i wired the DIgital Pins of SCB68 (respectievely with DAQ card Pins) in a Bread Board an place a LED corresponding to pins to show the real world output...
      Now my prob is after i connecting the wire i run the VI, in breadboard the LED's are not getting ON same status is displayed in Labview Front panel too , when i remove the wire the LED in front panel of both sub and Host VI is getting ON..... y this prob occuring? to solve this what i have to do? i want to show realworld output (LED On in Bread board) thro SCB68... how to solve this?
    Attachments:
    Digi.vi ‏37 KB
    Digi (H).vi ‏121 KB

  • Generating Pulses with CTR-502

    Hi,
    I want to generate 100 Pulses with a frequency of 0.27Hz. After having done no other pulses should be generate until told so.
    How can I do that? I'm using an CTR-502 and LabView 7.1.
    Any help would be great. I read most of the documentation but either my english is to bad or I couldn't find any solution.
    Yves

    Hello Yves.
    Sorry for me currently not having a CTR-502 at my hands.
    Therefore I had to do some "copy and paste" from a project that I worked on in the late 2003.
    I hope this VI is a helpful startup - although I could not test it before posting it to you (as already said: I don't have a CTR-502).
    The VI is small, configurable and uses low CPU resources.
    On a RT target like FieldPoint (FP) or compactFP this VI should typically run at least with "high priority".
    I hope this will help in getting your job done.
    BR, mgm
    Attachments:
    constant Frequency with FP-DigOUT.zip ‏17 KB

Maybe you are looking for

  • Mid month joiners PF Projection Issue

    Hi Team, We have an issue with respect to PF Projection for the employees who joined in mid month. We are on actual basis as an income tax projection. Employee joined on 16.04.2014 and his basic is 20,000 rupees. Since he joined in mid month his PF w

  • OSX Mountain LION 10.8 Epson CX7400 and Windows 7

    I have troubles with my printer via Network: I installed first the epson CX7400 via USB on the OSX and let OSX download the latest drivers automatic then I made a print and all ok then I return the printer to the machine with windows 7 that share tha

  • Yellow Cast to HVX200 Footage in FCP - but fine on NTSC Monitor

    Dear Folks: I am shooting two cameras with an HVX200 and an HMC150 in a room where the only light source is daylight-bulbed Kinoflos. The lights are fixed, as it the set. Nothing changes. There are no windows. I have two NTSC monitors, both set to ca

  • Which one do I get?

    hello peeps! I am looking for a bluetooth headset you know the ones that go on your ear I guess the wireless kind. Now can I get any kind or do I have to buy the apple one?

  • DNG Converter

    Hi, Does the Adobe DNG converter convert back to a TIFF format ? Essentially I am looking for an Adobe product that can batch convert DNG files with edits into the correct TIFF. Many thanks.