From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Problem with continuous acquisition on pci-6014

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?

0 Kudos
Message 1 of 4
(7,193 Views)

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

Steven K.
National Instruments
Software Engineer
Message 2 of 4
(7,176 Views)

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. 

0 Kudos
Message 3 of 4
(7,164 Views)

I resolved with the next code:

 

theSTC->AI_command1_.writeAI_Disarm(1);

Configure_Board(theSTC,board);

AI_Arming(theSTC);

 

tanks at all

0 Kudos
Message 4 of 4
(7,120 Views)