How do I generate an Impulse signal?

Hello,
I'm relatively new to LabVIEW and I need to generate an impulse (Dirac Function) signal into DC motor. At the same time, I need to be able to modify the width of the impulse signal. 
I am currently using LabVIEW 7.1. 
Regards,
Jemuel Ong
National University of Singapore
Solved!
Go to Solution.

Thanks for replying!
I'm using a WinXP machine connected to PCI-6024E and AT-MIO-16E-10. The whole setup is supposed to drive a DC motor and I'm supposed to design an experiment to input an impulse signal to the system and get an impulse/step response. I have to be able to define the width of the impulse signal.
Regards,
Jemuel Ong
National University of Singapore

Similar Messages

  • How to continously generate a voltage signal with dynamic amplitude.

    Hello all,
    I am looking for ideas and pointers (help in other words). I would like to generate a voltage signal (sine for example) on a AO of my NI cRIO-9263 (DAQmx). The signal should be:
    continuous (without jumps ie. smooth)
    dynamically able to be change the amplitude, frequency and sampling rate.
    interuptable so that the AO can be turned off.
    I have tried to use the DAQ Assistant but once it runs in continous mode, I have the impression that the waveform should not be changed. Is there maybe a way where I send repeatedly N samples of the waveform to the AO and gain more control over the signal that way. But if I do that how can I ensure that the signal is continous?
    Further more this output has to be generated in an event application ie. in the background.
    Your ideas and input is appreciated. Thanks, Bernie

    See if this example VI helps
    Ches this one too

  • How do I generate custom-made signals (impulses) from the parallel port

    I am trying to generate some simple pulses to drive an external device. I am sure this is simple, but I'm not sure how to do it in LabView. I need to generate to TTL-level (2.4 - 5v) pulses that are spaced 500ms apart and occur every 34 seconds (that's the period).
    Any suggestions?

    ilogix-
    The easiest way to write to the serial port in LabVIEW is with the Port Out.vi. You can find the help info here. You can find the address of the parallel port in the properties (located in Control Panel>>System>>Hardware Tab>>Device Manager) under the Resources tab. IT is the first number in the I/O range property (usually 0378).
    This is a digital line and the parallel port is written as a byte so your labVIEW program will need to write a byte, delay and write another byte to get a "waveform".
    Xaq

  • Generating double impulse signal

    Hello everybody,
     i'm about to
    generate a function which acts as a double pusle signal in which
    changing the time  of each interval is possible
      i can see the signal and the changes of the time interval on the wavediagram of the frontpanel
    but the problem that i don't
    get the expected signal at the digital output line17 from the DAQmx
    actually there is no output at all from line17  however there is no error message in the code when i run the simulation
    i chose another output as an alternative but  still there is no
    output signal too  however i checked these outputs with another
    code
     to test them if they work or not and the answer was positive also
    with the testpanel  they  react with the changes which means
     that configurations of the DAQmx is right
    in my code i changed the rate many times to be able to see signal on
    the oscilliscope not only in µs but also in different dimentions of time
      but still there is no output
    all of this mean only i have something in the code which i don't know is the reason of  not getting the output signal
    i
    send my code as an attachement may be you can  try it 
    and  tell me  where is  the reason  for not getting
    this siganl as an output signal ?????????????
    i have labview version 7.1
    my device is NI-PXI 6259, it has 32 bit port
    thank you very much
    Satrinay
    Attachments:
    Correlated_digital_output1.vi ‏143 KB

    Hello,
    I build a vi which creates a twinpuls. If you look into the SubVI Twinpulse_train_generate.vi you see how to generate such a twinpuls signal.
    The structure of the puls is:
    low ticks 1 --> high ticks 1 --> low ticks 2 --> high ticks 2.
    The Puls width is: (1/rate)*(high ticks 1)
    In the Zip file are:
    1. Twinpulse_train.vi
    2. _Utility.llb (Get Terminal Name with Device Präfix and DWDT Boolean Array to Digital)
    3. Twinpulse_train_generate.vi
    To start it use the Twinpulse_train.vi (build with LabVIEW 7.1)
    regards
    Fabian Kinzelmann (NI Germany)
    Attachments:
    Twinpulse.zip ‏89 KB

  • How do I generate a RAMP signal w/ SigEx and SCXI for MTS-407 hydraulic controllers.

    I'm trying to generate a +/-10v full scale ramp signal to pass through two channels simultaneously. This signal will be used as external function [generator] for two MTS-407 servo/hydraulilc controllers connected to a single specimen. When I hit the "Start" button I need the function generator to generate a ramp (rate and amplitude) and pass this voltage off to both 407's.
    My first question I guess is: do I need a special SCXI module to access the NI-FGEN output signals or can these signals be passed through the DAQ card via the SCXI 1302 and Feedthrough panel?
    More question to follow...
    SCXI- 1000 Chassis w/ 1346 adapter
    PCI 6281 DAQ card
    SCXI- 1520 Bridge Board w/ 1314 Terminal Block (x2)
    SCXI- 1180 Feedthrough Panel w/ 1302 Block
    Signal Express 2012.
    Win7 Enterprise

    Hello,
    I am trying to do something similar to what you mention. I trying to use a labview program with a NI PXI-8106 and NI-PXI 6251 card to send a signal to a 407 controller through the external program BNC connector.
    When trying the software I don't get any signal send or response in the actuator.
    How did you solve this problem?
    Do I need special hardware?
    Please any help is appreciated
    Mi software is attached.
    David P.
    Attachments:
    ATTestControlV1.0.vi ‏261 KB

  • How do you generate a CHIRP Signal?

    The Chirp signal should generate a sine wave whose frequency increases at a linear rate with time

    The attached library (LabVIEW 6i or higher) includes different VIs that can help you perform sweep-based measurement, including a VI to generate a linear sweep (chirp). Note that the generation VI can generate your chirp in "one shot" or in multiple chunks (multiple runs) if you sweep is very long. You can use the reset control to re-start your sweep at any time. So the VI is functionally totally equivalent to any generation VI in the Analyze>>Waveform Generation palette. I hope this will work for you.
    Attachments:
    Sweep_Generator.llb ‏1056 KB

  • How can I generate 2 AOs ? ( ONLY ONE ok )

    Hello everyone,
    I need to generate 2 different square waveform AOs ( both have a 1sec cycle) : 
      N°1 : 5 ms high and the rest of the time low
      N°2 : 14 ms high end the rest of the time low
    n°1 and n°2 work fine when generated seperatly. However, the VI I have attached doesn't work when I want to generate  both signals at the same time.
    (I am using a PCI-6221 card and Labview 8.0)
    Would anybody know how I could generated those two signals at the same time?
    Any help would be great,
    Marc
    Attachments:
    2 AOs.vi ‏55 KB

    Cela n'est malheureusement pas possible avec une seule carte PCI-6221 car - comme indiqué dans le message d'erreur - les deux tâches entrent en conflit puisqu'elles utilisent la même ressource de la carte. Une solution - malheureusement onéreuse - consiste à utiliser deux cartes.
    Une deuxième solution pourrait consister à générer l'un des signaux à l'aide d'une autre ressource de la carte (sortie compteur ou numérique). Dans ce cas, la tension de sortie sera limitée à la plage TTL.
    Une troisième solution est décrite dans ce document. Elle consiste à utiliser un timing software pour la génération de l'un des deux signaux.  Ceci n'est applicable uniquement si l'un des deux signaux ne varie pas trop rapidement et que les exigences au niveau de la précision du timing pour ce signal ne sont pas trop élevées. Selon la précision attendue pour la durée de l'impulsion de 14ms, cela pourrait être une variante. 

  • How to control individual channel of signal generated from digital waveform generator?

    Digital waveform generator has 8 channels. I need to generate two different signals to HSDIO. How to modify and control two different channels? Also, how to translate pin outs from PXI-6541 to channels? I need to control signal into pin 1,3,29,and 31 individually.
    Thank you!!
    Solved!
    Go to Solution.

    You must combine your individual data into an array.  The digital waveform is simply a digital representation of the binary array.  It still boils down to bit 0 of each array element going to channel 0 (or the first channel you specify in Create Dynamic Channels).  The next bit goes to the next channel.  My last post is quite clear.  To display the array in binary, right click on an array element, then select Display Format, then select Binary.  You can also right click on the element, select Visible, then select Show Radix to display the small b before the number.  One more thing, in the Display Format window, uncheck the box next to Use minimum field width.  Then set the numeric just under the box to 8.  Then select Pad with zeros on left in the box below.
    You should not use waveforms until you learn more about how the HSDIO operates on input data.  It isn't hard to combine waveforms, but it also isn't as clear as using an array of U8 or U16 or U32.
    Trying to explain further.  The first number to be writen to the HSDIO will have this effect:  Bit 0 (LSB) of the number gets written to the first HSDIO channel you specify.  Bit 7 goes to the 8th channel you specify.  If you don't specify 8 channels, the bits get ignored.  So wiring in one number will produce only one bit on each channel.  In other words, the number already combines the bits of all the channels you specify.  You don't combine anything yourself.  Look again at my picture on my last post.  By wiring in an array, you cause a bit pattern to be generated.
    I hope this is more clear.
    - tbob
    Inventor of the WORM Global

  • Generating an input signal

    I have completed the FPGA Module tutorial and I am attempting to generate an input signal, but i really don't understand exactly what is going on in the tutorial.  I have two FPGA I/O nodes in the FPGA VI that are labeled "ADC 0 PORT A_I" and a corresponding one labeled Q as well.  I'm assuming that these generate a sine wave that the tutorial used as the input signal.  I want the input to be a sine wave with noise, and Mauricio suggested using DDS, but I don't know exactly how to add this to the existing FPGA VI that I created in the tutorial.  Can anyone help me out on this one? 

    I'm a bit confused by your post. The FPGA Module tutorial guides you through the creation of a VI that acquires a signal. The I/O nodes labled "ADC 0 Port A I" and "ADC 0 Port A Q" are the I and Q elements of the acquired and downconverted signal. Just to be able to test this code, the HOST VI also configures one of the Analog Output channles in "Single Tone Mode" and therfore generates a sine through it. However, the FPGA is not doing anything to generate the sine tone, it's the DAC which is configured to generate the sine tone.
    The I/O nodes that you need to use to generate signals are the "DAC 0 Data" and "DAC 0 TxEnabled". You will also need to use another clock, the "DAC 0 IQ Clk".You might want to read some documentation on the Analog Output and look at the IQ Output example. You can find the documentation on this post: http://forums.ni.com/ni/board/message?board.id=ifrio&message.id=140

  • How can we generate javadocs with Jdev3

    Hello,
    I'm using JDeveloper3 to create some javabeans. I don't know how I can generate javadocs from JDeveloper3 with JDK1.2.2
    Nicolas

    With this information I don't think, that the 7334 is the right board for your application. The 7334 is a motion control board for stepper motors. As control signals it provides a step signal with variable frequency and a direction signal (high or low for fwd. or rev. direction). The step signal is generated onboard and controls the motor's trajectory (acceleration, velocity, travel distance). The duty cycle of this signal can't be changed by the control program, so this signal can't be used for your application.
    The PWM outputs provided by the 7334 is static. That means, you can set frequency and duty cycle only in software, which is quite slow and introduces significant and non-deterministic jitter (due to the asynchronous communication to the 7334 this is even true if you are using a real-time operating system). These limitations don't seem to meet your requirements.
    I still don't have a good idea about your timing requirements. If your response times requirments are in the upper milisecond regions (10 ms and above), you might be able to use the 7334. If low jitter and fast response times are important to your application, there are several alternative solutions including LabVIEW Real-Time with a multifunction data acquisition board and LabVIEW FPGA with an R-Series board.
    Regards,
    Jochen

  • Generating frequency hopping signal

    I'm working with 5661 + 5671.
    I want to generate frequency hopping signal with 5671. The frequency band is 2400-2500MHz, and the hopping rate is one hop per frame (1.024ms) or 976 hop per second.
    I also need to be able to test the hopping signal with 5661 RFSA.
    Does it possible to run such hopping test with the 5661+5671?
    Thanks,
    Chen
    Solved!
    Go to Solution.

    HI
    I want to generate a hopping signal with PXI-5671 RFSG and want to analys with PXI-5660 RFSA. While seaching for the related posts i came across ur post, The frequency range in my case is between 200-300Mhz but i will use 200-220Mhz due to BW of 20Mhz...the hopping rate i wil use is very slow as compared to urs..i m trying to do this with 10-20 hops per second..
    I m new with the hardware i have used it to generate and analyz the signals but stil unable to generate the hopping signal with predefined hopping sequence and hopping rate...
    can you guide me that how to do this????or can u give me a copy of ur VI so that i can learn it from ur program and regenrate with my specs to chk weather it works or not...??
    I wil b realy thankful if u can help me in anyway....
    REGARDZ

  • Generating a digital signal

    Hello,
    I am trying to  generate a digital signal which can be controlled in terms time i.e. Switching ON for 10 minis off for 5 minutes. I tried to generate a digital signal which is going high but unable to control it. As I am the beginner in labview any kind of help is appreciated.
    Please see the attachment for the developed block diagram
    Attachments:
    digital signal generation.vi ‏17 KB

    It appears that all you posted is one of the shipping examples. Is that all you've tried? You can't control it because you're not actually doing anything inside the loop. You're simply setting the value high before the loop starts, and not changing it in the loop. What kind of device do you have? Is it software controlled? If so, you will need to keep track of the time inside the loop. You can use the Elapsed Time VI to do this. Attached is a simple example to get you started to see how this can be done. I'm sure you can figure out how to integrate what you did and what I've shown you.
    To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.
    Attachments:
    Switching signal.vi ‏29 KB

  • Generate and acquire signals from Walkie Talkies

    Hello, i am a Portuguese Student and i have some problems in a Academic Project.
    The following project consists in two Walkie Talkies that are link to a USB 6009.
    One of the Walkie talkies are attached do AO0 and ground with the objective of generate a signal to the 6009 then the other Walkie talkie connected to Ai0 and GND have to acquire the same signal that i generate in the other one, this two signals have the main problem that needs to be represented in the same Chart or Graf.
    Please can anyone help me in this question and send me a (vi), i would greatly appreciate.
    something send me a post or email for [email protected]

    Hello Lynn,
    Sorry about the late response, but only today i have access again to the USB 6009 in the LAB.
    In below are the graph from the input signal, the first is the graph from the Walkie Talkie (receiver) when the button from the Walkie Talkie that send the signal are not press. What we see is only noise and others frequency's.
    In the other graph we can see a different graph this graph is from the  Walkie Talkie (receiver) but when the button from the Walkie Talkie that send the signal are press where we can see that is a different kind of signal and the receiver are ready to receive the signal and are receiving some signal from the other walkie talkie.
    First I need some help for this first steps
    1- But how can I generate a signal wave and send it from the other Walkie Talkie (transmitter), I used a Basic Function Generator
    2-How can I see in  the Walkie Talkie (receiver) if he receive the Signal that I generate in the transmitter, The graph changes of frequency and amplitude always that I press the button of the transmitter Walkie Talkie.
    3-How can I put the two signals in the same chart or graph, The main problem is like you said the USB 6009 is too low sending signals.
    Sorry my English, I appreciate any help
    Thanks 
    BTP
    Attachments:
    input data.png ‏33 KB
    input receber.png ‏37 KB

  • "How do I generate a sequence of waveforms, like first a sine wave, then a square one, and say again a sine wave?"

    "Hello everyone, I hope someone can answer the following question. How do I generate a sequence of different waveforms, with different attributes?
    Like, i want to generate a sine wave for some time, then a square pulse of some width and then again a sine wave of some other time. Finally I want to repeat this sequence. I'll really appreciated it if I can get an answer soon. Thank you!

    From the previous comments I am assuming that your waveforms are arrays, rather than the waveform data type. I am also assuming that the sine waves on both sides of the square wave are the same signal.
    If so then I suggest a slightly different approach. 1. Generate your sine wave, rather than the empty array. The length should be the length of the entire end signal.
    2. Generate the square waveform. You can either generate it at the length you need, or you can generate a much larger square wave, and then use the Array Subset VI to get the portion you need. Which method you use depends how you want to implement the whole method.
    3. Use the Replace Array Subset VI to place the portion of the square wave at the location (index) of the original sine wave you ge
    nerated.
    The result of this method will be an array that starts with your sine wave, and then at the index you choose it will place the square wave of the length you want right into the signal, and then finish up with the sine wave for the rest of the signal.
    Evan Collier
    Application Engineering
    National Instruments

  • Generating Multiple Modulated Signals

    I was a bit surprised I didn't see this on the forums, though I am new to the RF gear.  What I would like to do is generate two modulated signals, such as 802.15, on two different frequencies.  I am already able to create the signals individually using the modulation toolkit.  I am using a PXI-5671 RFSG.  I have found how to generate with interferance two CW tones in the examples, but do not see how to generate the two modulated tones.  I also need to be able to set one of the modulated signals to a lower power than then other.  I am trying to test adjacent channel interferance with modulated signals.  Any thoughts?
    Troy

    Hi Troy,
    There are a few tricks you can play here but
    they are completely independent of hardware and more on signal
    processing. Basically you need to write both waveforms at the same time
    with different frequency offset.
    1) Frequency Shift. Assume you
    have two completelly independent baseband signals s1[n] and s2[n]. Each
    one should be the same lenght (time duration).
    One of them will
    be transmitted at Fc and the other one at Fc + df. s1[n] remains
    unchanged and s2[n] will be shifted by df using the following VI:
    The
    trick here is to make sure that your sample rate is high enough to
    support the shifting, otherwise you will be aliasing. If you create
    your waveforms with Modulation Toolkit make sure they have enough
    samples per symbol.
    Finally you need to sum all signals s[n] = s1[n] + s2[n].
    2)
    Apply different Powers. Before you add the signals, you only need to
    scale the data correctly. To do this, I recommend to normalize both
    waveforms. This is s1[n]/max(sqrt(|s1[n]|). Thenscale the smaller power
    one. Finally, you will add them together.
    Here is a spectrum of the composed signal:
    I have attached
    an example to do this using 802.15 signals with a few modifications: I
    am not normalizing data but applying headroom to each signal and I
    hardcoded the number of samples per symbol so the maximum frequency
    offset is about 12 MHz. Should be helpful to get started.
    Message Edited by Yardov on 10-17-2008 06:05 PM
    Gerardo O.
    RF Systems Engineering
    National Instruments
    Attachments:
    frequency shift.jpg ‏9 KB
    Generation Multiple Channels.zip ‏32 KB
    spectrum.jpg ‏79 KB

Maybe you are looking for