Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQ M-seried 6230 Analog Output, AI_FIFO, AI_FIFO always returns 0x07FF , please help

We have a PCI NI-DAQ 6230 M-Serioes card. I tried this card under windows and was able to do Analog Out and Analog In, no problems.
 
I transferred the board to under VxWroks RTOS using the example code. NI does not have drivers for VxWorks. they have it for other OSs such as Lenux.
 
I was able to get the AO working under VxWorks, I have spent lots of time trying to get Analog In working but using the example code I always get the value 0x7FFF  out of the AI FIFO. What seems to be the probelem I have no clue. I do have a debugger and ran the code in singe step and occasionally I get the value 0x2085. This is regardless of what the input voltage is. I use Pins 1 and 20 for the AI analog input and I connect it to a Agilent Waveform Generator.
 
Does any one have any idea or have run into similar or same problem during development?
I am new to this board and trying to get the AI working.
 
Please Help!  Thanks, I have done everything I can so far with this board. The AI is not working and there is no documentation available from NI.
 
Thanks a bunch
0 Kudos
Message 1 of 30
(11,789 Views)
Hi,

The examples were written using a 625x device, but all MSeries boards (PCI/PXI-62xx) share the same architecture.  The difference between models (622x, 623x, 625x and 628x) usually affect frontend settings, such as the gain-range map and convert clock polarity.

623x and 622x boards use the same settings.  It is not mentioned in the examples since they were released before the boards were released.

Try the attached example (aiex1.cpp - on demand AI) to see how it works.  The changes apply to the other AI examples.

Diego

---------------------------------

The specific changes in the example are:

- line 34 -> change the convert polarity in aiPersonalize() to:
   tMSeries::tAI_Output_Control::kAI_CONVERT_Output_SelectActive_High
- line 47 - comment adcReset()
- line 60 - in aiConfigureChannel() change gain index from 1 to 0

0 Kudos
Message 2 of 30
(11,770 Views)
Thanks very much.
We also need driver code for the board 6219, DIO board.
 
Do you have driver code that allows us to perform Input and Output to the ports?
 
There are 2 input and 2 Output ports on the board.
I greatly appreciate it if you can provide driver code for this.
 
Thanks very much
 
Lee Khadivi
Curtiss Wright Embedded Controls
0 Kudos
Message 3 of 30
(11,745 Views)

Sorry, in my DIO message I said the board is 6219. My mistake. It is DIO 6519.

I apologize for that.

Lee Khadivi

0 Kudos
Message 4 of 30
(11,743 Views)
Hi Lee,

The suggested driver for the NI PCI-6519 is our DAQmx driver.  You can download the latest version of DAQmx (8.3.1) for Windows 2000/XP here.  To navigate to all of our drivers from ni.com, click Support » Drivers and Updates » Current Versions.

Regards,
Erik
0 Kudos
Message 5 of 30
(11,730 Views)
You can find MHDDK examples and documentation at:

   ftp://ftp.ni.com/support/daq/mhddk/documentation/371580a.pdf
   ftp://ftp.ni.com/support/daq/mhddk/examples/ni_static_dio.zip
   
The documentation for these devices includes the register descriptions and programming information.

Diego.
0 Kudos
Message 6 of 30
(11,721 Views)