Jazz Soft 您要联络吗?   JazzSoft@live.com     简体字汉语   英语  日语  繁体字汉语  简体字汉语
提供半导体工厂自动化与生产效率改善法 
Skip Navigation Links首页 > 产品一览 > Swing > Swing SECS I 详细资料 > Properties > Active

Dorian.Core is added. Dorian now supports .NET 6 and 7.

Swing SECS I 详细资料   

Properties
Active
Appearance
BaudRate
BorderStyle
CommPort
DeviceID
IniFile
IniSection
Log
LogFile
Master
MSEC
Retry
Show
T1
T2
T3
T4

Methods
Config
LoadIni
Send

Events
Errors
Read
SelMsg
Written

Active Property

If this property is set to True, ActiveX control will open serial port using the condition specified by CommPort Property and BaudRate Property. To know port has been opened successfully or not, check Active Property is True or False. If this property is set to False, then port will be closed. If you forget to close serial port when you terminate application, don’t worry, ActiveX control automatically close serial port.

Syntax

Visual Basic



Visual C++


Return Value

Example

Visual Basic

.CommPort = 0  ' Com1
.BaudRate = 9600  ' 9600 bps
.Active = True  ' Open
If Not .Active Then
  MsgBox "Error : Cannot open serial port!"
End If


Visual C++

m_secs.SetCommPort(0);  // Com1
m_secs.SetBaudRate(9600);  // 9600 bps
m_secs.SetActive(true);  // Open
if(m_secs.GetActive())
  MessageBox("Error : Cannot open serial port!");

Remarks

See Also

您要联络吗?   JazzSoft@live.com
  Copyright © 1997 - 2024 Jazz Soft, Inc.