LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I display the color of my solidworks object in labview because right now it is completely grey?

I am having trouble displaying the color of a SolidWorks assembly I have created and uploading using stl format.  I am able to see my solidworks object but it comes out in pure grey.  I attached my vi and files I that are used in the vi.  

Download All
0 Kudos
Message 1 of 4
(2,856 Views)

There is lots of extra code and missing subVIs. It would help of you could strip the exaple down to a single code fragment dealing with the 3D picture. I don't really understand why all this code is in a tight loop, because the data never changes. Only the transformations at the end depend on external inputs and should be in a polling loop with a reasonable wait. All the code before needs to execute only once. Right?

 

You also did not attach any of the files used (*.stl, *.jpg, etc.)

 

0 Kudos
Message 2 of 4
(2,841 Views)

No the only file that is missing is the stl file which  I could not upload in this forum but you can ignore all the disable code it is not required.  The only thing I am having trouble in the code where I bring in the stl file, where I cannot see the color of my solidworks object, but I get the object there(in pure grey).  What is happening in the code is that I am accessing data from an IMU with the stop and continuous functions, then with the Euler angles I get from the IMU I use them to move my solidworks object.  I did attach the JPG file.   

0 Kudos
Message 3 of 4
(2,830 Views)

I don't believe the color data is actually stored within the STL file, and it is stored is another file which Solidworks uses.  You can change the color of the whole object in LabVIEW there is an example of this linked below.  

 

https://decibel.ni.com/content/docs/DOC-15744

 

Matt M.

 

Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(2,799 Views)