LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find Object.vi not functioning in 3D Picture control based Solidworks Import

Solved!
Go to solution

Hello

 

I am trying to import Solidworks Model, I get image of whole assembly in 3D Picture but when I try to find particular object using Find object.vi it gives me 

 

Error 1 occurred at Invoke Node in NI_3D Picture Control.lvlib:Find Object.vi->VRMLviewer.vi


Possible reason(s):
LabVIEW:  An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488:  Command requires GPIB Controller to be Controller-In-Charge.

 

Is there any specific way to make Solidworks Part or wjat could be the possible reason.

 

Thanks in Advance.

 

 

-------------------------------------------------------------------------------------------------------------------------------
Thanks & Regards,
Kunal Raithatha.
CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D 🙂

Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
located in the upper right corner of the front panel or block diagram" ...If you know any
more reply back.
-------------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 7
(3,617 Views)
Solution
Accepted by VirtualWorld

Although you probably have names on your model, your VRML files (.wrl) does not. If you try to open the file with a text editor, you can fix that by adding the following statement before the transform:

 

DEF Base Transform {

 

This will allow you to access the location by the Find VI. The error is because LabVIEW could not find the <Base> name in your VRML.

Barp - Control, Simulation, RTT and HIL - National Instruments
Message 2 of 7
(3,600 Views)

Barp 

 

Feels like god sent u at right moment......m so damn happy to get what I was expecting.....thanks a ton

 

Also....so was that any mistake from my side making a solidworks model or anything in Labview ????

 

Do I have to do this all the time, I am doing lot of similar project....do you suggest any comprehensive resource for such applications...

 

Thanks again....

-------------------------------------------------------------------------------------------------------------------------------
Thanks & Regards,
Kunal Raithatha.
CTD - CLAD (I wish I can take off that A, and maybe use it later to replace D 🙂

Easy Tip :- "To copy an image to a VI icon, drag the image file and place it on the icon
located in the upper right corner of the front panel or block diagram" ...If you know any
more reply back.
-------------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 7
(3,579 Views)

I am glad I could help. I love the 3D picture control and what we can do with LabVIEW right now. However, this definition of names is something that I've learned from the developer of the 3D feature and, unfortunately, I do not know any other way to add names in SolidWorks.Now, maybe there is a way to do that... If anyone find, please let us know! 

 

 

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 4 of 7
(3,569 Views)

@Barp wrote:

I am glad I could help. I love the 3D picture control and what we can do with LabVIEW right now. However, this definition of names is something that I've learned from the developer of the 3D feature and, unfortunately, I do not know any other way to add names in SolidWorks.Now, maybe there is a way to do that... If anyone find, please let us know! 

 

 


I don't know the Solidworks answer... In my case I wrote code that checks the wrl file and if no name defined, then add my own PRIOR to opening the file.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 7
(3,566 Views)

what would I have to change to an stl file to not get the same error he/she was getting

0 Kudos
Message 6 of 7
(3,415 Views)

Hey 

 

Have you tried calling the object by an index number (get object) instead of name (find object)?

 

Kyle K

National Instruments

Applications Engineer

Product Manager for Product Data
National Instruments
0 Kudos
Message 7 of 7
(3,392 Views)