From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure several counters and out terminals in one task?

Solved!
Go to solution

I use NI USB-6341 board and it has four counters. I want to configure several pwm generations with different duty and frequency in one task.The vi which I made below can not generate any pwm signals.I hope someone can teach me how to configure! Thanks in advance!

Download All
0 Kudos
Message 1 of 5
(2,790 Views)
Solution
Accepted by topic author mingren1238

I won't swear to this nowadays, but time was when you could not include more than one counter (configured differently) in one task.  NI-DAQ wouldn't allow it.

 

If you try, you get an error - what error code do you get?

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 5
(2,678 Views)

The error code is 89137,the error happens in DAQmx Start Task.vi:722001. Specified route cann't meet the requirement.

thanks!

0 Kudos
Message 3 of 5
(2,646 Views)

But I want to synchronize two counters and need to change the PWM duty in every loop. How can I ensure the two counters generating PWM signals synchronously. I have read the examples on this forum using AI input and digital trigger,but situations are different.Waiting for your reply! Greatly apprecited!

0 Kudos
Message 4 of 5
(2,640 Views)

The picture shows my needs!

0 Kudos
Message 5 of 5
(2,638 Views)