5.1.4 Start Programming, Abort and Change Status
Three buttons to Start, Continue and Abort a program process are placed on the GUI.
5.2 Source code
This demo is meant to control only one programming process using only one database
connection. This is the reason why the database connection (conn), the recordset (rsProg)
and the current ID (MaxID) are global variables.
All the relevant code is stored in the subs.
5.2.1 connect to the database
Because the database connection has to be set up as the very first step, it is already
executed when loading the form. The Visual Basic code for this is:
Set conn = New ADODB.Connection
conn.ConnectionString = "Data Source=ac_isppro"
conn.Open
5.2.2 getting a list of programmers
To give the user the ability to select a PPM you have to read the list of connected PPMs from
the table and store it in the combobox.
Dim rsPPMS
Set rsPPMS = New ADODB.Recordset
rsPPMS.ActiveConnection = conn
’Select unique Programmer names
rsPPMS.Open ("SELECT DISTINCT PPM from projects")
’Add to Projects combo-box
cbPPM.Clear
While Not rsPPMS.EOF
cbPPM.AddItem (rsPPMS("PPM"))
rsPPMS.MoveNext
Wend
5.2.3 getting list of projects
As soon as the user selects a programmer the list of projects has to be updated. You will
read the projects for this programmer from the same table and store it into another
combobox.
Dim rsProjects
Set rsProjects = New ADODB.Recordset
rsProjects.ActiveConnection = conn
’Select unique Programmer names
rsProjects.Open ("SELECT Project_Name from projects where PPM = ’" & _
cbPPM.Text & "’")
’Add to Projects combo-box
cbProjectName.Clear
While Not rsProjects.EOF
cbProjectName.AddItem (rsProjects("Project_Name"))
rsProjects.MoveNext
Wend
ISP-PRO - Remote Application Control V1.01 – 21/02/05
21
相关PDF资料
PQ-MDS-PCIEXP PCI EXPANDER ADAPTOR
PQF-44 PLUG QFP 44PIN (SOLDER DOWN)
PRG18BB471MS1RB THERMISTOR
PS1600 POWER SUPPLY HOTSWAP 90-245V
PS5100EV KIT EVALUATION PS5100 W/PS051
PS5162EV KIT EVALUATION PS5162 W/PS051
PS5163 MODULE BATTERY MGR W/LED DISPLAY
PS5164EV KIT EVALUATION PS5164 W/PS051
相关代理商/技术参数
PPM3A1-UPG6M 功能描述:UPGRADE PPM3 LABVIEW DEVELOPMENT RoHS:否 类别:编程器,开发系统 >> 软件 系列:- 标准包装:1 系列:ISE® 设计套件 类型:订阅 适用于相关产品:Xilinx FPGAs 其它名称:Q4986209T1081384
PPM3A1-UPG7 功能描述:UPGRADE PPM3 JTAG ISP AVR MCU RoHS:否 类别:编程器,开发系统 >> 软件 系列:- 标准包装:1 系列:ISE® 设计套件 类型:订阅 适用于相关产品:Xilinx FPGAs 其它名称:Q4986209T1081384
PPM3-MK2 功能描述:PROGRAMMER PRODUCTION ISP RoHS:否 类别:编程器,开发系统 >> 过时/停产零件编号 系列:PPM3-MK2 标准包装:1 系列:- 类型:MCU 适用于相关产品:Freescale MC68HC908LJ/LK(80-QFP ZIF 插口) 所含物品:面板、缆线、软件、数据表和用户手册 其它名称:520-1035
PPM3-MK2(UN) 制造商:Equinox Technologies 功能描述:PROGRAMMER ISP
PPM-4 功能描述:电线鉴定 Pre-Printed Marker Cards, Hi-Temp, .25" RoHS:否 制造商:TE Connectivity / Q-Cees 产品:Labels and Signs 类型: 材料:Vinyl 颜色:Blue 宽度:0.625 in 长度:1 in
PPM-46 制造商:Panduit Corp 功能描述:
PPM-47 制造商:Panduit Corp 功能描述:
PPM-49 制造商:Panduit Corp 功能描述: