gv2000
2008-07-17 21:40:13 UTC
Hi,I have a device that has a single data/address bus and 80 registers. I am developing software to configure/use it using a NI-6541. The software is working, but it is very slow when I read the values of the registers (~30s to read all registers).To read a register value I do the following:1. Write the address of the register that I want (using niHSDIO_InitGenerationSession, niHSDIO_AssignDynamicChannels,...,niHSDIO_WriteNamedWaveformU32, niHSDIO_CommitDynamic, niHSDIO_Initiate). Data bus is writing.2. Start another generation session with appropriate control signals to read, and an acquisition session to read the register value. For this step I am following the DynamicAcqAndGen-SourceSynchronous example that comes with the NI software, which calls the same functions of step 1 for the generation, and calls niHSDIO_InitAcquisitionSession, niHSDIO_AssignDynamicChannels, niHSDIO_ConfigureAcquisitionSize, niHSDIO_Initiate, niHSDIO_FetchWaveformU32). Data bus is reading.3. Repeat steps 1 & 2 80 times.Is there a better/faster/more efficient way to read the registers of our device using the NI-6541?Thanks in advance for your help,GVMessage Edited by gv2000 on 07-17-2008 04:17 PM