EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Webopi issue with Text Update widget rule
From: "Petrella, Nicoletta" <[email protected]>
To: "'[email protected]'" <[email protected]>, "'[email protected]'" <[email protected]>
Date: Fri, 4 Aug 2017 08:53:44 +0000

Dear all,

 

I’m prototyping a simple CS-Studio Boy OPI and I would like the OPI be accessible via webopi, but I’m experiencing webopi strange behaviour.

 

I’m interested in seeing in the BOY and webopi screens the status Open/Close of a certain area and some other PV values.

 

I have a softioc to simulate some process variables to exercise the OPI.  To simulate the state of the area I use a calc record which takes values 0 and 1.

 

record(calc, "SIM_CID_AREA_status")

{

field(SCAN, "10 second")

field(CALC, "A<1?A+1:0")

field(INPA, "SIM_CID_AREA_status")

}

 

In the OPI I then have a Text Update widget with a rule on the text to be displayed to be Area Open or Area Close depending on the value of my simulated PV SIM_CID_AREA_status. All works fine in the BOY screen, but in the webopi the text is not always displayed. Randomly sometimes I correctly get displayed the text (Area Open or Area Close ) and sometimes I get displayed numbers (0,1).

 

Please could you help me to understand why the webopi does not always show the text I specify in the rule and to solve the issue as rules should be supported by webOPI?

I understand I could have a string record instead, but I’m trying to figure out why everything works OK in BOY and I have issues with webopi.

 

Also it seems I cannot see label widgets placed over a text update widgets in the webopi screen, but this is OK in the BOY screen. My current solution is to have a label widget placed on the top of  the text update widget as below

 

 

or a second text update widget without setting a PV over the main text update widget.

 

Please could you also explain me how to have a label always visible in the webopi screen, also if it is over a test update widget?

 

Many thanks.

Kind regards,

Nicoletta

 

 

Nicoletta Petrella

Instrumentation and Control Engineer / CCFE CODAS & IT Dept

K1/1/44a

 

United Kingdom Atomic Energy Authority

Culham Science Centre

Abingdon

Oxfordshire

OX14 3DB

 

Tel: 01235 464739

Mob: +44 (0) 7964 668742

 

 

 

 


Replies:
Re: Webopi issue with Text Update widget rule Kasemir, Kay

Navigate by Date:
Prev: Re: XYgraph pv_name Amien Crombie
Next: Re: help - writing a table column from OPI BOY to PV Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Job openings at ITER Ralph Lange
Next: Re: Webopi issue with Text Update widget rule Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024