I would like to give some suggestion about VRML and labview 3D picture control, for robot application.
1. Make your VRML model as per part, not the whole assembled unit.
2. Please do pay attention about the Origin (0,0,0) in each of the part and the XYZ axis while designing the part, because it will greatly affect your assembled model in labview.
3. If you are using Labview 8 above, study the "Sun and earth" example (Can't really remember the exact name).
4. If that is still to complicated, study the other example about rotations (the one with two red boxes).
Too bad, i don't have labview 8 now. And don't try to use 3d picture control from labview 7.1, the one that is not supported by NI, it is very limited.
Hope these help.
Hi Dear Francisco
I attach a new file for you with Labview 8.2
Please check it and tell me if you have a another problem .
I will try to solve your problem if i can.
Thanks for your contributions.
I still have problems:
- I send you "eslabon 8.2.vi" that is in LabView 8.2 version. One question: the "Load VRML file.vi" you use is not the same than in LabView 8.6. Is that the one you can download at
http://zone.ni.com/devzone/cda/tut/p/id/4411, that is included in "LabVIEW 3D Picture Control Evaluation Software"?
- The example you sent me also doesn't works. At first, when I load it, there are some "warnings":
"- Constant changed to hidden control (4 warnings)
- Unbundle function inserted on output of File Dialog function (1 warning)"
- I select "Ignore" and the VI appears. Then I run the program, I select either "eslabon1.wrl" or "eslabon2.wrl" to load, and then it makes an error (pointing at the "Load VRML file.vi" in the Block Diagram) that says:
"Error connecting to GPIB driver or device. This is usually due to a required driver not being installed on the system."
- I don't know, but I suppose that a possible uninstalled driver for GPIB don't have nothing to do with loading an 3d model on the 3D Picture Control.
- I tried to make a little modification on the example "solarsystem.vi" that you mean:
- I changed the sun for a 3D model I created on Solid Edge, with similar dimensions. The result is that nothing appears instead of the sun, even if a I try to place (with the camera controller) the Earth and the Moon behind this new center object: there's nothing in the middle. And also the Moon and the Earth appear without texture. I attach you the files.
Thank you all for your interest and dedication.
Hi Dear Francisco
I use "Labview 3D Picture Control Evaluation Software" in http://zone.ni.com/devzone/cda/tut/p/id/4411.
Please install it for your Labview and don't attention to warnings.
Please dont select "ignore" and u permission Labview to do her work.
Please use "Labview 3D Picture Control Evaluation Software" not "VRML Load.vi"
If i don't forgot, in this software you must use "Write VRML.vi" and "Read VRML.vi".
And please don't use Loop in your example.
I hope this help you
Hi, Naser, again.
I have tried the "Read VRML.vi" block (belonging to "Labview 3D Picture Control Evaluation Software" ) either in the program you send me and in another simple one I created, but the result is the same. And also without using While Loop. If I use this block "Read VRML.vi", always appear the following:
"Error connecting to GPIB driver or device. This is usually due to a required driver not being installed on the system".
I have also tried, instead of VRML files, with STL files and ASE files, and the result is the same: nothing appears in the "3D Picture Control" window.
Hi Dear Francisco
When I install my Labview I dont install Drivers.
I dont have a GPBI hardware.
Please reinstall your Labview and if you have Labview 8.2 Please install it.
But dont install Driver when you install your Labview.
Please tell me when you do it.
Porras: Currently i don't have proper tools to check all of your files. I have only labview 8.5 (evaluation) and a vrml viewer.\
So this is just my guess:
- Either the size of the model is too big or too small
- the position is way too far from the origin, remake the model with 0,0,0 as the center of your model.
- It has something to do with the color ambient or color diffuse of the model
Try to change color parameter inside your 3d model software. Or just make it plain
hope it helps
Porras: Try this example, i put your vrml file and another vrml example.
Try to load both of them, and compare your vrml and the example.
Please check the LabVIEW 8.6 Known Issues by Date file.
If your issue is not being able to load the VRML file, this was reported to R&D (138552) for further investigation.
Please let me know if you have any further questions.