Solution
Microsoft deprecated ActiveX controls, therefore it is not recommended to use ActiveX controls in LabVIEW. However, a workaround for this is using scatter graphs.
The use of scatter graphs here is recommended because scatter graphs are LabVIEW controls unlike the ActiveX graph.
To do what is required using a scatter graph, please follow the steps below:
- Scatter graphs do not use RGB colors, they use a color ramp per plot. This means there is no way to have more than one point per plot, and there will be as many plots on the graph as there are points. And for each point, the color ramp will consist of only one color which the RGB color that is defined by the coordinates of that point.
- Scatter graph property nodes will allow the change to the plot number and color ramp.
- Use the 3D Scatter Plot Helper VI.
- A for loop will run the code as many times as there are inputs on the three coordinate arrays.
Note:
In order to use this snippet, download this image, and then drag and drop it on your LabVIEW block diagram.By using the above VI and following the mentioned steps, you will be able to draw as many points as you need with their separate colors on a single graph using multiple plots.