07-01-2014 08:52 AM
I use an pci-6014.
I need to stop acquisition, clear FIFO and restart acquisition.
If I use the command:
theSTC->AI_command2_.writeAI_End_On_End_of_Scan(1)
next is not possible restart acquisition for example with
theSTC->AI_command2_.writeAI_START1_Pulse(1)
why?
07-02-2014 10:32 AM
Hi gianse2000,
One thing to keep in mind is that the board won't be in the same state after you end the acquisition as it is in right before you just start it. You will need to reconfigure parts of board to rearm it to restart the acquisition. Try checking the arm state of the AI counters by reading the values of AI_SC_Armed_St, AI_SI_Armed_St, AI_SI2_Armed_St, AI_DIV_Armed_St.
You can find more information about these registers in the STC Reference Manual:
http://www.ni.com/pdf/manuals/340934b.pdf
07-03-2014 05:51 AM
Hi Steven,
I read the example aiex2.cpp from dhddk e series and I wite the next function for sto,clear FIFO and start acquisition:
theSTC->AI_command2_.writeAI_End_On_End_of_Scan(1);
usleep(100); //wait 100 micro seconds
Clear_FIFO(theSTC);
AI_Arming(theSTC);
theSTC->AI_command2_.writeAI_START1_Pulse(1);
but the new acquisition do not start.
07-11-2014 06:11 AM
I resolved with the next code:
theSTC->AI_command1_.writeAI_Disarm(1);
Configure_Board(theSTC,board);
AI_Arming(theSTC);
tanks at all