MarkerStyle Property
General info
Label |
Marker Style |
Description |
Select the marker style. |
Data type |
UInt16 |
Default value |
12 (syslib.model.codes.MarkerStyles.MARKER_STYLE_NONE) |
Type |
CodingGroup |
Code |
12035 |
Symbolic name |
MODEL_PROP_MARKERSTYLE |
Lua access code |
syslib.model.properties.MarkerStyle |
Available since |
1.62 |
- Parent properties
Attributes
| Name | Tooltip |
|---|---|
| PROP_CONFIGURABLE | The property is configurable and can be changed with DataStudio and the various inmation APIs. |
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
| PROP_HAS_DEFAULT | The property has a default value as standard. |
Codings
Coding group: MarkerStyles
Examples
Read from or write to the MarkerStyle property.
-- Read from the MarkerStyle
syslib.getvalue("<OBJECT FULL PATH>.PenStyle.MarkerStyle")
-- Write to the MarkerStyle
syslib.setvalue("<OBJECT FULL PATH>.PenStyle.MarkerStyle",
syslib.model.codes.MarkerStyles.MARKER_STYLE_INVALID)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the MarkerStyle
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.PenStyle.MarkerStyle"));
// Write to the MarkerStyle
Result result = sli.WriteValue(sc, new WriteItem(MarkerStyles.MARKER_STYLE_INVALID, "<OBJECT FULL PATH>.PenStyle.MarkerStyle"));
A switch-like function of the codings.
function get_coding_name(code)
local _ms = syslib.model.codes.MarkerStyles
if _ms.MARKER_STYLE_INVALID==code then return 'MARKER_STYLE_INVALID'
elseif _ms.MARKER_STYLE_VALUE==code then return 'MARKER_STYLE_VALUE'
elseif _ms.MARKER_STYLE_CIRCLE==code then return 'MARKER_STYLE_CIRCLE'
elseif _ms.MARKER_STYLE_SQUARE==code then return 'MARKER_STYLE_SQUARE'
elseif _ms.MARKER_STYLE_TRIANGLE==code then return 'MARKER_STYLE_TRIANGLE'
elseif _ms.MARKER_STYLE_PYRAMIDE==code then return 'MARKER_STYLE_PYRAMIDE'
elseif _ms.MARKER_STYLE_DIAMAND==code then return 'MARKER_STYLE_DIAMAND'
elseif _ms.MARKER_STYLE_PENTAGON==code then return 'MARKER_STYLE_PENTAGON'
elseif _ms.MARKER_STYLE_HEXAGON==code then return 'MARKER_STYLE_HEXAGON'
elseif _ms.MARKER_STYLE_TETRAGRAM==code then return 'MARKER_STYLE_TETRAGRAM'
elseif _ms.MARKER_STYLE_PENTAGRAM==code then return 'MARKER_STYLE_PENTAGRAM'
elseif _ms.MARKER_STYLE_HEXAGRAM==code then return 'MARKER_STYLE_HEXAGRAM'
elseif _ms.MARKER_STYLE_NONE==code then return 'MARKER_STYLE_NONE'
end
end
return get_coding_name(syslib.model.codes.MarkerStyles.MARKER_STYLE_INVALID)