![Advantech UbiQ User Manual Download Page 75](http://html1.mh-extra.com/html/advantech/ubiq/ubiq_user-manual_2856809075.webp)
69
UbiQ Scenario Manager User Manual
Chapter 5
Functions
Reference
5.2.16
LoadBMPByValue
Syntax
void LoadBMPByValue(int nDIBID, int nStartX, int nStartY, int nWidth, int
nHeight, string sFilename, int nValue)
Parameters
nDIBID: Specifies the display ID. Its value is from 0 to 32.
nStartX: Specifies the beginning x-coordinate of display area.
nStartY: Specifies the beginning y-coordinate of display area.
nWidth: Specifies the width of display area.
nHeight: Specifies the height of display area.
sFilename: Specifies the bitmap filename. This file needs to be a bitmap or jpeg
file format. The file will be search from bitmap folder of current appli-
cation path. If the sFilename is equal to "==LIGHT_BAR2", then the
screen will show the default pictures for lighting control.
nValue: Specifies the value associated with sFilename.
Description
This function will put the specified bitmap file by given value stretched on the
assigned display area.
Example
int nV;
nV=GetScenarioReg(0,0);
LoadBMPByValue(3,25,4,18,206,"==LIGHT_BAR2",nV);
...
nV=GetScenarioReg(4,0);
LoadBMPByValue(11,8,260,46,50,"level2\\icons\\curtain",nV);
See Also
LoadBMPByValue, GetScenarioReg, SetScenarioInit
5.2.17
OpenPort
Syntax
void OpenPort(int nPort, int nBaudRate)
Parameters
nPort: Specifies the COM port ID. The UbiQ-230 device RS485 port is set to
COM3:.
nBaudRate: Specifies the baud rate of COM Port. The UbiQ-230 device for
RS485 port is set to 19200 bps.
Description
This function will open a COM port by specified baud rate.
Example
g_nPortID=3;
OpenPort(g_nPortID,19200);
See Also
sendComData
Summary of Contents for UbiQ
Page 1: ...User Manual UbiQ Scenario Manager User Manual V1 03...
Page 4: ...UbiQ Scenario Manager User Manual iv...
Page 7: ...Chapter 1 1 Introduction...
Page 13: ...Chapter 2 2 Getting Started...
Page 37: ...Chapter 3 3 Tutorials...
Page 47: ...Chapter 4 4 Basic of Smart C Script Language...
Page 62: ...UbiQ Scenario Manager User Manual 56...