03-15-2018 11:40 AM
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 !!!
03-15-2018 11:55 AM
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.
03-15-2018 12:36 PM
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).
03-15-2018 12:43 PM
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.
03-15-2018 01:18 PM
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.