Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB 6343 Frequency generator

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(1,248 Views)

M Series User manual tells to consider the frequency generator as a counter https://www.ni.com/pdf/manuals/371022l.pdf

 

santo_13_1-1611847259565.png

 

Better example - https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PA6USAW&l=en-US

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 5
(1,226 Views)

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

0 Kudos
Message 3 of 5
(1,211 Views)

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

0 Kudos
Message 4 of 5
(1,204 Views)
Solution
Accepted by topic author VeH

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.

 

0 Kudos
Message 5 of 5
(1,201 Views)