Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

Help/Example using DDK, Linux and PCMCIA for 6024e.

I'd like to use DDK on a linux system for register access to a PCMCIA DAQCard 6024e.
0 Kudos
Message 1 of 5
(9,847 Views)
The osiBus interface which is currently included in the MH DDK does not support PCMCIA. It only provides access to PCI cards. You will need to customize the osiUserCode.cpp source code to support PCMCIA. This includes finding the appropriate card and mapping the memory interface so that the rest of the driver code is able to access the card.

Christian L
Consulting Services
National Instruments

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


  
0 Kudos
Message 2 of 5
(9,847 Views)
Christian,
Thanks for the information. I am using a laptop with a DAQCard 6024e to time stamp some external events (digital signals) with 50 micro second or better accuracy. I'm using Linux with the rtai extensions.

I had hoped to use the comedi drivers. However they do not support external interrupts. Then I found the MH DDK, and thought I might have a ready made environment for accessing the STC registers on the DAQCard 6024e.

I've just started to work on accessing the STC registers using a comedi application since it takes care of the PCMCIA setup for me.

The posted MH DDK examples and documentation seemed to indicate that I was out of luck with a linux and PCMICA environment. Your answer confirmed this, but you have caused me to cons
ider modifying the osiBus to do PCMCIA, instead of modifying the comedi to support interrupts via the STC registers.

Maybe a little experience with the DAQ-STC Technical Reference Manual will help me to identify the appropriate approach. I have not looked into the MH DDK board specific register level API examples enough to see if there is any STC help in there. If so, I may be better off to modify the osiBus interface and take advantage of any board level API stuff that is already out there.

Thanks again for the information.

RBB
0 Kudos
Message 3 of 5
(9,847 Views)
RBB,

AI Example 3 (aiex3.cpp) includes information about interrupt programming with the STC in an AI operation. This should get you started and provide an example to put the STC manual into context.

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


  
0 Kudos
Message 4 of 5
(9,847 Views)
Thanks, I'll take a look at aiex3.cpp.
RBB
0 Kudos
Message 5 of 5
(9,847 Views)