Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

Data is unnormal with hw timed acquisition with dma on aiex3,please help me

Hello,I want a continuous mode,I modify from example aiex3:

1) enable continuous

const tBoolean continuous=kFalse ;---------->const tBoolean continuous=kTrue;

2)config dma to ring mode

   status=dma->config(0,tDMAChannel::kNormal,tDMAChannel::kIn,dmaSizeInBytes,tDMAChannel::16bit);

   -------->status=dma->config(0,tDMAChannel::kring,tDMAChannel::kIn,dmaSizeInBytes,tDMAChannel::16bit);

3)get data in a infinite loop

   while(bytesRead<totalNumerOfBytes && (kNoError==status))---------->while(kNoError==status)

 

I run my program without connecting to any signal source,the data I get is always -0.009239. With the program runing,I connect to a signal source , the data I got is

still the same -0.009239. the output of aiex2 is normal .My board is pxi6259 and OS is QNX.

0 Kudos
Message 1 of 4
(6,114 Views)

Does aiex3 report good data without any changes? Have you used DMA with QNX before?

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 2 of 4
(6,085 Views)

Thanks Joe Friedchicken.

No error is reported while running aiex3,but data is always -0.009239.

0 Kudos
Message 3 of 4
(6,065 Views)

Do you know if the device has been damaged? If you have access to a Windows PC, please use the MAX test panels to confirm that the 6259 can acquire data correctly.

Joe Friedchicken
NI Configuration Based Software
Get with your fellow OS users
[ Linux ] [ macOS ]
Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
0 Kudos
Message 4 of 4
(6,056 Views)