Re: [foxboro] scripting; How to differentiate between FV and DM?

  • From: "Johnson, Alex P \(IPS\)" <alex.johnson@xxxxxxxxxxxxxxxx>
  • To: <foxboro@xxxxxxxxxxxxx>
  • Date: Mon, 13 Aug 2007 22:45:12 -0400

I liked Sean's earlier suggestion in the 'Env variable from C-shell
scripts':

"To figure out if a particular DM is a Display Manager or Foxview, you
could check the display manager environment variable ENV.  Perhaps you
were thinking that when you asked your question.

pref -DMNAME ENV

If it returns /usr/fox/wp/sys/Change_Env/{something}  then it is a
display manager.
Or if it returns somethings that ends in .env ( grep '\.env$' ) then it
is likely to be a foxview.

This does make the assumption that all your display manager environments
are in the default place.  Or that only your foxview environments end in
a .env"


Regards,

Alex Johnson
Invensys Systems, Inc.
10900 Equity Drive
Houston, TX 77041
713.329.8472 (voice)
713.329.1700 (fax)
713.329.1600 (switchboard)
alex.johnson@xxxxxxxxxxxxxxxx


-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of Redmond, Sean S
Sent: Monday, August 13, 2007 5:28 PM
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] scripting; How to differentiate between FV and
DM?

Hi Andreas,

You could check for a variable that exists in Foxview but not in Display
Manager, like FVWHAT.  In a simple shell script driven from a button on
a graphic you can check to see if the variable is not null. If it is not
null then it will be foxview. If it is null then it will be a display
manager.  I can not remember when the FVWHAT came in to existence, but
it is there in Foxview 9.02

Sean

#!/bin/sh
# $1 is the Display Name i.e. $DMNAME
type=3D3D`/usr/local/pref -$1 FVWHAT`
if [ "$type" ]
then
  echo "FV"
else
  echo "DM"
fi

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx]
On Behalf Of Weiss, Andreas
Sent: Monday, 13 August 2007 7:52 PM
To: foxboro@xxxxxxxxxxxxx
Subject: [foxboro] scripting; How to differentiate between FV and DM?

Hi,

how is it possible to check which HMI (FV or DM) an Operator has been
used to start a script by clicking on a button?

All what the script knows is:
- DMNAME
- HOST

The output should be: "FV" | "DM"

An AW could provide both applications at the same time.

Regards,
Andreas

=3D20
=3D20
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
=3D20
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Djoin
to unsubscribe:
mailto:foxboro-request@xxxxxxxxxxxxx?subject=3D3Dleave
=3D20


=3D0A=3D0ANOTICE - This message and any attached files may contain
informatio=3D
n that is confidential and intended only for use by the intended
recipien=3D
t. If you are not the intended recipient or the person responsible for
de=3D
livering the message to the intended recipient, be advised that you have
=3D
received this message in error and that any dissemination, copying or
use=3D
 of this message or attachment is strictly forbidden, as is the
disclosur=3D
e of the information therein. If you have received this message in error
=3D
please notify the sender immediately and delete the message.


_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html

foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Djoin
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=3Dleave




Confidentiality Notice:
The information contained in this electronic message and any attachment(s) =
to this message are intended for the exclusive use of the recipient(s) and =
may contain confidential, privileged or proprietary information. If you are=
 not the intended recipient, please notify the sender immediately, delete a=
ll copies of this message and any attachment(s). Any other use of the E-Mai=
l by you is prohibited.


 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             //www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: