Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: TypeId attribute setting from script

TypeId attribute setting from script 5 years 2 months ago #10146

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Hi All,
I can't find the correct syntax to set the AttributeType attribute of a DsTrendCurve object from a script.
I tried the following which all fail

set attr/noco/name=MEAS-TrendObj /attr=AttributeType[0] /value=pwrs:Type-$Float32
set attr/noco/name=MEAS-TrendObj /attr=AttributeType[0] /value="pwrs:Type-$Float32"

but attribute always remain unset like _OO.O.O.O:2147483648

As it looked like a pair of volume id and object id I tried to look in the global volume list to find out pwrs voluem id but pwrs and pwrb are not present there. Neither is the dbs able to open in case the volume id was written in it.

Can someone help me to find the correct id or syntax

Thanx in advance
Snarf
The administrator has disabled public write access.

TypeId attribute setting from script 5 years 2 months ago #10147

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
I found the object id, by opening the pwrs volume and entering a "show objid" command when $Float32 Type was selected.
REsult is : 0.0.0.1:3221291008

But I can't set the AttributeType to this value neither.
Do I need "" or something else as separator ?
The administrator has disabled public write access.

TypeId attribute setting from script 5 years 2 months ago #10153

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3178
  • Thank you received: 502
  • Karma: 133
Hi Snarf,

AttributeType is a TypeId that is converted to an Objid when displayed to be human readable, but the command interpreter for some reason lacks the ability to convert from Objid to TypeId. It is though possible to supply the TypeId in integer form which is 98306 for Float32 (and 98305 for Boolean and 98311 for Int32).

Normally you don't have to set the AttributeType though. This is set by the trend server at startup.

/Claes
The administrator has disabled public write access.

TypeId attribute setting from script 5 years 2 months ago #10158

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Thanks you for feedback.

It s good to know how to do it even if unecessary !

thanks a lot
Snarf
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.632 seconds