From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,444 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,415 Views)

Thanks Joe Friedchicken.

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

0 Kudos
Message 3 of 4
(6,395 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,386 Views)