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,711 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,692 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,667 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,665 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,652 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,643 Views)
Hello to everyone at NI
 
I have a question on NI 6519-DIO
 
The DAQ documentation I have downloaded for 6519 also covers NI 6509, 651x (includes 6519), 6520, 6521 and 6528.
 
According to this document (Static DIO register level programming) on page 1-3 there is a table called (Product Port Direction) which specifies all NI DIO devices port direction. However, the driver code seems to be for DIO 6509 which has 11 ports and all 6509 ports are bidirectional and programmable for Input or Output (I/O). Beased on this table, the device that we are using (DIO 6519) has 4 ports only and ports 0 and 1 are for Input and ports 2 and 3 are for outputs.
 
My question is, since the driver code seems to be for DIO 6509 which each port needs to be programmed for Input or Output, do I need to program the DIO 6519 this way or based on the document the DIO 6519 is already designed to be ports 0 &1 for Input only and ports 2 & 3 for output only and no need to be programmed for direction???
 
Can I assume that the specified ports 0 thru 3 of DIO 6519 are 2 for Inputs always (0 and 1) and 2 ports are for output always (2 and 3)?
 
Please be clear and specific in your answer. This is urgent and we are waiting on this to proceed.
I thank you for your quick respond in advance.
Thank you very much.
 
Lee Khadivi
Curtiss Wright Embedded Controls
0 Kudos
Message 7 of 30
(11,632 Views)
Hello to everyone at NI
 
I have a question on NI 6519-DIO
 
The DAQ documentation I have downloaded for 6519 also covers NI 6509, 651x (includes 6519), 6520, 6521 and 6528.
 
According to this document (Static DIO register level programming) on page 1-3 there is a table called (Product Port Direction) which specifies all NI DIO devices port direction. However, the driver code seems to be for DIO 6509 which has 11 ports and all 6509 ports are bidirectional and programmable for Input or Output (I/O). Beased on this table, the device that we are using (DIO 6519) has 4 ports only and ports 0 and 1 are for Input and ports 2 and 3 are for outputs.
 
My question is, since the driver code seems to be for DIO 6509 which each port needs to be programmed for Input or Output, do I need to program the DIO 6519 this way or based on the document the DIO 6519 is already designed to be ports 0 &1 for Input only and ports 2 & 3 for output only and no need to be programmed for direction???
 
Can I assume that the specified ports 0 thru 3 of DIO 6519 are 2 for Inputs always (0 and 1) and 2 ports are for output always (2 and 3)?
 
Please be clear and specific in your answer. This is urgent and we are waiting on this to proceed.
I thank you for your quick respond in advance.
Thank you very much.
 
Lee Khadivi
Curtiss Wright Embedded Controls
0 Kudos
Message 8 of 30
(11,631 Views)

Hello Lee,

It appears that you do NOT need to configure the port direction for the 6519.  You should be able to simply write and read values from the appropriate ports (ports 0 & 1 = input, ports 2 & 3 = output).  NI is closed this morning due to inclement weather, so I cannot test this out myself.  However, you should be able to perform a simple test to verify this behavior.  Let me know if you have any problems.

Jeremy

0 Kudos
Message 9 of 30
(11,617 Views)
Thanks Jeremy
I heard about the weather in Texas with ice and all. Hopw it will be alright.
 
Thanks for the input you gave. Please let me know what happens after you test the 6519 out.
 
Alo, here is another question. I am trying to use the driver code for 6519(not under windows but under PCI bus under VxWorks). The driver code never checks to see what kind of board it is and assumes 6509 which has 11 ports and programms all these ports. Is there a FLAG in the code to tell it this is a 6519 board and program it only for 4 ports?
 
Using this driver code from NI, the board we have 6519 is not working. I tested it yesterday and after the driver code write to the board port 2 for output, I do not get any voltage out of the port. Can you tell me what is going on with this driver and how I can make it work for 6519 board?
 
ANy help that you can provide will be appreciated and will be helpful for us in making the driver work for the board 6519.
 
Thanks so much
 
Lee Khadivi
 
Curtiss Wright
 
0 Kudos
Message 10 of 30
(11,605 Views)