|
4 | 4 | N_PV_10Hz=10 |
5 | 5 | N_PV_5Hz=50 |
6 | 6 | N_PV_1Hz=250 |
7 | | - |
| 7 | +SHOW_PLOT=true |
8 | 8 |
|
9 | 9 | Help() |
10 | 10 | { |
@@ -259,130 +259,134 @@ EOF |
259 | 259 |
|
260 | 260 | done >>$FILENAME |
261 | 261 |
|
262 | | - YPOS=450 |
| 262 | + YPOS=450 |
263 | 263 |
|
264 | | - echo ' |
265 | | - <widget typeId="org.csstudio.opibuilder.widgets.xyGraph" version="1.0.0"> |
266 | | - <actions hook="false" hook_all="false" /> |
267 | | - <alarm_pulsing>false</alarm_pulsing> |
268 | | - <axis_0_auto_scale>true</axis_0_auto_scale> |
269 | | - <axis_0_auto_scale_threshold>0.0</axis_0_auto_scale_threshold> |
270 | | - <axis_0_axis_color> |
271 | | - <color red="0" green="0" blue="0" /> |
272 | | - </axis_0_axis_color> |
273 | | - <axis_0_axis_title>Primary X Axis (0)</axis_0_axis_title> |
274 | | - <axis_0_dash_grid_line>true</axis_0_dash_grid_line> |
275 | | - <axis_0_grid_color> |
276 | | - <color red="200" green="200" blue="200" /> |
277 | | - </axis_0_grid_color> |
278 | | - <axis_0_log_scale>false</axis_0_log_scale> |
279 | | - <axis_0_maximum>3000.0</axis_0_maximum> |
280 | | - <axis_0_minimum>0.0</axis_0_minimum> |
281 | | - <axis_0_scale_font> |
282 | | - <opifont.name fontName="Cantarell" height="11" style="0" pixels="false">Default</opifont.name> |
283 | | - </axis_0_scale_font> |
284 | | - <axis_0_scale_format></axis_0_scale_format> |
285 | | - <axis_0_show_grid>true</axis_0_show_grid> |
286 | | - <axis_0_time_format>0</axis_0_time_format> |
287 | | - <axis_0_title_font> |
288 | | - <opifont.name fontName="Cantarell" height="11" style="1" pixels="false">Default Bold</opifont.name> |
289 | | - </axis_0_title_font> |
290 | | - <axis_0_visible>true</axis_0_visible> |
291 | | - <axis_1_auto_scale>true</axis_1_auto_scale> |
292 | | - <axis_1_auto_scale_threshold>0.0</axis_1_auto_scale_threshold> |
293 | | - <axis_1_axis_color> |
294 | | - <color red="0" green="0" blue="0" /> |
295 | | - </axis_1_axis_color> |
296 | | - <axis_1_axis_title>Primary Y Axis (1)</axis_1_axis_title> |
297 | | - <axis_1_dash_grid_line>true</axis_1_dash_grid_line> |
298 | | - <axis_1_grid_color> |
299 | | - <color red="200" green="200" blue="200" /> |
300 | | - </axis_1_grid_color> |
301 | | - <axis_1_log_scale>false</axis_1_log_scale> |
302 | | - <axis_1_maximum>100.0</axis_1_maximum> |
303 | | - <axis_1_minimum>0.0</axis_1_minimum> |
304 | | - <axis_1_scale_font> |
305 | | - <opifont.name fontName="Cantarell" height="11" style="0" pixels="false">Default</opifont.name> |
306 | | - </axis_1_scale_font> |
307 | | - <axis_1_scale_format></axis_1_scale_format> |
308 | | - <axis_1_show_grid>true</axis_1_show_grid> |
309 | | - <axis_1_time_format>0</axis_1_time_format> |
310 | | - <axis_1_title_font> |
311 | | - <opifont.name fontName="Cantarell" height="11" style="1" pixels="false">Default Bold</opifont.name> |
312 | | - </axis_1_title_font> |
313 | | - <axis_1_visible>true</axis_1_visible> |
314 | | - <axis_count>2</axis_count> |
315 | | - <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive> |
316 | | - <background_color> |
317 | | - <color red="240" green="240" blue="240" /> |
318 | | - </background_color> |
319 | | - <border_alarm_sensitive>true</border_alarm_sensitive> |
320 | | - <border_color> |
321 | | - <color red="0" green="128" blue="255" /> |
322 | | - </border_color> |
323 | | - <border_style>0</border_style> |
324 | | - <border_width>1</border_width> |
325 | | - <enabled>true</enabled> |
326 | | - <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive> |
327 | | - <foreground_color> |
328 | | - <color red="0" green="0" blue="255" /> |
329 | | - </foreground_color> |
330 | | - <height>300</height> |
331 | | - <name>XY Graph</name> |
332 | | - <plot_area_background_color> |
333 | | - <color red="255" green="255" blue="255" /> |
334 | | - </plot_area_background_color> |
335 | | - <pv_name>TEST:ARR'$repeat'</pv_name> |
336 | | - <pv_value /> |
337 | | - <rules /> |
338 | | - <scale_options> |
339 | | - <width_scalable>true</width_scalable> |
340 | | - <height_scalable>true</height_scalable> |
341 | | - <keep_wh_ratio>false</keep_wh_ratio> |
342 | | - </scale_options> |
343 | | - <scripts /> |
344 | | - <show_legend>true</show_legend> |
345 | | - <show_plot_area_border>false</show_plot_area_border> |
346 | | - <show_toolbar>true</show_toolbar> |
347 | | - <title></title> |
348 | | - <title_font> |
349 | | - <opifont.name fontName="Cantarell" height="11" style="1" pixels="false">Default Bold</opifont.name> |
350 | | - </title_font> |
351 | | - <tooltip>$(trace_0_y_pv) |
352 | | -$(trace_0_y_pv_value)</tooltip> |
353 | | - <trace_0_anti_alias>true</trace_0_anti_alias> |
354 | | - <trace_0_buffer_size>2000</trace_0_buffer_size> |
355 | | - <trace_0_concatenate_data>true</trace_0_concatenate_data> |
356 | | - <trace_0_line_width>1</trace_0_line_width> |
357 | | - <trace_0_name>$(trace_0_y_pv)</trace_0_name> |
358 | | - <trace_0_plot_mode>0</trace_0_plot_mode> |
359 | | - <trace_0_point_size>4</trace_0_point_size> |
360 | | - <trace_0_point_style>0</trace_0_point_style> |
361 | | - <trace_0_trace_color> |
362 | | - <color red="21" green="21" blue="196" /> |
363 | | - </trace_0_trace_color> |
364 | | - <trace_0_trace_type>0</trace_0_trace_type> |
365 | | - <trace_0_update_delay>100</trace_0_update_delay> |
366 | | - <trace_0_update_mode>0</trace_0_update_mode> |
367 | | - <trace_0_visible>true</trace_0_visible> |
368 | | - <trace_0_x_axis_index>0</trace_0_x_axis_index> |
369 | | - <trace_0_x_pv></trace_0_x_pv> |
370 | | - <trace_0_x_pv_value /> |
371 | | - <trace_0_y_axis_index>1</trace_0_y_axis_index> |
372 | | - <trace_0_y_pv>$(pv_name)</trace_0_y_pv> |
373 | | - <trace_0_y_pv_value /> |
374 | | - <trace_count>1</trace_count> |
375 | | - <transparent>false</transparent> |
376 | | - <trigger_pv></trigger_pv> |
377 | | - <trigger_pv_value /> |
378 | | - <visible>true</visible> |
379 | | - <widget_type>XY Graph</widget_type> |
380 | | - <width>711</width> |
381 | | - <wuid>22a9b511:18a4ba4f815:-7e8a</wuid> |
382 | | - <x>185</x> |
383 | | - <y>'$YPOS'</y> |
384 | | - </widget> |
385 | | -</display>' >>$FILENAME |
| 264 | +if $SHOW_PLOT; then |
| 265 | + echo ' |
| 266 | + <widget typeId="org.csstudio.opibuilder.widgets.xyGraph" version="1.0.0"> |
| 267 | + <actions hook="false" hook_all="false" /> |
| 268 | + <alarm_pulsing>false</alarm_pulsing> |
| 269 | + <axis_0_auto_scale>false</axis_0_auto_scale> |
| 270 | + <axis_0_auto_scale_threshold>0.0</axis_0_auto_scale_threshold> |
| 271 | + <axis_0_axis_color> |
| 272 | + <color red="0" green="0" blue="0" /> |
| 273 | + </axis_0_axis_color> |
| 274 | + <axis_0_axis_title>Primary X Axis (0)</axis_0_axis_title> |
| 275 | + <axis_0_dash_grid_line>true</axis_0_dash_grid_line> |
| 276 | + <axis_0_grid_color> |
| 277 | + <color red="200" green="200" blue="200" /> |
| 278 | + </axis_0_grid_color> |
| 279 | + <axis_0_log_scale>false</axis_0_log_scale> |
| 280 | + <axis_0_maximum>100.0</axis_0_maximum> |
| 281 | + <axis_0_minimum>0.0</axis_0_minimum> |
| 282 | + <axis_0_scale_font> |
| 283 | + <opifont.name fontName="Cantarell" height="11" style="0" pixels="false">Default</opifont.name> |
| 284 | + </axis_0_scale_font> |
| 285 | + <axis_0_scale_format></axis_0_scale_format> |
| 286 | + <axis_0_show_grid>true</axis_0_show_grid> |
| 287 | + <axis_0_time_format>0</axis_0_time_format> |
| 288 | + <axis_0_title_font> |
| 289 | + <opifont.name fontName="Cantarell" height="11" style="1" pixels="false">Default Bold</opifont.name> |
| 290 | + </axis_0_title_font> |
| 291 | + <axis_0_visible>true</axis_0_visible> |
| 292 | + <axis_1_auto_scale>true</axis_1_auto_scale> |
| 293 | + <axis_1_auto_scale_threshold>0.0</axis_1_auto_scale_threshold> |
| 294 | + <axis_1_axis_color> |
| 295 | + <color red="0" green="0" blue="0" /> |
| 296 | + </axis_1_axis_color> |
| 297 | + <axis_1_axis_title>Primary Y Axis (1)</axis_1_axis_title> |
| 298 | + <axis_1_dash_grid_line>true</axis_1_dash_grid_line> |
| 299 | + <axis_1_grid_color> |
| 300 | + <color red="200" green="200" blue="200" /> |
| 301 | + </axis_1_grid_color> |
| 302 | + <axis_1_log_scale>false</axis_1_log_scale> |
| 303 | + <axis_1_maximum>100.0</axis_1_maximum> |
| 304 | + <axis_1_minimum>0.0</axis_1_minimum> |
| 305 | + <axis_1_scale_font> |
| 306 | + <opifont.name fontName="Cantarell" height="11" style="0" pixels="false">Default</opifont.name> |
| 307 | + </axis_1_scale_font> |
| 308 | + <axis_1_scale_format></axis_1_scale_format> |
| 309 | + <axis_1_show_grid>true</axis_1_show_grid> |
| 310 | + <axis_1_time_format>0</axis_1_time_format> |
| 311 | + <axis_1_title_font> |
| 312 | + <opifont.name fontName="Cantarell" height="11" style="1" pixels="false">Default Bold</opifont.name> |
| 313 | + </axis_1_title_font> |
| 314 | + <axis_1_visible>true</axis_1_visible> |
| 315 | + <axis_count>2</axis_count> |
| 316 | + <backcolor_alarm_sensitive>false</backcolor_alarm_sensitive> |
| 317 | + <background_color> |
| 318 | + <color red="240" green="240" blue="240" /> |
| 319 | + </background_color> |
| 320 | + <border_alarm_sensitive>true</border_alarm_sensitive> |
| 321 | + <border_color> |
| 322 | + <color red="0" green="128" blue="255" /> |
| 323 | + </border_color> |
| 324 | + <border_style>0</border_style> |
| 325 | + <border_width>1</border_width> |
| 326 | + <enabled>true</enabled> |
| 327 | + <forecolor_alarm_sensitive>false</forecolor_alarm_sensitive> |
| 328 | + <foreground_color> |
| 329 | + <color red="0" green="0" blue="255" /> |
| 330 | + </foreground_color> |
| 331 | + <height>300</height> |
| 332 | + <name>XY Graph</name> |
| 333 | + <plot_area_background_color> |
| 334 | + <color red="255" green="255" blue="255" /> |
| 335 | + </plot_area_background_color> |
| 336 | + <pv_name>TEST:ARR'$repeat'</pv_name> |
| 337 | + <pv_value /> |
| 338 | + <rules /> |
| 339 | + <scale_options> |
| 340 | + <width_scalable>true</width_scalable> |
| 341 | + <height_scalable>true</height_scalable> |
| 342 | + <keep_wh_ratio>false</keep_wh_ratio> |
| 343 | + </scale_options> |
| 344 | + <scripts /> |
| 345 | + <show_legend>true</show_legend> |
| 346 | + <show_plot_area_border>false</show_plot_area_border> |
| 347 | + <show_toolbar>true</show_toolbar> |
| 348 | + <title></title> |
| 349 | + <title_font> |
| 350 | + <opifont.name fontName="Cantarell" height="11" style="1" pixels="false">Default Bold</opifont.name> |
| 351 | + </title_font> |
| 352 | + <tooltip>$(trace_0_y_pv) |
| 353 | + $(trace_0_y_pv_value)</tooltip> |
| 354 | + <trace_0_anti_alias>true</trace_0_anti_alias> |
| 355 | + <trace_0_buffer_size>2000</trace_0_buffer_size> |
| 356 | + <trace_0_concatenate_data>false</trace_0_concatenate_data> |
| 357 | + <trace_0_line_width>1</trace_0_line_width> |
| 358 | + <trace_0_name>$(trace_0_y_pv)</trace_0_name> |
| 359 | + <trace_0_plot_mode>0</trace_0_plot_mode> |
| 360 | + <trace_0_point_size>4</trace_0_point_size> |
| 361 | + <trace_0_point_style>0</trace_0_point_style> |
| 362 | + <trace_0_trace_color> |
| 363 | + <color red="21" green="21" blue="196" /> |
| 364 | + </trace_0_trace_color> |
| 365 | + <trace_0_trace_type>0</trace_0_trace_type> |
| 366 | + <trace_0_update_delay>100</trace_0_update_delay> |
| 367 | + <trace_0_update_mode>0</trace_0_update_mode> |
| 368 | + <trace_0_visible>true</trace_0_visible> |
| 369 | + <trace_0_x_axis_index>0</trace_0_x_axis_index> |
| 370 | + <trace_0_x_pv></trace_0_x_pv> |
| 371 | + <trace_0_x_pv_value /> |
| 372 | + <trace_0_y_axis_index>1</trace_0_y_axis_index> |
| 373 | + <trace_0_y_pv>$(pv_name)</trace_0_y_pv> |
| 374 | + <trace_0_y_pv_value /> |
| 375 | + <trace_count>1</trace_count> |
| 376 | + <transparent>false</transparent> |
| 377 | + <trigger_pv></trigger_pv> |
| 378 | + <trigger_pv_value /> |
| 379 | + <visible>true</visible> |
| 380 | + <widget_type>XY Graph</widget_type> |
| 381 | + <width>711</width> |
| 382 | + <wuid>22a9b511:18a4ba4f815:-7e8a</wuid> |
| 383 | + <x>185</x> |
| 384 | + <y>'$YPOS'</y> |
| 385 | + </widget> |
| 386 | + </display>' >>$FILENAME |
| 387 | +else |
| 388 | + echo '</display>' >>$FILENAME |
| 389 | +fi |
386 | 390 | done |
387 | 391 |
|
388 | 392 |
|
|
0 commit comments