LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to save 256 points per cycle

Hello

I had a problem that make me crazy!
I want to run a program with 10 AI and 2 AO . I want to change the AO's values on the Fly and i want to save 256 points per cycle with the cycles chosen by myself!
I have two program : One very easy : Only one Ao is implemented and i can't change its value on the fly; only one way to save is implemented too ( it's begin to cycle 5 and then save every 2 cycles). And it works perfectly : I have an excel file at the end with 256 points per cycle.
With the second Vi , which representent 90% of the all goal , i have 2 Ao which i can change the values separatly on the fly without crash ; I have XY graph and 3 different way to save the cycle ( the first N cycle; every n cycle ; or a las
t one ) But now when i look to my excel file i have no more 256 points per cycles. Each cycle saved have a different nomber of points. I have looked every where in my code to understand where come from the mistake but i'm totally lost with the Queue's system and i 'm be able to managed with RT FIFO ( lost to ) So can you help please.
Note : To count the cycle I count the buffer done because I 've created one cycle per buffer in my conception.
To see the problem just plug an AI on one of the 2 AO and Run the VI. The file is saved under the name essai.txt and is load on the roots of the RT engine.

I used an RT Engine PXI 8175 with a PXI 1042 and my cards are PXI 6052 E for the AIs and PXI 6711 for the AOs. I use the RT engine pluged with ethernet wire on a PC
0 Kudos
Message 1 of 1
(2,411 Views)