04-08-2010
08:59 AM
- last edited on
10-07-2026
09:48 AM
by
Content Cleaner
I am trying to use a 3D picture control to plot a simple geometric object (a cube) and then plot measurements that occurred within that object. So basically a 4D plot. I read the training session located at http://digital.ni.com/src.nsf/websearch/624DF39F2EBF492E8625738A006F0D42?OpenDocument&node=203014_us which showed me how to create the cube. I also found this example of using sensor mapping https://forums.ni.com/t5/Example-Code/3D-Sensor-Mapping-Example/ta-p/3502246. This is pretty much what I want to do but I don't have a model file. Is there a way to add sensor values to a 3D picture control when you don't have a .wrl or .stl file? Anybody have any examples? Thanks.
Solved! Go to Solution.
04-09-2010
03:18 PM
- last edited on
10-07-2026
09:49 AM
by
Content Cleaner
Hello,
You may want to review the 4D Plot example linked below:
4D Plot, a 3 degree of freedom accelerometer data with respect to time
https://forums.ni.com/t5/Example-Code/4D-Plot-a-3-degree-of-freedom-accelerometer-data-with-respect-...
Do this seem like the task you are trying to achieve? This uses additional features of the 3D Picture control palette, as opposed to the Sensor Mapping VI. In order to correctly place and render sensor data, we would need to generate a basic model file load with the Sensor Mapping VI.
Please post back any additional questions you may have.
Cheers!
Patrick Corcoran
Application Engineering Specialist | Control
National Instruments
04-12-2010 08:26 AM
09-03-2010 10:27 AM
Hello
I'm trying to do something similar to this you've written about, but I dont think that the 4D Picture can be my solution. I want to do sensor mapping over an articulated assembly, and to relate the assembly's joints to variables in the VI so can be manipulated from signals aquired trough DAQ. You've said that Sensor Mapping needs some kind of file to work properly, but I'm wondering, can this file be created from the 3D picture control, and updated to the Sensor Mapping in each iteration of the algorythm? or can each part of the assembly be precessed with Sensor Mapping VI, and the imported to an assembly in a 3D picture control?
Appreciate your help, regards
Jaime
09-07-2010 03:55 PM
Hi Jaime,
I think you should be able to use the above example as a starting point and do some adjustments for your particular application. To me it sounds as though you have X, Y and Z coordinate values that will defined the shape of your assembly. And then you will have a 4th variable which will be your voltage measurements at each of these coordinates.
The X, Y, and Z coordinates will change depending on the manipulation of your joints. So instead of those 3 variables being static, they are dynamic. The use of the 4D plot would be the same. Although this example is reading data from a file, this can very easily be altered to read from a DAQ device, and the plotting can be placed in a while loop so that it continuously updates to show the position of the articulated assembly.
I hope this helps!
12-07-2010 12:42 AM