Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

analog out DDK example code crashes after reading eeprom

I'm trying to run the simplest analog-out MHDDK example code (aoex1.cpp) for a pair of PCI-6259 m-series cards, and while it compiles fine, it crashes with the old EXC_BAD_ACCESS error when it trys to read the calibration information off the EEPROM (crash occurs in the function getF32FromEeprom()). After a couple of days worth of pondering and the addition of countless printf()'s to the example code I tracked the problem down to the function eepromReadMSeries() which--as far as I can tell--is supposed to take all of the information off of the cards EEPROM and store it in a buffer variously called eepromMemory or eepromBuffer. I don't think eepromReadMSeries() is doing it's job though since I get a buffer (eepromMemory/eepormBuffer)full of 255 (the buffer is an array of u8's so basically in binary I'm getting all 1's). Unfortunatly I can't figure out what is going on in the inards of eepromReadMSeries(). I assume it's a stupid mistake, but I am a little confused in that (with the exception of the added printf()'s) I haven't really moddified the example code. Anyway I would appreciate any assistance. My specifics are:

computer: mac G5 OSX 10.5
cards: a pair of PCI-6259's
NI-VISA version: 3.5
programing environment: X-code 2.2

In a related story is there any way to get more information on regiser level programing the m-series? I went through the "sales channel" looking for the m-series register level programing manual as instructed on the DDK download page, but after beeing passed around to several NI staffers I was finally told that such a document does not exist. Are there plans for an m-series programming manual, or related documents that might be of use? Thank you.

Ian Clark
0 Kudos
Message 1 of 3
(7,716 Views)
It works ok with my M Series device.  I get a lot of 0xFFs but certainly not all the entire eeprom buffer.  Do your analog input examples work?  Those examples read from the eeprom as well.  Does it return all FFs when you read the eeprom in the ai examples?  Does it crash?
-Alan A.
0 Kudos
Message 2 of 3
(7,681 Views)
Have you been able to get the AI working on M-Series? outside Windows? Things work pretty well under windows.
I am trying the get the 6230 board to work under VxWorks.
 
I have the AO working after fixing the Endianness.
 
I have not been able to get the Analog AI working yet. the AI  FIFo always returns 0x7FFF ????
 
Any idea why I can not get the right value out of AI FIFO ? This is 16-bit register. The value should reflect the Alanog Input Voltage.
 
Thanks for any help.
0 Kudos
Message 3 of 3
(7,292 Views)