Counter/Timer

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
(3,275 Views)
While Register Level Programming (RLP) is not supported through the standard Applications Engineering support channels, I have provided you with the following suggestions.

Please see the Measurement Hardware Driver Development Kit Register Level Programming Architecture document, which I have provided a link to below, which states that the memory portion of osiBus, used for DMA operations, has not been implemented in the Linux version of osiBus at this point.

Measurement Hardware Driver Development Kit Register Level Programming Architecture
http://digital.ni.com/public.nsf/websearch/1C3988D7D33B925C86256C59007FB4B4?OpenDocument

Additionally, I would suggest that you post your question to the Driver Development Kit (DDK) forum on our Developer Zone,
in addition to the Counter/Timer and Multifunction DAQ sections, which you have already done.

Driver Development Kit (DDK) Forum
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=8&RFORMNUMBER=3&RHIDETAG=TRUE&UCATEGORY_0=_321&UCATEGORY_S=0

Regards,
Justin Britten

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,275 Views)