如何在程序中设定graph的颜色?
用不同的颜色区分不同通道的数据。
.117
Please set the properties of (1) Active plot and (2) plot color
Right click the terminal of your graph, select Create>property node and set th
e two properties.
.34
I do following your intructions.But no development.
I think I should express my question more clearly.
The problem is in the process of realtime sampling. 'Chart',not 'ghraph'
was used. When I want to show two or more sampling channels results in one
chart, the plot can only be shown in one same color, which makes me impossible
to take those channels results appart.
My process is bluiding an two elements array at first,then input the two channel
results into the array and then output to the chart.
However,whatever I do anything to take the colors apart, no use at all.
BTW, this problemis quite easy to deal in the graph, which can not be used in
realtime sampling.
Whatever, thank you very much.
.117
Even though you study chart, you still can do the same thing to change the col
ors of the plots on-line.
The only difference is how to build the multi-channel signals in Chart than gr
aph. There are several ways.The first method is to bundle the data together in
to a cluster of scalar numerics, where each numeric represents a single point
for each of the plots. Please see the attachment. I used this method in the VI
.
If you want to pass multiple points for plots in a single update, you can
wire an array of clusters of numerics to the chart. Each numeric represents
a single point for each of the plots.
If the number of plots you want to display cannot be determined until
runtime, or you want to pass multiple points for plots in a single update,
you can wire a two-dimensional array of data to the chart. As with the
waveform graph, rows are handled normally as new data for each plot.
You can use the Transpose Array item of the waveform chart pop-up
menu to handle columns as new data for each plot.
Hope this is useful.
.60