Good, looking at examples on the Internet about the Clusters, I found the following Block Diagram, but I do not understand the Cluster's function well. My question is if they can help me understand the Block diagram (indicating each part) and why the result of the front panel is obtained.
Thank you !!!
The constant 20 is the x0 point on the graph. It's where the signal starts.
The constant 0.5 is the deltaX. So for every Y value in your cosine array, it is plotted at 0.5 increments along the x axis.
You would learn a lot if you take the free tutorials and simply read the help file for a waveform graph.
You should also be aware that the input to "cosine" is in radians and calculating it for consecutive integers will give you an alias frequency. You should probably use a x ramp that corresponds to your dx (after picking a reasonable dx).
And back to the cluster question. Yes a cluster of two numerics and a 1D or 2D numeric array (in exactly that order) is a special data type that is understood by a graph as x0, dx, data. This is a very old legacy structure, predating the waveform data type. I still use it, but be aware that that you might get unexpected results if you also define x0,dx for the x-axis directly. They interfere.
Here is a typical way to use an x-ramp and get x0,dx from it while also calculating the cosine function. Now the graph x-axis is correct even if you change the ramp (start, end, number of points etc.). No FOR loop needed.