Showing results for 
Search instead for 
Did you mean: 

Newbie needs help with PWM, DAQ, good reference guides, and life


Do you mean that you want both counter outputs to change freq and/or duty cycle simultaneously? And to always be equal to one another? If so, why have two rather than one?

On the other hand, if you want your two counter output freqs and/or duty cycles to be variable and different based on the result of control algorithms, I can't understand what you would mean about having them synchronized. It seems that they couldn't be both independent and synchronized. Exactly what aspect of synchronization do you mean?

Can you describe your app and the function of these 2 counter outputs in more detail? Also, what type of data acq board(s) do you have available?

-Kevin P.
CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 21 of 27
Hello Kevin,

glad you want to help me. I have attached a worddokument that describes the problem.
The application has to control power in an induction hob system controlling two IGBTs in a halfbridge. The two IGBTs mustn't switch on at the same time. There has to be a delay of 2µs between transition of Puls1 from hight to low before Puls2 goes from low to high. This delay is constant 2µs.
But the Frequency of the Pulses has to be changed.
0 Kudos
Message 22 of 27
Okay things are starting to fall into place, which only means I am going to have many questions in the new few days. Here is a stupid question that I need answered. How do I take a data input and simply divid it by a decimal number. I tried just using the basic two input divide block, but the numeric constant wont allow a decimal number. When I increase the precision of the constant it just shows me that many more zeros after the number after it rounds 45.235 to 45.000. What am I doing wrong?

Thanks again for putting up with the newbie

0 Kudos
Message 23 of 27
Is the color of your numeric constant blue or orange? If it's blue, then you've created an integer constant. Simply right click on it and select Representation and change it to DBL.
Message 24 of 27
Hello All,

This email is not about LabVIEW but I thought someone out there might be able to help me.

We just hit a major setback. The guy in charge of ordering the motor driver got one that was too big for our little 6V motor. Now we need to find one to order very very soon. I have terribly little experience with motors and motor drivers. Does anyone know of any motor drivers that will accept a PWM signal and drive a 6V motor backwards and forwards. I need six pins: Supply voltage,PWM, Direction, GND, Motor terminal A and motor Terminal B. Any help would be greatly appreciated.

Much thanks from the U of A

The search continues...
0 Kudos
Message 25 of 27

You are definitely on the right track with using either Analog Outs or Digital Outs. The M-Series MIO boards have the capability for outputting an analog waveform at 833kS/s and correlated DIO at up to 1MHz. If you use DIO, you would have to set up a 'dummy' continuously running analog input or output code with which to 'correlate' the hardware timed DIO output. You can not directly set an output clock for hardware timed DIO.

Here is a link to a correlated DIO example:

If you are getting a triangle wave on your analog output using the Square, it is likely that you are not setting the sampling info settings high enough.

I included a simple example that builds up an array that simulates PWM. You could try this with a continuous Analog Output or Correlated DIO - and continuously write new data to the output vi.

Good luck with your project!
0 Kudos
Message 26 of 27

You could look at National Instruments Drive Advisor, however, there are really no solutions for very small DC motors.

How much current is your motor rated for? You might even consider a small custom amplifier circuit (depending on your circuit design skills) that could take PWM or Analog input. The following link has some examples. Hope this helps:

You might want to look at small robot motor controllers - they normally can take PWM inputs. Most H-Bridge configurations (without attached controllers) can.

Good luck with your project!
0 Kudos
Message 27 of 27