Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the 3 extra DIO ports of a PCI 6025

How do I access the 3 extra DIO ports of my PCI 6025E ?
I understand that it is not supported -yet- by DAQmx base.
From the writeDigPort.c example it looks like it is possible using
DAQmxBaseCreateDOChan(...,"Dev1/port0:2",...) but it returns a -1 error.

I had a look a the MHDDK ( tSTC and tESeries files) and it looks like the
extra DIO ports of the 6025 are not accessible/exported. If I want to access
the extra 6025 ports via the 8255 I need to write my own much like the
DIO96's t8255 files ? I would prefer to avoid such a writing....

Thanks

Chris

0 Kudos
Message 1 of 2
(7,865 Views)

I haven't actually test this but ...

You should be able to use the existing 8255 Chip object and examples from the DIO-96 and just change the offsets within t8255.h.  The offset for the 8255 registers on the 6025E are as follows:

portARegisterOffset =   0x19;
portBRegisterOffset =   0x1B;
portCRegisterOffset =   0x1D;
controlRegisterOffset = 0x1F;

 

Message 2 of 2
(7,856 Views)