LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vider buffer

Bonjour,

 

Actuellement je bosse sur des cartes d'acquisition et j'ai un logiciel permettant d'enregistrer un signal.

 

J'ai un petit souci , il n'enregistre pas en temps réel (problème de remplissage de buffer). À mon avis il ne lis pas aussi vite qu'il ne remplit.

 

Là j'ai essayé tout ce qui est prescrit sur les forums: taille buffer, nombre d'échantillons à lire...

 

Et quand je diminue la taille du buffer, ça accelere un peu l'enregistrement mais ça m'affiche des signaux bruiteux.

 

J'aimerais avoir des idées là-dessus pour pouvoir enregistrer en temps réel.


.

0 Kudos
Message 1 of 20
(1,393 Views)

We probably need to see what you are doing.

0 Kudos
Message 2 of 20
(1,376 Views)

@altenbach wrote:

We probably need to see what you are doing.


Not only probably! The actual source code (cleaned up and reduced to the minimum program that still reproduces the problem), the detailed specifications of what hardware is used and the used parameters (buffer size, sample rate etc) are simply a requirement.

Rolf Kalbermatter
My Blog
Message 3 of 20
(1,357 Views)

labview1.PNG

labview2.PNG

labview3.PNG

Labview4.PNG

0 Kudos
Message 4 of 20
(1,311 Views)

on ne sait toujours pas quel matériel tu utilises, si tu peux en dire plus on pourra peut être t'aider.

dans ton premier message tu parles d'enregistrement, dans les images postées je ne vois rien sur ce point.

tu enregistres quoi (signaux), sous quel format (txt, csv, bin, wav?) à quelle fréquence, pendant combien de temps ?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 5 of 20
(1,307 Views)

Hi Diallo,

 

when asked for code we usually prefer real code,not just images of code!

 

IMHO I see to many global variables. On the other hand I see a very old LabVIEW version…

 

Where does the error occur? Which error do you encounter?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 20
(1,305 Views)

Yes we use the 2009 version. It is a problem of buffer, there is a huge delay in the display of the signal, the problem would come from the screws configuration of the outputs at the level of the configuration and generation of the outputs at the level of the recording.

Tomorrow morning I will send you the full program.

 

best regards.

0 Kudos
Message 7 of 20
(1,285 Views)

j'utilise une carte USB ni6212 et une autre avec un vieux pc(panasonic) daqcard 6054e. 

on enregistre des signaux (carré, sinusoidal et triangulaire), par contre j'ai un retard énorme au niveau de l'affichage. demain matin à 9h je vous enverai le programme complet, c'est sera plus facile.

0 Kudos
Message 8 of 20
(1,283 Views)

Hi Diallo,

 


@Diallo_td wrote:

I use a ni6212 usb card and another with an old pc(panasonic) daqcard 6054e.

we record signals (square, sinusoidal and triangular), on the other hand I have a huge delay in the display. tomorrow morning at 9 am I will send you the complete program, it will be easier.


Please stick with English, it's easier to read for most of us!

 

Please define "huge delay"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 20
(1,258 Views)
Ok in fact as I said, I have a problem of buffer, at the level of the display of the program, there is a huge delay. Our tests showed that the problem would come from the configurations of the outputs at the level of the condition configuration and the generation of the outputs at the level of the registration condition.

 

When I remove the vi generation from the outputs, I speed up the display but the program does not show me the real signal.
I need to speed up the program to make a real time display.
There it is really a problem of buffer, I made all that is prescribed in this forum in particular the size of the buffer, the sampling frequency, the number of points, for the moment nothing.
0 Kudos
Message 10 of 20
(1,251 Views)