Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change freq in DigPulseTrain-Cont?

I'm using pci-6025E and visual c++
 
I'll make digital pulse continuous train.
 
And I want to change frequency 4000 ㅡ> 5000 ㅡ> 6000 ㅡ> 7000
 
how can I do that?
 
I find  "DAQmxWriteCtrFreq" but I don't know how to use it.
 
can you help me?? plz~~
 

메시지가 05-11-2006 08:49 AM에 Garden에 의해 편집되었음

0 Kudos
Message 1 of 3
(3,422 Views)
Hi Garden,

I hope you're doing well.  Typically, if you want to set a new value to certain properties during run-time, you may be able to do so with DAQmx properties.  You can get a list of what properties you can set by opening the NI-DAQmx C Reference Help in Windows by going to Start»Programs»National Instruments»NI-DAQ.  Once you have the Help file open, expand the NI-DAQmx C Properties tree.  The specific property you need to change your counter output frequency is "DAQmxSetCOFreq" which you can find under the List of Channel Properties and scrolling down to Counter Output.  Every time you call this function, it will set your counter output frequency accordingly.  Keep in mind that not all properties can be modified at run-time.  Let us know if you have any additional questions!

Thaison V
Applications Engineer
National Instruments

0 Kudos
Message 2 of 3
(3,400 Views)

Thank you very much~~~!

 

0 Kudos
Message 3 of 3
(3,387 Views)