LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with my Vi Acquisition continuous

Hello.

I would like to Acquire a signal continously and draw in a graph.
I have , for example, a buffer with 4000 bits and I read only 1000 bits and after ten seconds a would like stop the acquisition and view in a graph the all bits. But in the graph I view the last 1000 bits only.
I use an array but he don't increment !!!

My problem is simply but I'm a young developer and I can't find a solution.

Thanks for your help.

View the problem :
0 Kudos
Message 1 of 4
(2,539 Views)
I'll recommend you take a look at Variable-Time Chart example in LabVIEW help to see if by modifying it will satisfy your need.
0 Kudos
Message 2 of 4
(2,539 Views)
I believe there is a problem with your insert into array. You can either create an array to initilaize the shift register(use the initialize array.vi) or you could use a build array instead. Of the two methods, the former would be faster.

Since you are using a 2D array, it makes sense to have each row (or column) be a new round of data. It looks like you are attempting to append the new data to the old to make a 1D array. Wire the i directly to the insert array.vi.

Set your number of scans to aquire to -1 in the ai start. This way the acquisition will read until the buffer is full.

If you need more help, look at the LabVIEW shipping examples for analog input. It is typical for a programmer to adapt a simmilar program for their uses.

Jeremy
0 Kudos
Message 3 of 4
(2,538 Views)
Thanks for your help.

The solution it's so easy that i'm ashamed to ask this question !!
0 Kudos
Message 4 of 4
(2,539 Views)