07-07-2015 09:24 PM
I don't mean the actual function itself. I know you just right-click and scroll through the menus for that. But I want to find a VI that showcases how the Draw Multiple Lines.vi is used. As of yet I can't find one anywhere. I've read the Detailed Help that Labview provides when I look at the function under Context Help, and it mostly makes sense. The only thing that's not working is how to implement the array that provides the line points into the function. I tried connecting a 1D array to the function and it was no dice. I get the quentessential error:
You have connected two terminals of a different type. The source is 1D array of double. The sink is 1D array of cluster of 2 elements.
So I know there is a special array called a Cluster Array, I think. Does it want me to attach that instead?
07-07-2015 09:25 PM
And does this function even do what I think it does? I just want to programmatically draw a line on the Front Panel from point A to point B. That's all.
07-07-2015 10:33 PM
07-07-2015 11:45 PM
@ShogunOrta wrote:
I just want to programmatically draw a line on the Front Panel from point A to point B. That's all.
You can only do it with the restriction that it has to be bounded to a picture indicator. To draw anywhere on the front panel, we would need this idea implemented. 🙂
A plain 1D array does not define points because each point has an x and a y. Hierarchical data structure are actually quite easy once you play a little bit with them.