01-12-2022 02:47 AM
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???
picture1.the main program(call SPHERE SubVI).Run failed.
picture2.enter the SubVI panel(Data'1 0 0'' transmission succeeded but the SubVI cannot display successfully)
picture3.the SubVI panel(Run the VI separately again. Then the SubVI run successfully,but main program still cannot display!!!)
picture4.the SubVI program
Solved! Go to Solution.
01-12-2022 03:15 AM
You are closing the reference of sphere in your subvi.
01-12-2022 03:41 AM
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!
01-12-2022 03:44 AM
keep create sphere and close reference outside the subvi
01-13-2022 07:04 AM
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!