LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ

Hello

I'm a starter vith LabVIEW and have some trouble with LabVIEW vs DAQ

I have a DAQ channel that I sample through AI Sample Channel. The output
from the AI Sample Channel I send in a bundle together with a index, and the
output from the bundle I would like to show with a XY graph, but the bundle
and the XY graph can not to wired together.

I Dont know why!!

What is the output from a AI Sample Channel? Is it a indexed array or just a
number as representation of the measurenemt?

/Peter
0 Kudos
Message 1 of 3
(2,439 Views)
Output from AI Sample Channel is one-point waveform type or scaled value (pop up on it and click on Select Type).
Cause it is only one point you have to collect N data points in array by means of for loop and then directly link to the Waveform Chart or Graph (not XY Graph).
But better solution is to use AI Acquire Waveform.vi directly linked to Waveform Chart instead of AI Sample Channel.vi.
I suppose you are under LV6.0 or higher.
Romek
0 Kudos
Message 2 of 3
(2,439 Views)
> I have a DAQ channel that I sample through AI Sample Channel. The output
> from the AI Sample Channel I send in a bundle together with a index, and the
> output from the bundle I would like to show with a XY graph, but the bundle
> and the XY graph can not to wired together.
>
> I Dont know why!!
>
> What is the output from a AI Sample Channel? Is it a indexed array or just a
> number as representation of the measurenemt?
>

When you aren't sure about the type of a wire, use the help window and
the wiring tool. Show the help window using Ctl-H, and with the wiring
tool, hover over the wire from the bundle.

The XY graph accepts two types of data for a single plot graph. It
accepts a cluster of X array and Y array, and it accepts an array of
cluster o
f X,Y pairs.

One thing you might have is an array from the DAQ read and a single
timestamp for the X.

Examples are another good help here. Examples/general/graph has
examples for the various graphs that show the datatypes they accept.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,439 Views)