LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Point-by-point VIs with hardware-timed AI VIs

I want to use PtbyPt VIs for fast real-time analysis of biopotentials. I looked through a bunch of examples, but none of them had any AI instruments. All of the PtbyPt VIs have a "set of input data" terminal. How should I connect this terminal to an output of an AI VI? I don't want to use AI Single Scan because I want to use hardware timing. Should I use AI Read VI by reading one scan at a time in a loop and feeding this scan to an input of a PtbyPt VI?
0 Kudos
Message 1 of 4
(2,883 Views)
All the point by point functions should have equivalent functions that allow for array inputs (you may have to search a bit, eg integrate ptpt is under Math->Calc, FFT pt is under Waveform Analy->Freq, etc.) so you can directly wire the AI output (as a scaled array or by breaking out the Y values using waveform funcitons, depends on how you set the polymorph) to them. If you really want to use the point by point functions, use a for loop to autoindex the AI output and feed the values singularly to the point by point function within the loop.


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 2 of 4
(2,883 Views)
Hi Jonnie 5- thanks for your feedback. I want to comment on that.

You suggested to "autoindex the AI output". Which means that the AI output is an array which means that I read the input data in chunks. However, if I want the shortest possible response time in my closed loop system I would rather read one scan at a time and test the input data for an event after each scan. Of course, the computer has to be fast enough to keep up with the data analysis, but this should not be a problem.

If I read one scan at a time, I cannot "use a for loop to autoindex the AI output". So I am back with my original question - how to use hardware-timed AI VIs with Point-by-Point VIs.
0 Kudos
Message 3 of 4
(2,883 Views)
Here's an example of buffered AI read w/ pt-by-pt processing. LV 6.1.


2006 Ultimate LabVIEW G-eek.

Download All
0 Kudos
Message 4 of 4
(2,883 Views)