LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run the SubVI alone successfully, but run the main program(call the SubVI) failed.

Solved!
Go to solution

Using LabVIEW 2018 to make a spherical coordinate and display a point.

Running the program alone succeeded, but when i  package it into SubVI, the main program cannot display successfully.

Data transmission succeeded from the main program to SubVI.

So my question is why the subVI run successfully alon and data tramassion normally,but the main program cannot run normally???

DK_Zero_2-1641976156687.png

picture1.the main program(call SPHERE SubVI).Run failed.

DK_Zero_3-1641976287488.png

picture2.enter the SubVI panel(Data'1 0 0'' transmission succeeded but the SubVI cannot display successfully)

DK_Zero_4-1641976396231.png

picture3.the SubVI panel(Run the VI separately again. Then the SubVI run successfully,but main program still cannot display!!!)

DK_Zero_6-1641976541502.png

picture4.the SubVI program

 

0 Kudos
Message 1 of 5
(1,539 Views)
Solution
Accepted by topic author DK_Zero

You are closing the reference of sphere in your subvi.


CLD Using LabVIEW since 2013
0 Kudos
Message 2 of 5
(1,528 Views)

THANK YOU very much! I delete the Closing References VI in SubVI,then the main program run normally.Now,I know that the Closing References VI may invalidate references to other objects in the vi. But I want to ask you a question further:what is the best way to solve this problem?Delete the Closing References VI directly?

thank you again!

0 Kudos
Message 3 of 5
(1,519 Views)
Solution
Accepted by topic author DK_Zero

keep create sphere and close reference outside the subvi


CLD Using LabVIEW since 2013
0 Kudos
Message 4 of 5
(1,516 Views)

As a newcomer, I can only reply twice a day, so I'm here to reply to you today。your help is useful and timely,I have solved the problem perfectly.thank you!

0 Kudos
Message 5 of 5
(1,452 Views)