Motor by PWM control

I need to run an engine control (NEMA 17) for a number of steps with maximum possible speed controlled using myRIO. When I used Digital out to produce the wave square for the stepper, the maximum speed obtained was 500 meters per second when I used 1 ms in high, then low 1ms and so on in a loop. But when I use PWM to route the signal, higher frequency was obtained, but there is no way to count the number of steps. Is it possible to get more speed and be able to count impulses? or get a better resolution for wait function?

Hello justmearun,

try to use the palette of RT timing functions there is the possibility to use µS instead of Ms. programming of the FPGA is also an option to implement this functionality.

Be careful, if the frequency is high, the engine do not spin, because that exploitation of couple. A solution for this is to start with a frequency more bass and this increase until necessary.

Tags: NI Software

Similar Questions

  • PWM control with compacRIO

    Hi, I work in pwm, I have the following code in labview to fight in compactRIO

    the problem is that I Don t understand the flat sequence structure and components that are connected on

    could someone help me with this?

    Thank you

    The two structures of sequence always run on each iteration of the while loop.  The first sequence structure awaits for the duration.  The second expected during the downtime.  The carrier wire of the cluster of error (the wire of gold/black in the image) dictates the execution order because it is an input and output both digital i/o nodes and the structures of the sequence.  If this isn't clear, turn on execution highlighting (the icon of the bulb in the toolbar), you can watch running.

  • DC motor control - axis of movement back

    Hi all

    I am currently (trying) to design a control of a servomotor system.

    I use a cRIO 9082, NI 9514 C-module, a servo-drive Kollmorgen AKD and a Kollmorgen servo.

    My main goal is to make the engine during continuous running + 15 deg to-15 degrees and with varying frequencies.

    I checked my system using the 'straight axis' operation - example, that comes with LabVIEW.

    How do I start making a model more sophisticated movement?

    I modeled the DC motor in MatLAB using PID control. I can do something similar in LabVIEW?

    See the image as an attachment to the model of behavior, that I want to accomplish.

    Thanks in advance.

    Best regards


    Hi JZaulich

    You will need to use the NI Control Design and Simulation module to perform the simulation and model of different systems.

    If you install this kit there are a good example called "DC speed control Cascade" engine that can show you how to model the motor and continuous control (both speed and current ". There are also examples of servo control.

    Best regards

    Anders Rohde

  • Command of RC Servo motion control/KollMorgen AKD Modbus

    I'm just learning about LabView on a project to control a RC Servo.  I have implemented a train VI with a USB-6210 pulse generator and you can control the position of the servo using a button control.  I want to be able to program the movement of the servo to follow a sine, square and triangle wave.  I tried to use the function VI generator to generate the signal but can't get the servo to move.  Someone can give me some tips on how to generate the desired waveform and use it to vary continuously the duty cycle of the pulse train?  I thought that it would just to replace the button with the function of driving control?

    My ultimate goal is to use the concept of driving a car KollMorgen AKD using Modbus to perform a similar function.

    The express VI allows you to simulate the sinusoidal signal only circulates once only 1 data point out.  In order to run continuously, you need to place inside a loop.  I don't see an interest to use a local variable for your PWM control button.  Should he wire directly to the vi "Not equal?" inside the loop.  If you try to replace the control of knowledge with the sinus generator then you must put the generator sined inside the loop and the wiring that directly to the where you have connected PWM local variable.

  • OfficeJet 6500: Print head cleaning Cycle - why not choose a color?

    I'm having a problem with a single color (magenta) print does not correctly. I've had problems before with black. Why the prinhead cleaning cycle does not allow the selection of a single color for cleaning? Why should I lose the other colors of ink when there is only one that needs to be cleaned? I know that HP wants to sell ink, but be reasonable! That I had problems that appear only after you HAVE installed a new ink tank. And it has not shown using a cartridge to power after best-use-by-date. My guess is that if the ink cartridges are not stored properly the use-by-date means nothing.

    There are a few components of the automatic cleaning cycles.  There are a set of wiper rubber that moved across the printhead to wipe or scrape debris from the print head.  All wiping little ink is spit of each nozzle to lubricate the wiper and help clear the clogged nozzles. The wiper is built on a unique sled with a motor that moves the wipers back and forth.  Allowing single color cleaning would require a much more complicated mechanical system, with four distinct and motors wipers to control.  (The wipers should be dedicated for each color.  She would cause the nozzle clogging if the black ink is allowed to mix with the color and would cause if different colors used the same color mixing wiper.)

    Similarly, for your Officejet 6500, there is a pump system for a more energetic cleaning or for initial priming of printhead.  If it was designed for a single use of color, then a more complicated system, with four independent pumps and controls.

    A Mater of reliability and economics, it is not practical to have separated in level printers cleaning cycles.

  • Simulation freezes Multisim

    Hi all

    I played a bit with multisim for a few years now, but later began to really use the features of simulation of the program.  I noticed that transient analysis of the very basic circuits seem to work fine, but nothing more than (especially those using pwm controls) after bogged down as some ridiculously short period of time.  Also, before it freezes, things as the output of the oscilloscope function very slowly.  I have attached my circuit for reference and using all that you wonderful people out there.  What I am doing wrong?

    The wizard of error correction is not really take care of the problem.

    FYI, this is a converter circuit high power for which I would like to study the out performance characteristics by changing the frequency of the triangular wave or setting of the amplitude of the sine wave from 0 to 1. The goal is to produce a sinusoidal current output to the primary of the transformer.  The resistance of inductance and conductor of leakage have been modelled, as well as an inductive load on the secondary of the transformer.

    Thank you!

    Yes, I tried for a few days and all the other typical timestep of bugs and it does not always work. The solution was to replace the igbt with the command switches in idealized voltage and barrier diodes schottky antiparallel... and on the ground of the transformer floating seconday. It works now

  • xw6400 & xw6600 secret fan: quiet workstations

    My best info on tweaking of the workstations xw6400 and xw6600 to run more quietly without increasing the internal temperature when measured with specific utilities has been noticed (and also BIOS) in the xw6600 is attached.

    I mention the speed reducers of Noctua fan resistance, 4-wire, and those that work very well for fans of memory and the chipset.  Also, I swapped the xw6600 parts in the xw6400 (fans and broadcasters) the advantage of the most recent HP engineering.

    Overall my versions optimized for these workstations run as quiet or more calmly than the Z620, at little cost.  The 4 speed reducers son PWM-preserving you seek are more easily purchased through a pack of 3 of Noctua, found if you google NA-SRC7.  Use one on your memory fan and the other on your chipset fan and fan of memory if you have a xw6600.  Other methods of note are more than a project, but I recommend doing at least the addition of the adapter.

    See attachment:

    A little added information about fan of little chipset of the xw6600 who run very fast in the xw6600 and is slow.  The Northbridge chipset on the xw6400 has only a radiator... not a fan of any other movement of air attracted on the radiator by the memory fan.  I saw no deficit of cooling by dropping this 3745 up to 2752 chipset fan speed.  About 1 k rpm speed reduction significantly reduced the total noise of work stations, however.  The same concept goes for why add a reducer of Noctua 4 son LNA to fan fan speed memory of the xw6600... lower the speed and noise of the fan with no measurable in time of the memory increase, while maintaining the ability of the motherboard to increase the speed of the fan automatically if necessary.

    HP uses the PWM controlled EFB0412HD Delta 40x40x20mm which has one - modifier 7R49 (on the label).  These modifiers to identify fine details of the fan, and for is this it indicates that control PWM has been added, the wires are short and white connect type conventional PWM.

    If you never had to get only a replacement fan 3 son he will run to 12VDC full speed, with no gas HP PWM applied.  Here is the RPM:

    3-wire (son PWM is unplugged or 3-wire fan): 7500-8500 (measured on several xw6600s)

    No adapter and with reference HP PWM applied Butterfly: 3745 (average)

    "Adapter 4 son Noctua LNA more reference HP gas: 3101"

    "Adapter 4 son Noctua ULNA more reference HP gas: 2752"

    Noctua ULNA 4-wire adapters are difficult to get, but at least add in adapters Noctua ULNA NA-RC7 4 wires on your xw6600 fan memory and chipset fan.  Those who are easy to find in a 3-pack by searching for "NA-SRC7.

    Attached are the specs of the Delta with the version HD of this fan 12VDC highlighted and a pic of the fan with this modifier code on its label.

  • How to implement Canopen on FPGA to run the engine using NOR-9881?


    Your support will be highly appreciated,

    There is only one available for NOR-9881 example.
    Please note that the following materials were properly connected:
    cRIO-9024, cRIO-9113, OR-9881 and motor Nanotec (SMCI36 against L2818L0604-T5X5), the following
    sites Web shows the engine Nanotec in details:

 ing-control /
    The main problem is how to configure the inputs and outputs, where, in most examples, the entry and exit have been automatically
    the following three examples and I wonder how to start:

    1 - example Nanotec: dependent VISA controls for data transfer

    2 - reference example CANopen for series C OR - 9853 Module CAN:
    the NOR-9853 has default Can0 which was used in the code
    3 - from finder labView example: search for 9881 then choose
    NOR - CANopen_cRIO.lvproj, which depended on SDO orders for transfer orders
    The attached picture shows that NEITHER-9881 can be seen, after compilation and
    loading the bitfile FPGA.
    Please, please advice me:
    1. how to start?
    2. how to create variables of entry for NI9881?
    3. how to implement CANopen mode FPGA? where there is no CANopen palette.

    Thanks in advance and


    From my understanding, the 9881 can be treated from the FPGA, but only from the application of the RT. I think that the point 3 of your post examples of the use of the module fine.

    Kind regards


  • slow data cRio record


    I use a cRio 9074 in scan mode and I have a pretty simple timed loop which must run at periods of 5-10mSec for pwm control. I also need to do some data recording and record two (at approx. 1kS/sec) input signals. However, when I use scripture to the worksheet, the loop speed drops and my period of timed loop dates from 50mSec. How can I speed it up, and what is the effective way to save data in scan mode.

    Thank you.

    Hi Soheil,

    You can see the example of community, I found regarding loops producer/consumer.

    They could be quite useful.

    Any problems let me know.

  • BOUNCING VISA Write error - hair pulling

    Running an application that uses some standard features.  Lies in stepper motor which is controlled by simply sending chains of command to the inverter via a serial connection.

    Update for Windows 7 (from XP) and thus to level to 2013 LV.    Now all of a sudden I get errors of the vi that writes to the port series. He'll sometimes for a few hours before appearing, sometimes 15 minutes.  There is not much consistency as to which iteration of the vi pops up the error.  I added delays here and there, put a delay in writing vi (attached), added a clear before writing pad, etc, etc.  This bug won't go away.  This is the error that appears...

    I have attached the vi.  It is about as simple as they come that's why I'm pulling what little hair I have left.  Two changes in this version of the original that ran forver on XP, the delay of 150ms between writing and close System (since door to 400) and I also changed the time-out on the configuration of ms 10000 to 5000 ms (10s and 5s).

    Once this happens then all series the connection with the computer is watered and I have to restart the system to get there again.  The computer, a relatively new dell, has a port built series ini and I use an expansion card StarTech for two additional ports. (2-port PCIe RS232 w / UART 16550)

    ANY help is very appreciated on what having to reset the system 10 - 15 times a day is killing me.

  • Basic system faced with Standard Def MPG files

    We have built two news editors about 6 months ago and needed to build computers at $1200.  They replaced two former Avid Newscutter XP systems since 2004...

    Because we were shooting DVCAM DSR - 250 camera or files on nNovia QC bridges on the camera, the files were content essential to 25Mbps DV in SD.

    Based on Adobe for first CS5 system requirements, I didn't feel that I needed to build these machines high-end at the time.

    They are as follows:

    Motherboard MSI 77 T - C45

    AMD Phenom II X 2 555 Black Edition 3.2 GHz

    Seagate Barracuda 80 GB drive C: Boot, file of the Page

    Reused Samsug 7200 RPM SATA 1 TB system drive Avid Scratch.  E:\  Projects, raw, media cache files files

    Corsair XMS2 4 GB (2x2gb) Dual Channel

    PNY nVidia Quadro FX 380 256-bit - 128 MB GDDR3

    Corsair 400W Power supply

    Returning to him now and after reading a lot of posts, these systems are on the low end.  Guess that's how Adobe gets more people to buy software, make it look like it will work on you, after that shell out you money on the program, you realize that you need to upgrade hardware too...

    Systems worked very well for the SD images, that we needed them.  We're not HD any time soon as our studio together, routers, switcher, CG, broadcast system, the camera studio and virtually all the rest would need to update. So I tried the editors that were easier to use and treat what we were working with and that's what I got.  Featured in 3-5 years when HD comes to us, it will be time for all new system on CS7 with 30 hearts, 1 TB of memory and other... (From right)...

    So new twist to the issue.  We had a lot of problems with the camera dying the last few months.  It became difficult to follow the work of DSR-250 s and even if I can buy them for $1000-$1500 used off eBay and they are in much better shape than ours, they were big, bulky and our reporters 'one man band' it a lot and two young women are just shy of 5 feet.  You should see a small journalist little lug a camera to mount huge shoulder upward on the tripod and run it when he is bigger than them... Really funny!

    Then I pushed for the new camera and found that the new Sony HXR-NX5U satisfied all our needs because it is a camera style Z1/Z5 (smaller size), but has 'NO TAPE'... Cards SD and a 4 GB class 2 gives 58 min shoots each SD

    It will draw HD as AVCHD 24Mbps files and SD Mpeg-2 and 9 Mbit/s with AC3 audio.  I demo had a Sony camera and did a lot of testing with it, I played a few clips on CS5 systems and everything seemed ok.  They required a quick render and I think it has to do with the Mpeg-2 compression.  It is about 1/4-1/2 time rendered so a 5 minute clip will take about 1 to 2.5 minutes to restore the.  Reading is ok even if not rendered but the video looks blurry on the CRT monitor looping out of our DVCAM DSR Firewire-11 bridge.  Not a big deal, they can change and go to the end before discharging it on tape.

    Problem who came today (we just started to use the new camera this week), when I went to diagnose the system crash, I found a package of new singles on the timeline.  Maybe 40 small clips, edited into a package, with simple changes.  He is already gone, but I noticed that the fan on the system has been running fast that only happens if the CPU is working hard.  (Before 120mm case fan is PWM control CPU fan header, CPU fan is on Northbridge fan connector non - PWM controlled)  If the (stock) CPU fan runs at full speed, but I used the temp of MB of surveillance to control the front fan, so I could have a system at rest when he is not working hard.

    Led me to open the Task Manager.  I found that the CPU running along 94 to 98% for the two hearts.  RAM is ok as first used about 1.8 GB to 4 GB in the system.  I checked the other system, and it did the same thing.

    What is strange, is first is just sitting there, with an open timeline, mpeg-2 clips on me and it does nothing, it remains at 92% constantly.  I have even shut down the project so I'm out on the 'new project' screen 'Open Project' and no change.  If I hit the exit, then the CPU down immediately fell to 7% and is fine.  First reverse open in a project and the CPU goes up immediately.  During a Render chronology, it is 100%.

    We are able to change and they seem to work, but it is at the origin of the system hot and running the CPU at max almost all the time. I added two 80mm fans more to the back to help get more hot air out.

    Is my way to smart to slow down to mpeg?  Is there a setting I need to change to optimize editing mpeg-2?  I guess that's the work to decode the video on the fly, something of so much CPU for does not require the DV video.  I do not use the GPU acceleration as I don't have a card that supports even with the Nick I know.  And VAC. GPU does not work for firewire DV output.

    I am considering the following:

    1 buy more large aftermarket CPU cooler and overclock my chip as many say this 'Black Edition' with an unlocked multiplier is a breeze to overclock to 4 Ghz. (but still only 2 hearts) high-end

    2 buy a processor core replacement 4 or 6 to replace (also with more stock Cooler of above)

    The only problem is having to spend so much money on additional hardware.

    I'm also going to optimize Windows 7 on these editors as I think Areo is running and other no essential things.

    The big question is why is it maxing when doing NOTHING?  He's just trying to build this still image on the screen because it's an image between the I frames? (i.e. not a genuine framework of video but has been created by decoding the info from IPPBPPIPPBPPI, etc.).

    Any idea / help would be great.  Anyone else using this camera and SD files?  I don't think it would be a problem that I had read a post that people were editing stuff on CS3 a few years back.  Impossible to believe that this would produce a newer system grief so...


    The results have been posted.

    The figures are disc, MPEG, H.264, and render the results respectively.

  • Programming of FPGA for motor control using downloadable IP cores for free for PWM and interfacing Quadrature encoder


    I have a cRIO-9014 with a NI9505 DC brushed servo drive module and I would like to program the FPGA to PWM and encoder, quadrature, interfacing using the functions of intellectual property intellectual property mentioned in "CompactRIO Motor Control Basics Tutorial":

    DX of encoder quadrature method (FPGA, using SCTL) .vi

    Pulse Width Modulation (FPGA, using SCTL) .vi

    I did a search at but I could not find them.

    Where can I find free downloadable IP cores for the blocks of PWM and encoder to include them in my interface FPGA program?

    Thanking you in advance,


    Found by myself (google search!) to:

  • I want to control the speed and direction of a motor continuous using labview with pwm

    I want to control the speed and direction of a motor (essentially a toy motor) continuous generating a PWM signal in labview. I'm using L293d motor and exit DAQ-9472. Can I do this without the help of any microcontroller but only a simple labview code and the DAQ 9472 output

    There are many examples on how to generate a PWM on one in the buffer, or on a counter, but that does not support this card.  A 8 a cDAQ chassis also a BNC connector that can be used as a counter as well.  These examples can be found in help > example Finder in LabVIEW.

    Also be aware of your current limiting.  This card can drive a decent amount of current, but it has its limits.  You'll want to put an inline meter to see what is current and see how far you get to it.

  • DC motor of control using the analog output of DAQ 6008


    Since the 6008 DAQ implements not good PWM, can I control the speed of the DC motor using outputs analog, protected by amplifiers?

    This will damage my DAQ?

    Ok.  The engines will be quite low.

    Consider using an LM317 as the "amplifier". Add one or two diodes protection. Connect the AO to the terminal of the regulator with a resistance setting to land.  Your output voltage can go down to 1.25 V and up to minutes (battery-2 V, Vaomax-1,25 V). If you have a battery of 12 V and a 12 V, the maximum speed of the motor engine will be slightly lower than the nominal speed full. The minimum voltage the motor probably will not work.  The regulator has a built in protection against overcurrent and overheating.  It's the motor controller cheaper you can do and works very well.

    If you need to reverse the engines, things get complicated a bit more.  You can use a DPDT relay or a transistor H-bridge.





    Hola Barcelona

    No you tiendo very well the pregunta respecto a en parte that need help.

    Respecto a lo del PID against este foro el cual tiene links in con PID information y controls Motors DC aunque vayas a usar para a CA, information engine you can be util además TR el control going to use usas UN PWM igualmente you serviria mucho gran parte the ahi esta info.

    Command PID made al control of DC motors

    Respecto al PIC the Comunicación y, mi primera mid-week seria using a PWM con UN cDAQ o una tarjeta and NO esa manera you mas eficiente el sistema control resultaria. Lo contrario seria UN media series utilizando el cable USB utililzar. O the third option you puedo recomendable usar UI an Arduino para which are hay una libreria Comunicación con cual ordered using LabVIEW seguir y UN mircontrolador sin tener as complicarte mucho.

    OR LabVIEW Interface for Arduino Toolkit

    I hope this information you sea util


    R. Esteban

Maybe you are looking for

  • Can not pass in the GUID partition scheme.

    I have a 2010 macbook pro under OS X Lion (10.7.5). I bought second hand and it came with a drive hard internal toshiba. When you try to update to El Captain, I received this notification. But when I tried to do, the options button is grayed out. (Ma

  • MacBook (13-inch aluminum, Late 2008) cannot install snow leopard

    So I'll try to fix computer for my mother, it's a MacBook (13-inch aluminum, Late 2008).  He was running very slowly so I did a factory of resets and tried to install a copy of snow leopard on it.  When I try to install it on my hard drive it says "M

  • How do I delete cookies?

    How to remove cookies?  I would like for my computer to work faster.

  • use of ini files

    Hello I have a question about the customs with the ini file. I would like to know what is the common good, for now, I create a big bunch of cluster that contains parameters of program (by using the openg palette). The values in this file normally do

  • Client FTP IExplorer

    What mode of FTP (active or PASV) of the browsers (Internet Explorer, Netscape) Internet use usually? When I tested and sniffed the packets it seemed very 'Active' for me, but I've seen documentation saying it is PASV. I am a moment but confused. Vit