Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
cryvisil/profile_visualisation.bob
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
177 lines (166 sloc)
5.21 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<display version="2.0.0"> | |
<name>profile visualisation</name> | |
<width>1100</width> | |
<scripts> | |
<script file="EmbeddedPy"> | |
<text><![CDATA[# Embedded python script | |
from org.csstudio.display.builder.runtime.script import PVUtil, ScriptUtil | |
print 'Hello' | |
# widget.setPropertyValue('text', PVUtil.getString(pvs[0])) | |
profile_nr = PVUtil.createPV("loc://profile_nr",10) | |
profile_nr = PVUtil.getLong(profile_nr) | |
]]></text> | |
<pv_name>loc://profile_selection</pv_name> | |
</script> | |
</scripts> | |
<widget type="group" version="2.0.0"> | |
<name>Group</name> | |
<x>30</x> | |
<y>130</y> | |
<width>993</width> | |
<height>320</height> | |
<style>2</style> | |
<widget type="xyplot" version="2.0.0"> | |
<name>X/Y Plot_5</name> | |
<x>29</x> | |
<y>9</y> | |
<width>950</width> | |
<height>290</height> | |
<show_toolbar>true</show_toolbar> | |
<x_axis> | |
<title></title> | |
<autoscale>true</autoscale> | |
<log_scale>false</log_scale> | |
<minimum>0.0</minimum> | |
<maximum>100.0</maximum> | |
<show_grid>false</show_grid> | |
<title_font> | |
<font name="Default Bold" family="Liberation Sans" style="BOLD" size="14.0"> | |
</font> | |
</title_font> | |
<scale_font> | |
<font name="Default" family="Liberation Sans" style="REGULAR" size="14.0"> | |
</font> | |
</scale_font> | |
<visible>true</visible> | |
</x_axis> | |
<y_axes> | |
<y_axis> | |
<title></title> | |
<autoscale>true</autoscale> | |
<log_scale>false</log_scale> | |
<minimum>0.0</minimum> | |
<maximum>100.0</maximum> | |
<show_grid>false</show_grid> | |
<title_font> | |
<font name="Default Bold" family="Liberation Sans" style="BOLD" size="14.0"> | |
</font> | |
</title_font> | |
<scale_font> | |
<font name="Default" family="Liberation Sans" style="REGULAR" size="14.0"> | |
</font> | |
</scale_font> | |
<visible>true</visible> | |
</y_axis> | |
</y_axes> | |
<traces> | |
<trace> | |
<name></name> | |
<x_pv>loc://array_xxVDoubleArray</x_pv> | |
<y_pv>loc://array_yyVDoubleArray</y_pv> | |
<err_pv></err_pv> | |
<axis>0</axis> | |
<trace_type>1</trace_type> | |
<color> | |
<color red="0" green="0" blue="255"> | |
</color> | |
</color> | |
<line_width>1</line_width> | |
<line_style>0</line_style> | |
<point_type>2</point_type> | |
<point_size>4</point_size> | |
<visible>true</visible> | |
</trace> | |
</traces> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_2</name> | |
<text>X - Axis</text> | |
<x>499</x> | |
<y>289</y> | |
<width>113</width> | |
<rules> | |
<rule name="text" prop_id="text" out_exp="false"> | |
<exp bool_exp="pv0 == 0"> | |
<value>Time End [s] </value> | |
</exp> | |
<exp bool_exp="pv0 == 1 || pv0 == 2 || pv0 == 3 || pv0 == 5 || pv0 == 6 || pv0 == 7 "> | |
<value>Temp End [K] </value> | |
</exp> | |
<exp bool_exp="pv0 == 4 || pv0 == 8"> | |
<value>Time [s] </value> | |
</exp> | |
<pv_name>CRYVISIL:TC09:EDIT:RAMP-TYPE</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="label" version="2.0.0"> | |
<name>Label_1</name> | |
<text>Y - Axis</text> | |
<x>9</x> | |
<y>119</y> | |
<width>20</width> | |
<height>80</height> | |
<horizontal_alignment>1</horizontal_alignment> | |
<vertical_alignment>1</vertical_alignment> | |
<rotation_step>1</rotation_step> | |
<wrap_words>false</wrap_words> | |
<rules> | |
<rule name="desc" prop_id="text" out_exp="false"> | |
<exp bool_exp="pv0 == 0"> | |
<value>P Offset [%] </value> | |
</exp> | |
<exp bool_exp="pv0 == 1 || pv0 == 2"> | |
<value>P max [%] </value> | |
</exp> | |
<exp bool_exp="pv0 == 3 || pv0 == 5 || pv0 == 6 || pv0 == 7"> | |
<value>Rate [K/s] </value> | |
</exp> | |
<exp bool_exp="pv0 == 4 || pv0 == 8"> | |
<value>T set [K] </value> | |
</exp> | |
<pv_name>CRYVISIL:TC09:EDIT:RAMP-TYPE</pv_name> | |
</rule> | |
</rules> | |
</widget> | |
<widget type="action_button" version="3.0.0"> | |
<name>Action Button_2</name> | |
<actions execute_as_one="true"> | |
<action type="execute"> | |
<script file="EmbeddedPy"> | |
<text><![CDATA[# Embedded python script | |
from org.csstudio.display.builder.runtime.script import PVUtil, ScriptUtil | |
print 'Hello' | |
# widget.setPropertyValue('text', PVUtil.getString(pvs[0])) | |
xarray = PVUtil.createPV("loc://array_xxVDoubleArray" ,5000) | |
yarray = PVUtil.createPV("loc://array_yyVDoubleArray" ,5000) | |
x_value = PVUtil.getDoubleArray(xarray) | |
y_value = PVUtil.getDoubleArray(yarray) | |
lenx = len(x_value) | |
leny = len(y_value) | |
x = [0] * lenx | |
y = [0] * leny | |
PVUtil.writePV("loc://array_xxVDoubleArray" ,x ,200) | |
PVUtil.writePV("loc://array_yyVDoubleArray" ,y ,200)]]></text> | |
</script> | |
<description>Execute Script</description> | |
</action> | |
</actions> | |
<text>Reset</text> | |
<x>891</x> | |
<height>47</height> | |
<tooltip>$(actions)</tooltip> | |
</widget> | |
</widget> | |
</display> |