Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

"DDK with the NI 6602 and example programm gpct_ex8.cpp"

"Hello,

I got from NI the following the Measurement Hardware Driver Development Kit
for the NI 6602 Counter/Timer Card to work with Linux:


http://sine.ni.com/apps/we/nioc. vp?cid=11737〈=US


one is the common driver.


The other are the sample programms.


However, every programm except the one which uses the
interupt/dma works(gpct_ex8.cpp).


Here is the errormessages:


************************************************** *****************
[root@proto OSinterface]# ls
gpct_ex1.cpp gpct_ex4.cpp gpct_ex7.cpp osiBus.cpp osiUserCode.cpp
tTIO.cpp
gpct_ex2.cpp gpct_ex5.cpp gpct_ex8.cpp osiBus.h trace.h
tTIO.h
gpct_ex3.cpp gpct_ex6.cpp gpct_ex9.cpp osiTypes.h tStatus2.h

tTIO.ipp
[root@proto OSinterface]# g++ gpct_ex8.cpp osiBus.cpp osiUserCode.cpp
tTIO.cpp
In file included from osiBus.h:9,
from gpct_ex8.cpp:15:
osiTypes.h:39:1: warning: "NULL" redefined
In file included from /usr/include/_G_config.h:14,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from gpct_ex8.cpp:14:
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:366:1: warning: this
is
the location of the previous definition
gpct_ex8.cpp: In function `void test(iBus*)':
gpct_ex8.cpp:112: `class tTIO' has no member named `G0_DMA_Control_Register'
gpct_ex8.cpp:113: `class tTIO' has no member named `G0_DMA_Control_Register'
gpct_ex8.cpp:136: `class tTIO' has no member named `G0_DMA_Status_Register'
gpct_ex8.cpp: In function `void gpct_ISR(tTIO*)':
gpct_ex8.cpp:154: `class tTIO' has no member named `G0_DMA_Status_Register'
[root@proto OSinterface]#
******************************************
******** *****************


Does anyone know what is the problem with it?


I have Redhat-Linux 8.0 and kernel 2.4.18.


Thank you


Mario Behn
0 Kudos
Message 1 of 2
(8,384 Views)
Mario,

Unfortunately the TIO ChipObject included in the MH DDK for the 660x is missing a number of registers. I have attached the update TIO ChipObject to this note. In addition you should edit the call to the G0_DMA_Control_Register in the example. Instead of G0_DMA_Control_Register it should reference G0_DMA_Config_Register instead. Please make this change manually in your code.

Christian L
Consulting Services
National Instruments
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
Download All
0 Kudos
Message 2 of 2
(8,384 Views)