LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi waveform to main

Solved!
Go to solution

Following this topic: http://forums.ni.com/t5/LabVIEW/show-graph-that-is-created-in-a-subvi/td-p/672249

 

I get an error when connecting my vi server ref to the subvi.  they are diff data types.

0 Kudos
Message 1 of 8
(2,749 Views)

In the subVI, right click the reference control (WFD Refnum 2) and deselect 'Include Data type'.

By default when you create a control from a references it creates a Strict (data type is included) type reference control.

 

Otherwise you can also try to create the reference control (for the subVI) from the main VI's graph (Time Signal):

1. First create reference of Time Signal graph.

2. Then right click the reference and create Control.

3. Now use this control in the subVI.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 8
(2,744 Views)

oh, and the subvi might be useful

0 Kudos
Message 3 of 8
(2,743 Views)

include data type was already unchecked.

0 Kudos
Message 4 of 8
(2,739 Views)
Solution
Accepted by papacode

Then you can try other option.


@moderator1983 wrote:

Otherwise you can also try to create the reference control (for the subVI) from the main VI's graph (Time Signal):

1. First create reference of Time Signal graph.

2. Then right click the reference and create Control.

3. Now use this control in the subVI.


If this also doesn't help, share the code (Main and Sub VIs)...!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 5 of 8
(2,736 Views)

bam! option 2 did the trick.  thank you very much.  i guess the name of the control ref was wrong...

0 Kudos
Message 6 of 8
(2,730 Views)

@papacode wrote:

i guess the name of the control ref was wrong...


no..!! I dont think so..!! I strongly believe that the reference control (of subVI) must be of strict type, therefore it was expecting strictly the reference of same data type as an input (from main VI). now when we place a graph/chart on front panel, it has some default data type (DBL, single plot etc) which get changed if you wire a dynamic data type or waveform or if you choose to plot multiple signals...!! So one should create the reference in the last, after doing all modification to the main graph (on the main VI)...!!


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 7 of 8
(2,724 Views)

Thanks.

I don't know why the types would be different, but that makes sense.

0 Kudos
Message 8 of 8
(2,722 Views)