Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

AIEx1 Example code

I have use the RLP Example for DaqCard AI 16E 50 on Windows CE .net system. Finally I get the nirlpdriver.dll work. Now I egt to the run the AIEX1 example. It looks like configure the board properly (Can not verify, because there is no debug tool to do it). It is stuck in the loop to check FIFO data ready bit. But that bit never flag not empty. What is wrong? Where can I find more detail info for this example and Registry level programming? Please give any help you can. I realy delay this project.

HL
0 Kudos
Message 1 of 4
(7,687 Views)
HL,
1) How many samples do you acquire before the FIFO ready bit stays at 0?

2) Are you sure that you are reading and writing registers on the DAQCard? Have you read other status bits correctly (like any of the AI SI/SI2/SC Armed St registers)

3) If you compile your program on Windows using the Windows VISA version of MH DDK, does it behave the same?

Tim
0 Kudos
Message 2 of 4
(7,687 Views)
1) I think AIEX1 is simplest example. It only acquire one data point. So it should read the not empty flag.

2) I used the createFile to get to the DAQCard from the Example code of NI for RLP program. So I think it is communicate with DAQCard. Not yet read to read other status bit. I will try to work on it to make sure things are set right.

3) I can not compile it On window because I do not have PCMCIA interface for my desktop machine.

Any more suggestion? Thank you for your help. Please help me to understand this card and programming.

Thanks

HL
0 Kudos
Message 3 of 4
(7,687 Views)
HL,
AIEX1 must wait for the board to acquire the data point before it can read the data from the FIFO. So it reads the status bit and waits for the Not Empty flag to be 1. This indicates that there is at least one point in the AI FIFO. If AIEX1 reads the FIFO before the Not Empty flag is 1, the FIFO will not have data from the ADC. AIEX1 must wait until the FIFO is Not Empty before it can read the data.

MHDDK examples can run on Windows and Linux with a PCI E-Series card. If you have a PCI E-Series card you can run the same example on a Windows computer.

Tim
0 Kudos
Message 4 of 4
(7,687 Views)