LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX 3D Graphs slowing down loop

Chris,
      No worries.

Nathan
0 Kudos
Message 11 of 14
(1,000 Views)
Nathan,
 
I am having no luck in freeing up time to build some code that is portable and demonstrates the application I am most concerned about, so I'll describe it instead.
 
Application 1:
I have to track the motion of a sensor in 3D space capturing a minimum of 100 S/s and plotting the (w,x,y,z) information to a 3D surface (w is a sensor measurement). The plot is cumulative - meaning that the plot is filled in as the sensor is moved. This is akin to doing a graphite rub on a surface to transfer the image to paper (I suddenly feel like I am dating myself). The minimum number of data points is 5,760,000. The surface has to be built in real-time which is fortunately quite slow in this case. I have to have graph cursors otherwise the 3D picture control might be an option. The hardware acquisition is not really loading the CPU at all.  
 
I have tried pre-allocating the array and replacing array elements as well as using a picture control and adding a point to an existing picture. It seems that it is simply the act of having to redraw all of the points every time an update occurs that is eating my cpu alive. To be fair, I haven't tried this application with 8.2 yet. I will be getting back into the code in the next few weeks.
 
Chris
Practical Physics, LLC
www.practicalphysicsllc.com
0 Kudos
Message 12 of 14
(970 Views)
Chris,
      Thanks for the description.  I will go over it and see if there is anything else that you can implement to speed things up.  Let me know how it performs in 8.2.  That sounds like an interesting application.

Cheers,

NathanT
0 Kudos
Message 13 of 14
(960 Views)
Chris,
       I think that decimating your data would speed things up.

Thanks,

NathanT
0 Kudos
Message 14 of 14
(904 Views)