11-10-2007 02:47 AM
11-13-2007
10:04 AM
- last edited on
06-21-2024
09:19 AM
by
Content Cleaner
Hello MogeMbo,
Fortunately you can still generate pulse width modulated signals using the PCI-6518. The only caveat to keep in mind is that this board has no counters and the DIO lines are entirely static. This means that your application will be entirely software timed and at the mercy of the system you are running it on. That being said, I have included a simple example which illustrated two methods of generating pulse width modulated signals.
The first method uses the counter on a while loop to determine the length of the positive pulse.
The second method allows you to switch between two pre-made pulse lengths.
In either case, the timing is controlled by a software timing structure (delay) within the main while loop. This can be controlled on the front panel to increase or decrease the “frequency” of the signal. As mentioned above however the accuracy of this timing is dependent on the system.
Below are some great resources which will help you understand the DAQmx driver and how to program various applications using our DAQ hardware.
Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
Let me know if you have any questions about this example.
Regards,
11-14-2007 10:13 PM
Dear Mr Chris B,
Merci Beacoup for your explanation and attachments, anyhow I will try to develop a VI for my RC Servo base on your information.
Surely I will need more help couse I'm in learning step. I will maybe reply in 2 weeks later............
Thank you
MoGemBo