LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control references and XY graph

hi there,
I was wondering if somebody can help me with passing data to a " XY graph
" not waveform graph [ in a main VI ]
from a sub vI using the concept of a control reference..
p.s: I dont intend to flatten data .
It works fine with waveform graph but there is nothing to show ( even
examples ) me how to do it with XY
graph.
thanks.
ananth
0 Kudos
Message 1 of 7
(3,467 Views)
>I was wondering if somebody can help me
>with passing data to a " XY graph" not
>waveform graph [ in a main VI ]
>from a sub vI using the concept of a
>control reference..

I don't see any problems here using LabVIEW 6.0, and I'm wondering if you're
having trouble with a Variant input or something.

Here's an example of a subVI that spits data into a main VI's XY Graph by
way of a control reference:

ftp://ftp.ni.com/incoming/xy.zip

Regards,
John Lum
National Instruments
0 Kudos
Message 2 of 7
(3,465 Views)
thanks
and you said it right. that was the problem.




"John Lum" wrote:
>>>I was wondering if somebody can help me>>with passing data to a " XY
graph" not>>waveform graph [ in a main VI ] >>from a sub vI using the concept
of a>>control reference.. >>I don't see any problems here using LabVIEW 6.0,
and I'm wondering if you're>having trouble with a Variant input or something.>>Here's
an example of a subVI that spits data into a main VI's XY Graph by>way of
a control reference:>>ftp://ftp.ni.com/incoming/xy.zip>>Regards,>John Lum>National
Instruments
0 Kudos
Message 3 of 7
(3,465 Views)
In the example, why is the control reference outside the case statement, since the graph
is only updated when plot=true the ref belongs inside or did I miss something?.

ananth wrote:

> thanks
> and you said it right. that was the problem.
>
> "John Lum" wrote:
> >>>I was wondering if somebody can help me>>with passing data to a " XY
> graph" not>>waveform graph [ in a main VI ] >>from a sub vI using the concept
> of a>>control reference.. >>I don't see any problems here using LabVIEW 6.0,
> and I'm wondering if you're>having trouble with a Variant input or something.>>Here's
> an example of a subVI that spits data into a main VI's XY Graph by>way of
> a control reference:>>ftp://ftp.ni.com/incoming/xy.zip>>Regards,>John Lum>Na
tional
> Instruments
0 Kudos
Message 4 of 7
(3,465 Views)

That xy.zip is no longer there. Can someone post it back?

Thanks!

0 Kudos
Message 5 of 7
(3,261 Views)
Hello!  There is an example sub-VI that passes a graph to a main VI posted in this forum

Please post back if that is not what you are looking for.

Lorielle P.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 7
(3,235 Views)
I got it working now but thanks anyway. Reference is better than globals but trickier.
0 Kudos
Message 7 of 7
(3,227 Views)