Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Howto generate pulses with the builtin frequency generator on DAQmx in C

I have a DAQmx running on a Linux system and i program in C. I would like to generate pulses from the builtin frequency generator out on any PFI port.
Does anyone know howto do that in C?
 
 
0 Kudos
Message 1 of 6
(3,291 Views)

Hello!

The information provided was a little bit short in order for me to answer you correcly.

Which board are you using? Do you use a M-series device, USB device or a E-series device? Which 'built-in' frequency generator are you referring to?

Thanks for you cooperation!

Regards,

Jimmie A.

Applications Engineer, National Instruments

 

 

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 2 of 6
(3,283 Views)
Hello again!
 
You also mentioned you were on the Linux platform so in other you are using the DAQmx Base driver (not the same as the DAQmx driver). Which version of DAQmx Base are you using?
 
Regards,
Jimmie A.
Applications Engineer, National Instruments
Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 3 of 6
(3,279 Views)
Hi, Jimmie.
I have NI 6220 PCI card and i'm running the NI-DAQmx Base 1.5.0f2.
In the documentation of the card it sais:

Frequency Generation

You can generate a frequency by using a counter in pulse train generation mode or by using the frequency generator circuit.

 

My problem is that i would like to generate a pulse train but without using the counters. I need the counters for other things.Is it possible to use the

frequency generator circuit or do i need to use the counters?

 

regards

/josef 

0 Kudos
Message 4 of 6
(3,275 Views)

Hello!

The function calls in DAQmx and DAQmx Base should be pretty much the same so I think you can look at the C-program found on this link:

http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=F0F7361B22D90F11E0340003BA7CCD71&p_...

At least you will get the overall programming flow.

Hope this helps!

Regards,

Jimmie A.

Applications Engineer, National Instruments

 

 

 

 

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 5 of 6
(3,271 Views)
Thanks! 🙂
0 Kudos
Message 6 of 6
(3,268 Views)