04-14-2016 08:55 PM
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.
04-18-2016 11:08 AM
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)
04-20-2016 04:02 AM
Thanks Joe Friedchicken.
No error is reported while running aiex3,but data is always -0.009239.
04-20-2016 11:46 AM - last edited on 01-08-2024 10:47 AM by migration-bot
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)