01-28-2021 07:12 AM
Hello all,
The NI USB 6343 manual says that it has a "Frequency Generator" !
Can anybody tell me how i can use this using C# and the DAQmx API.
A counter is no problem but this generator... I cant find anything about it.
Regards,
Herbert Veldhuis
Solved! Go to Solution.
01-28-2021 09:22 AM
M Series User manual tells to consider the frequency generator as a counter https://www.ni.com/pdf/manuals/371022l.pdf
Better example - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PA6USAW&l=en-US
01-29-2021 12:41 AM
Thank you for your reply, but.....
I already studied these examples, but when i use the DAQmx API in C# and I program
a COChannel i still only can use the ports CTR0...CTR3 for it and therefore I only can
program 4 PWM signals like the example I added but i need 6 of them.
How can I redirect a COChannel to any FPI channel, I tried all kinds of possibilities but
nothing worked.
Regards,
Herbert Veldhuis
01-29-2021 02:30 AM
Hello again,
Yes i have the frequency generator up and running but it is of no use for me because I can not set
every custom frquency I want.
So next question ...... Is it possible to route for example the CTR0 output terminal to more than 1 other terminal.
Because I need 6 outputs with a PWM signal and I only have 4 counters.
Regards
Herbert Veldhuis
01-29-2021 03:44 AM
Yes.....
I found the solution
Redirecting counter 0 -> Ctr0 -> PF12
DaqSystem.Local.ConnectTerminals("/Dev1/PFI12", "/dev1/PFI0");
DaqSystem.Local.ConnectTerminals("/Dev1/PFI12", "/dev1/PFI1");
DaqSystem.Local.ConnectTerminals("/Dev1/PFI12", "/dev1/PFI2");
DaqSystem.Local.ConnectTerminals("/Dev1/PFI12", "/dev1/PFI3");
DaqSystem.Local.ConnectTerminals("/Dev1/PFI12", "/dev1/PFI4");
DaqSystem.Local.ConnectTerminals("/Dev1/PFI12", "/dev1/PFI5");
Nou i have 1 counter and 6 outputs.