ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How does LabVIEW manages memory concerning data acquisition ?

Let´s say I want to acquire a single point of a given channel.

I can do it many ways and two of them are the following ones :

1.Through the use of the AI Sample Channels VI
2. Using the following VIs in the given order:
AI Config -> AI Start -> AI Read -> AI Clear.

I know the second option ia an example of buffered acquisiton and I think that after acquisition is done the memory associated with it is released by the AI Clear VI. I think the first one is better for my application but after a period of time, the response to the user inputs become so slow until there´s no response at all. Why is that such a simple application makes it happen ?

If there´s any information needed to unders
tand what I mean please let me know.

PS :

I´ve attached two jpg files, one showing the front panel of my VI and the second showing its block diagram.
Download All
0 Kudos
Message 1 of 3
(2,632 Views)
Giovani,

by looking at the block diagram in your application, you might want to insert a timing function (wait until..(100ms)) in your while loop.
As things are right now there is no time for the user interface to get handled.

AlessioD
N.I.
0 Kudos
Message 2 of 3
(2,632 Views)
AlessioD,

Thanks a lot for your sugestion.
I´ll implement it and as soon as it´s possible I´ll post a message here to let you know if it worked.

Sincerely,
Giovani Marcelino Nesi
DRV - Desenvolvimento e Representação Virtual Ltda.
0 Kudos
Message 3 of 3
(2,632 Views)