Construction delays in pulse width modulation

HI there I am trying to build a vi to control speed for a motor drive.

The specification that the technician gave me is to produce a wave of modulation of width pulse with constant and variable gap time "punctually".

This will give you the variable speed motor that can be manipulated.

I have build a vi pulse width modulation, but I do not understand how the time constant of the ditch example 20ms while varying the time on 1 - 3ms.

Is there a method I could use or an example I can look at? Any help will be doing thanks in advance.

I'll join my current vi.

For the most part, you just need to calculate some of the variable you use to leave on time and downtime.

I don't know style.

Tags: NI Software

Similar Questions

  • Impossible to find Pulse Width Modulation (FPGA, using SCTL)

    Hi all

    Can someone tell me where I can find Pulse Width Modulation (FPGA, using SCTL) .vi? I could not find in Finder example LabVIEW.

    Thank you

    Here it is...

  • pulse width modulation

    What modules or do I need to acquire signals from an LVDT? I have an analog output, but is there another required module?

    ABC for an external power supply. According to the specifications of the signal conditioner box you need a power supply very stable and clean.

    CD to your analog input (+-10V?) of the cRIO.

    If possible use cable separate power and sensor power (try to avoid sharing the GND (C)) and if possible use the cRIO input differential.

  • Generation of signal Pulse width modulation for ULx

    Hello

    I'm trying to produce an analog waveform (IE square wave) with an option to control the cycle.

    I went out with a Measurement Computing card, which uses the libraries of user ULx.

    There are many examples of do what I want to use DAQmx, but all those who use ULx have no option to control the duty cycle.

    Can anyone help?

    Thanks in advance.

    Hi ben,

    your hardware ULx even does support the PWM outputs? Support the tasks out of meter?

    It is not only the software, the material must also support your needs!

  • With the help of modulated signal pulse width (square wave) to control when a signal is enabled or disable

    With the help of modulated signal pulse width (square wave) to control when a signal is enabled or disable

    Hello all

    I am using a modulated signal to labview created pulse width (square wave) to control when a signal is activated or not.

    Here is my logic and a concrete example:
    (1) the wave source signal is continuous
    (2) use a PWM (square wave) created in labview to control when the signal is enabled or disabled
    (3) if the PWM (amplitude) signal is superior to 0 play signal PWM is not greater than 0 do not play signal.

    I use actually this to the sequence step / pulse several distinct magnetic coils using my audio card (which has several channels of audio output), I have a signal in labview played constantly.  As to compare it to the PWM (square wave) which controls whether or not the signal is played on each separate channel.  That way I can control which coil is on and offshore and in what order they are activated.

    I couldn't find an edge detection for a square wave created in labview, so I tried the limits, but it doesn't seem to work unless I change the phase manually and it only goes 1-1.  I'm just trying to compare the PWM (edges of the square wave) already created by labview / play a signal if the pulse is greater than 0 and it shuts off the signal, if she is less than 0.

    Should I do this another way

    TIA

    A waveform contains an array of values. You must check every value and respond accordingly:

  • [beginner on Labview 8.5] Generation of a digital camera modulated square pulse triggered by an almost periodic pulse analog modulated square

    Hello

    I use a mx-acquisition of data (NI USB-6211) and I would like to use it to generate a pulse of digital modulation

    that is triggered by an analog input signal. The input signal is a pulse of squares analog modulated

    What is almost periodic. It's because of my set up, and I can't do anything with it. I would use the

    before the edge of this signal to trigger the production of a digital pulse signal modulated (0-5 V). My

    problem is summarized in the figure given in the annex. I would also like to have the possibility of

    Configure the 'backwardness' and the term of "TAU_LED", while the VI works.

    I have looked at several examples of instrument OR meter generation, generation of PCI I / AO, but doesn't

    not managed to solve my problem.  Does anyone have an idea of how start with my problem? Are there

    No matter what example VI that I could start to change?

    Thanks in advance,

    Gregory

    Hi Gregory,

    Sorry I forgot to mention: the Initial delay applies only to the first impulse of a redeclenchables generation.  Every subsequent impulse will use low time as the Initial delay.  I agree the behavior is not very intuitive (our latest guidance of series X actually supported an Initial period to allow on property Retrigger), but it is described in this knowledge baseand should also be mentioned in the DAQmx help.

    As you generate just a single pulse, I would recommend simply connecting the Initial delay and at the entrances of low time to the same value for each pulse will be delayed further.

    Exit tasks ongoing counter currently supports DAQmx writing.  However, the finished generations or simple impulse are not.  However, you should always be able to get the behavior you need with a property node DAQmx.  The current solution on the series E/M is:

    Again, this is not the most intuitive, but I checked that it works on my 6210.  After writing a new value in the software the pulse will be updated on the 2nd trigger.  Attached is the code stored in LV8.2.

    Best regards

  • I'm using Labview TDS3000 Tektronix pilot measures the delay between pulses on two different channels

    I use the driver for Tektronix TDS3000 Labview to configure an TDS3034B oscilloscope and I try to measure the gap between the falling edge of a pulse on channel 1 and the edge failling from an impulse on channel 2. It seems that the TDS3034 can measure this in in-house by the use of the measurement on the front panel key, but how do I retreave using your labview driver?

    Hi Tori

    I am now in place and running, I already had the TDS3034B to measure the delay between the pulse on channel 1 and the pulse on two channels, as well as the pulse width tuned to channel 2. This was done by saving the settings on the scope on a diskette and cutting and sticking them in a modified version of the TDS3000 auto setup vi. I created from a simple VI which allowed me to manually enter orders for tektronix and found that the command "measure: meas1: data? went around.

    Thanks for all your support on this issue.

  • Generate PWM signals with 1.5 ms pulse width

    Hi all

    I'm working on a project where I need to generate a PWM with a pulse between 1.3 and 1.7 width ms to order a servo rotation continues.  LabView is in communication with an arduino Uno microcontroller by LINX.  My original plan was to use the milliseconds of wait function in LabVIew to do this.  I put the PIN PWM high, wait 1.3 or 1.4 ms then set the low axis for 20 less ms pulsewidth.  before repeating.  This is how I have gnereate one using the Arduino IDE pulse width, so I thought I'd be able to do something similar here.  However, as I'm sure is already obvious to anyone who reads this, the milliseconds waiting finction in LabView only accepts the whole entries.  Arduino IDE is similar, but there is a delayMicrosecond function that can be used, so if I want 1.4 ms I use 1400 US snf then convert it in ms for the 20 least part.  How can I do something similar in LabView?   Also. When I run the program as what with a 1 ms pulsewidth I have a strange behavior.  It in fact generates a PWM signal, somewhere between 0.75 and 1.25 ms and with a period between 50 and 54 ms, it turns into a model each about half a second.  I'm using LabView 2014.  Any ideas?

    Chris

    You can't get that kind of resolution with Windows and any delay you specify will have considerable jitter due to Windows. If you can pass values with Linx and allows the arduino to control them, stick with that.

  • -Measurement of the pulse width specifies the timeout?

    I'm trying to set up a simple project of Signal Express that measure the pulse of two separate signal lines width.

    My PCI6224 has two entrances of meter and then run each pulse in the entrance of a meter line, respectively.

    The I set up the express project signal attached, which consists of two simultaneously runnings tasks DAQmxAcquire.  Each of them is set to measure the pulse for one of the pulse width.  I then connect the results for further analysis.

    This configuration works very well from time to time.  The problem arises when the impulses do not arrive quickly enough and the acquisition of the timeout action.  Looks like that has a simple solution - just increase the time-out - but I can't find a single setting around the affects, the time-out!  The time-out period is always 10 seconds, regardless of what I do.

    Can anyone help?

    Thank you.

    Hello rothloup,

    Unfortunately, there is no option to change the time-out Signal Express for a task entry counter.  This has been brought to the attention of our developers.

    Reading a DAQmx LabVIEW VI has a time-out node you can specify the time-out period, even in the tasks of meter.  I suggest you try to implement your system in LabVIEW (if you can).

    Here is a tutorial on how to make PWM in LabVIEW.

    http://www.NI.com/Tutorial/2991/en/

    See you soon,.

  • single pulse width measurement

    Hello

    I'm trying to measure the duration of a single pulse using ctr0 on an SMU-6361.

    The signal in the attachment Capture7.jpg, goes PFI 9, ctr0 door.

    The problem is that the counter see ' s the front up and stops. The pulse width is not given as can be seen in the output (Capture8.jpg).

    I get the same results by using Meas_Pulse_Width.vi example.

    Is something wrong with my SMU-6361?

    Oh, I think I know what it is.

    Change the task "pulse width" (a single pulse of height) instead of "Pulse" (the high and low time of a pulse repetition measures).  Change the DAQmx Read to use Ctr > single sample > DBL (instead of pulse).  Change the property filter node digital to use the corresponding properties of the "pulse width" (the filter is still necessary):

    The task of the pulse was not period initially because you receive a series of noise pulse repetition (and so it was a very low period).  With the filter, this time since the noise disappears now and the single pulse did not finish measuring the pulse (which requires a high and some time):

    For the record, I agree that it is confusing that there is the "pulse" and "Pulse" measure and they do different things.

    Best regards

  • NI 9401 pulse width measurement.

    Hello

    I'm not sure that I understand very well the pinout diagram. At the present time, I have a NI9401 in a NI 9172 chassis.

    DIO0 and DIO1 are connected at the gates of light. I have an opto switch and I want to measure the pulse width when an object blocks passes through the slot. Can I use one of the other free entry of the for do?

    The entries are DIO2, DIO4 and DIO5.

    The other IO pins are used as triggers.

    See you soon

    K

    Hi Kamilan,

    If you explore in the measurement and Automation (MAX) and find your 9401, you can right click on the device and select "Pin of the device" which pulls up a window that says what features each pin on the device.  For example, according to this document, DIO2 is PFI2 to THE CTR0 CTR0 B and FREQ OUT.

    To answer your second question, do a right click on your device and create a new task for your 9401.  "You should do an acquisition of signals" counter input "pulse width and select CTR 1 on your device.  Once you do this, you can configure the parameters of your task and Max it will tell you where you need connect your signal source, which, for me, is DIO5.

    I would like to know how it works for you, thank you!

  • signal level for pulse width measurement

    Hello

    I am able the pulse width with the meter M6251 (CI pulse width)

    I understand that the digital input works on the TTL levels (0, low 8V 2, 4V high).

    Can you say exactly in which the level of signal pulse width is measured?

    Thank you

    Ralf

    In fact, the transition from low to high (or vice versa) is located in between 0.8V and 2.2V.  It is not specced exactly where it will be (although you'd be able to get a better idea, if you have an analog source, you can slowly increase until you see line status change).

    This is why the fast rise time are important to accurately measure the digital signals.

    Best regards

  • How can I use two counters simultaneously to pulse width measurment

    Hello, everyone!

    I'm new to Labview. I currently have some cDAQ9171 and width measurment with 9401 impulses. My understanding is that the 9401 was 4 meters, which means that I can use these meter separately. However I have the following problem.

    1. I use ctr 0 and ctr 1 (PFI 1 and PFI5) to measure two different impulses. However, it seems that there is an interference between two counters. How can I make two counters working simultaneously and separately?

    2. I first try a pulse width measurment counter in Labview signalExpress. My pulse width is about 0.4ms. However, I can't get the right result, if I choose the starting edge is on the rise (the results always around 20ns. Only if I revise my pulse and pick the starting edge is down, I can get reliable results.

    I'm confused about these issues for about 3 weeks... Is there someone can help what can I do with that?

    I have attached a simple vi...

    Thank you very much!


  • pulse width of measurement of signals generated by data acquisition

    Finally, I would like to:
    Start a counter pulse width measurement and the analog output at the same instant.
    Stop the measurement with an external digital signal pulse width.

    My current plan is to use a digital output on the acquisition of data to synchronize a digital input and the start-up of the meter input.  The digital input will be a trigger to start for the analog output.  This works, except for the meter.

    While trying to implement this, I tried a simple test to generate a digital pulse with the acquisition of data and wiring for counter inputs.  It does not, even if it seems perfect to an oscilloscope.  Then, without changing the software at all, I connect a function generator to my counter entries, and it measures pulse flawless widths.

    I'm actually implemented it with a Python wrapper around the C DAQmx API, but I recreated in LabVIEW, and it has the same.  VI attached.  I have the latest drivers DAQmx.

    Accidentally, I posted this in a forum for LabVIEW, as I managed to post with the account of a colleague.  I think 2 ups live as this mandate to another post.  I'm sorry.  Former post is http://forums.ni.com/ni/board/message?board.id=170&message.id=389856.

    Solution: I had to set the channel to counter with implicit synchronization.  In addition, the sampsPerChanToAcquire must be at least 2, if not, there is an error.  I still don't understand why it worked with a source of external impulse, however.

    DAQmxCfgImplicitTiming (task_handle, DAQmx_Val_FiniteSamps, 2)

  • with pulse width measurement external sample clock

    Hi all

    I use a NI 6220 (programming with ANSI C) Board and I would like to make a "unique pulse width measurement' by using a signal from the outer door and an external signal source.

    The program and the card with the help of the "DAQmxCreateCIPulseWidthChan" command works only partially as expected. Namely, the outer door has worked, but the map uses the internal time of 80 MHz base signal instead of the external source connected to the source by default PIN (PFI, 8).

    I tried send an another PIN PFI on the default source pin using the command 'DAQmxConnectTerms', but this did not help either.

    Obviously, I'm missing something...

    Best, Uli

    Hi Uli,

    I posted in your thread here.

    Best regards

Maybe you are looking for

  • Apps don't redownloading not after updating iOS 10.

    Hello So until I updated to iOS 10 asked me if I would like to uninstall some applications and then they would be uploaded once the update has been completed. It's because I didn't have enough storage. In any case, I pressed 'yes '. So update to iOS

  • I can't access the store online

    Hello.I bought a second hand Journe Touch and I can't access the store online. I always get a blank white screen... until I press the botton left corner (where say "Impressum 6.jt1.co"). Arise then something like a web page... but this isn't the virt

  • Satellite M500 - Mouse pointer disappears when you play games online

    I have a brand new, custom configured M500 form Toshiba. It has Windows 7 Professional Enterprise, 64-bit edition. Everything worked great until I spent a lot of money on the game Star Trek Online. When I go in the game, the mouse pointer disappears.

  • Scope of voltage zero

    Hello world I'm new to labview. I use a high precision load cell and signal conditioner that provide precise and exit excitation (10 V) The problem when I use the DAQ (myDAQ) card to measure the output voltage The tension reaches zero to time finishe

  • Presentation of vmfs LUNS 3.33 to Esxi 5.0.0,914586

    Dear Experts,I have1) Esxi 5.0.0 build 914586 on a host(2) another host with Esxi 4.0.0 208167 who have a lot of machinesI want to move a virtual machine from this second host located on LUN with filesystem 3.33, I want to know if it is possible to i