02-11-2011 10:17 AM
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.
Solved! Go to Solution.
02-12-2011 12:03 AM
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.
02-13-2011 05:49 PM
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....
02-14-2011 09:14 AM
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!
02-14-2011 09:21 AM
@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
07-26-2011 10:31 PM
what would I have to change to an stl file to not get the same error he/she was getting
08-01-2011 05:08 PM
Hey
Have you tried calling the object by an index number (get object) instead of name (find object)?
Kyle K
National Instruments
Applications Engineer