Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

time base

I am tasked with adding support for a NI 6624 card to an existing application. All the previous programmers who worked on NI card support are long gone. The support for whatever counter/timer card was previsouly used only partialy works. (no one still working here knows what it was)

 

I this error message:

"Measurements: Requested values of the Minimum and Maximum properties for the counter channel are not supported for the given type of device. The values that can be specified for Minimum and Maximum depend on the counter timebase rate."

 

Since this code worked for at least one other NI counter/timer card, I am assuming the time base constant is wrong.

 

Looking through the code, I discovered that the time base is hard coded. It is neither read nor set by the software.

 

I have  searched ni.com and the web in general and can not find a way to read from the NI 6624 card the time base. Nor was I able to find a way to set it

 

Also, I was unable to find an actuall DAQmx API document.

 

Please note we do not have MeasuremenStudio, so are relying entirely on the DAQmx API.

 

Also, are application is written in C#

0 Kudos
Message 1 of 2
(5,002 Views)

Looking at the specification for that board the time base should be 20 MHz. Is there an error code that accompanies that message? When you install the DAQmx driver you have the option to include text based support and examples. You will then find example to use the counters on your card in both ANSI C and .Net in:

 

C:\Documents and Settings\All Users\Documents\National Instruments\NI-DAQ\Examples

 

Make sure the examples can run properly and use them as a guide to see if anything is different from the example to your code.

 

Matt
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(4,983 Views)