VISUAL BASIC SERVER INTERFACE CODE. Visual Basic 6 Graphical Interface 103. Visual Basic Module rtsscomm.bas Code.115

Size: px
Start display at page:

Download "VISUAL BASIC SERVER INTERFACE CODE. Visual Basic 6 Graphical Interface 103. Visual Basic Module rtsscomm.bas Code.115"

Transcription

1 APPENDIX E VISUAL BASIC SERVER INTERFACE CODE Page E.1: E.2: E.3: E.4: E.5: Visual Basic 6 Graphical Interface 103 Visual Basic Form gyrofront.frm Code Visual Basic Module mydatatypes.bas Code..114 Visual Basic Module myints.bas Code Visual Basic Module rtsscomm.bas Code

2 E.1: Visual Basic 6 Graphical Interface 103

3 ########################################### # Visual Basic Form "gyrofront.frm" Code # # Author: Adrian Lee, Henry Hahn # # Date: 3/30/00 # ########################################### Option Explicit Dim sservermsg As String Private Sub cmdbrowsefile_click() Dim tmpstrg As String Set Hex value for ShowOpen Flags See Online help for more info cdlggetfile.flags = &H Show All Files cdlggetfile.filter = "(*.*) *.*" Start ShowOpen Common Dialog cdlggetfile.showopen Get filename chosen txtfilename.text = cdlggetfile.filename Private Sub cmdclearlist_click() lststatus.clear Private Sub cmdinit_click() Dim tmpstrg As String cdlggetfile.flags = &H cdlggetfile.filter = "(*.rtss) *.rtss" cdlggetfile.showopen If cdlggetfile.filename <> "" Then tmpstrg = "rtssrun " + cdlggetfile.filename errcode = InitRTSSCommunication(gHW, tmpstrg) MsgBox "Error Init of RTSS, errcode = " & errcode Else cmdstart.enabled = True cmdsetgains.enabled = True cmdsample.enabled = True optsinusoidal.enabled = True optcollocated.enabled = True optnoncollocated.enabled = True optpd.enabled = True optpid.enabled = True optstate.enabled = True optlinear.enabled = True optadaptation.enabled = True txtswingk1.enabled = True txtswingk2.enabled = True txtswingk3.enabled = True txtswingk4.enabled = True txtbalk1.enabled = True txtbalk2.enabled = True txtbalk3.enabled = True txtbalk4.enabled = True scrtimer.enabled = True scrsample.enabled = True scramplitude.enabled = True scrduration.enabled = True cmdinit.caption = "Running\n" + cdlggetfile.filetitle cmdinit.enabled = False 104

4 Set flag gcommstarted = 1 Private Sub cmdquit_click() Quit Unload Me Public Sub cmdsample_click() Dim data(20) As Single Dim dummybuff As String dummybuff = "dummydata" errcode = 0 data(0) = scrsample.value Send Pulse errcode = SendCmdToRTSS_RecvDataFromVB(&H404, data(0), dummybuff) MsgBox "Error sending Sampling Rate, errcode = " & errcode Private Sub cmdsavefile_click() Dim savedatafilename As String Dim dummydata(20) As Single If txtfilename.text <> "" Then savedatafilename = txtfilename.text Send Savedatatofile command 0x406 with File name txtfilename errcode = SendCmdToRTSS_RecvDataFromVB(&H406, dummydata(0), savedatafilename) MsgBox "Error sending Save File Command, errcode = " & errcode cmdsavefile.enabled = False Public Sub cmdpulse_click() Dim data(20) As Single Dim dummybuff As String dummybuff = "dummydata" errcode = 0 data(0) = scramplitude.value data(1) = scrduration.value Send Pulse errcode = SendCmdToRTSS_RecvDataFromVB(&H407, data(0), dummybuff) MsgBox "Error sending Disturbance Pulse, errcode = " & errcode Public Sub cmdsetgains_click() Dim data(20) As Single Dim dummybuff As String Dim swingup As Single Dim balance As Single dummybuff = "dummydata" errcode = 0 105

5 Error checking (Gains can only be Single (float) values) If IsNumeric(txtSwingK1.Text) = False Then errcode = 1 MsgBox "Error in your Swing Up K1 value" If IsNumeric(txtSwingK2.Text) = False Then errcode = 1 MsgBox "Error in your Swing Up K2 value" If IsNumeric(txtSwingK3.Text) = False Then errcode = 1 MsgBox "Error in your Swing Up K3 value" If IsNumeric(txtSwingK4.Text) = False Then errcode = 1 MsgBox "Error in your Swing Up K4 value" If IsNumeric(txtBalK1.Text) = False Then errcode = 1 MsgBox "Error in your Balancing K1 value" If IsNumeric(txtBalK2.Text) = False Then errcode = 1 MsgBox "Error in your Balancing K2 value" If IsNumeric(txtBalK3.Text) = False Then errcode = 1 MsgBox "Error in your Balancing K3 value" If IsNumeric(txtBalK4.Text) = False Then errcode = 1 MsgBox "Error in your Balancing K4 value" Check which Swing Up Controller is selected If optsinusoidal.value = True Then swingup = 1 If optnoncollocated.value = True Then swingup = 2 If optcollocated.value = True Then swingup = 3 If optpd.value = True Then balance = 1 If optpid.value = True Then balance = 2 If optstate.value = True Then balance = 3 If optlinear.value = True Then balance = 4 If optadaptation.value = True Then balance = 5 If errcode = 0 Then data(0) = txtswingk1.text data(1) = txtswingk2.text data(2) = txtswingk3.text data(3) = txtswingk4.text data(4) = txtbalk1.text data(5) = txtbalk2.text data(6) = txtbalk3.text data(7) = txtbalk4.text data(8) = swingup data(9) = balance Send Gains 106

6 errcode = SendCmdToRTSS_RecvDataFromVB(&H402, data(0), dummybuff) MsgBox "Error sending Controller Gains, errcode = " & errcode Public Sub cmdstart_click() Send Start Command errcode = SendCmdToRTSS_Simple(&H400) MsgBox "Error sending command START, errcode = " & errcode If errcode = 0 Then Activate/Deactivate appropriate buttons timupdatedata.enabled = True cmdstart.enabled = False cmdstop.enabled = True cmdsavefile.enabled = False cmdpulse.enabled = True Public Sub cmdstop_click() Send Halt command errcode = SendCmdToRTSS_Simple(&H403) MsgBox "Error sending command HALT, errcode = " & errcode Activate/Deactivate appropriate buttons timupdatedata.enabled = False cmdstart.enabled = True cmdstop.enabled = False cmdsavefile.enabled = True cmdpulse.enabled = False Private Sub Form_Load() Global flag indicating if RTSS process start or not gcommstarted = 0 Get VB program s window handle ghw = Me.hWnd Start catching windows messages (events) Add this next line when doing events Hook lbltimer.caption = scrtimer.value If server_socket.state <> sckclosed Then server_socket.close server_socket.listen lststatus.additem ("Listening to port " + CStr(server_socket.LocalPort) + "...") Private Sub Form_Unload(Cancel As Integer) If gcommstarted = 1 Then Send Quit errcode = SendCmdToRTSS_Simple(&H401) MsgBox "Error sending command QUIT, errcode = " & errcode Close RTSS process errcode = DeleteRTSSCommunication() 107

7 MsgBox "Error Delete of RTSS, errcode = " & errcode If server_socket.state <> sckclosed Then server_socket.close Private Sub scrsample_change() lblsample.caption = scrsample.value Private Sub scrtimer_change() lbltimer.caption = scrtimer.value timupdatedata.interval = scrtimer.value Private Sub scramplitude_change() lblamplitude.caption = scramplitude.value Private Sub scrduration_change() lblduration.caption = scrduration.value Private Sub server_socket_connectionrequest(byval requestid As Long) sservermsg = "Connection request from " & server_socket.remotehostip lststatus.additem (sservermsg) If server_socket.state <> sckclosed Then server_socket.close server_socket.accept requestid lststatus.additem ("Connection accepted.") If (Len(txtStartMsg.Text) > 0 And chkstart.value = True) Then server_socket.senddata (txtstartmsg.text + "X") Else server_socket.senddata ("Hello " + server_socket.remotehostip + ".X") Public Sub server_socket_close() sservermsg = "Connection closed: " & server_socket.remotehostip lststatus.additem (sservermsg) server_socket.close server_socket.listen me.cmdstop Private Sub server_socket_dataarrival(byval bytestotal As Long) Dim vtdata As String Dim vtdataarray() As Byte Dim cmd As String Dim swingup_controller As String Dim balance_controller As String Dim j As Integer Dim swingk(3) As Single Dim balk(3) As Single Dim tsingle As MySingle 108

8 Dim tbytes As MyBytes Dim tint As MyIntegers Dim tintbyte As MyIntBytes Dim Control As Integer Dim transmit As Integer Dim amplitude As Integer Dim duration As Integer server_socket.getdata vtdata, vbbyte vtdataarray = vtdata cmd = Chr(vtDataArray(0)) + Chr(vtDataArray(2)) Select Case cmd Case "ST" lststatus.additem ("Starting controller...") Me.cmdStart_Click Case "HA" lststatus.additem ("Stopping controller...") Me.cmdStop_Click Case "SE" lststatus.additem ("Setting Gains...") swingup_controller = Chr(vtDataArray(4)) balance_controller = Chr(vtDataArray(6)) Select Case swingup_controller Case "A" optsinusoidal.value = True Case "B" optnoncollocated.value = True Case "C" optcollocated.value = True Case Else End Select Select Case balance_controller Case "A" optpd.value = True Case "B" optpid.value = True Case "C" optstate.value = True Case "D" optlinear.value = True Case "E" optadaptation.value = True Case Else End Select For j = 0 To 3 tbytes.bf(0) = 1 * vtdataarray(16 * j + 8) + 16 * vtdataarray(16 * j + 10) tbytes.bf(1) = 1 * vtdataarray(16 * j + 12) + 16 * vtdataarray(16 * j + 14) tbytes.bf(2) = 1 * vtdataarray(16 * j + 16) + 16 * vtdataarray(16 * j + 18) tbytes.bf(3) = 1 * vtdataarray(16 * j + 20) + 16 * vtdataarray(16 * j + 22) LSet tsingle = tbytes swingk(j) = tsingle.f Next j For j = 4 To 7 tbytes.bf(0) = 1 * vtdataarray(16 * j + 8) + 16 * vtdataarray(16 * j + 10) tbytes.bf(1) = 1 * vtdataarray(16 * j + 12) + 16 * vtdataarray(16 * j + 14) tbytes.bf(2) = 1 * vtdataarray(16 * j + 16) + 16 * vtdataarray(16 * j + 18) tbytes.bf(3) = 1 * vtdataarray(16 * j + 20) + 16 * vtdataarray(16 * j + 22) LSet tsingle = tbytes 109

9 balk(j - 4) = tsingle.f Next j lststatus.additem (CStr(swingK(0)) + " " + CStr(swingK(1)) + " " + CStr(swingK(2)) + " " + CStr(swingK(3))) lststatus.additem (CStr(balK(0)) + " " + CStr(balK(1)) + " " + CStr(balK(2)) + " " + CStr(balK(3))) txtswingk1.text = swingk(0) txtswingk2.text = swingk(1) txtswingk3.text = swingk(2) txtswingk4.text = swingk(3) txtbalk1.text = balk(0) txtbalk2.text = balk(1) txtbalk3.text = balk(2) txtbalk4.text = balk(3) Me.cmdSetGains_Click Case "SA" lststatus.additem ("Saving Run Data...") Case "SP" Control = CInt(vtDataArray(4) * vtdataarray(6)) scrsample.value = Control lblsample.caption = Control Me.cmdSample_Click transmit = CInt(vtDataArray(8) * vtdataarray(10)) scrtimer.value = transmit lbltimer.caption = transmit timupdatedata.interval = transmit Case "PU" tintbyte.bf(0) = vtdataarray(4) + 16 * vtdataarray(6) tintbyte.bf(1) = vtdataarray(8) + 16 * vtdataarray(10) LSet tint = tintbyte amplitude = tint.i lststatus.additem (CStr(amplitude)) tintbyte.bf(0) = vtdataarray(12) + 16 * vtdataarray(14) tintbyte.bf(1) = vtdataarray(16) + 16 * vtdataarray(18) LSet tint = tintbyte duration = tint.i lststatus.additem (CStr(duration)) scramplitude.value = amplitude scrduration.value = duration Me.cmdPulse_Click Case Else lststatus.additem ("Data uninterpretable") tbytes.bf(0) = vtdataarray(0) tbytes.bf(1) = vtdataarray(1) tbytes.bf(2) = vtdataarray(2) tbytes.bf(3) = vtdataarray(3) LSet tsingle = tbytes lststatus.additem (CStr(tSingle.f)) End Select sservermsg = "Received: " + CStr(cmd) + " " + CStr(swingup_controller) + CStr(balance_controller) + " " + " from " + server_socket.remotehostip lststatus.additem (sservermsg) Timer function Private Sub timupdatedata_timer() Dim data(20) As Single Dim pi As Single pi = Dim reverse_float_array(3) As Byte Dim tsingle As MySingle 110

10 Dim tbytes As MyBytes Get data to display from the RTSS process errcode = SendCmdToRTSS_SendDataToVB(&H405, data(0)) MsgBox "Error sending command GetData, errcode = " & errcode Display data lblq1data.caption = data(0) * 180 / pi lblq1dotdata.caption = data(1) lblq2data.caption = data(2) * 180 / pi lblq2dotdata.caption = data(3) lbltaudata.caption = data(4) data(5) = link angle position error data(6) = disc velocity error If server_socket.state <> sckclosed Then Send link angle tsingle.f = CSng((data(0) * 180) / pi) LSet tbytes = tsingle reverse_float_array(0) = tbytes.bf(3) reverse_float_array(1) = tbytes.bf(2) reverse_float_array(2) = tbytes.bf(1) reverse_float_array(3) = tbytes.bf(0) On Error GoTo errorhandler server_socket.senddata reverse_float_array Send link velocity tsingle.f = CSng(data(1)) LSet tbytes = tsingle reverse_float_array(0) = tbytes.bf(3) reverse_float_array(1) = tbytes.bf(2) reverse_float_array(2) = tbytes.bf(1) reverse_float_array(3) = tbytes.bf(0) On Error GoTo errorhandler server_socket.senddata reverse_float_array Send disc angle tsingle.f = CSng(data(2)) LSet tbytes = tsingle reverse_float_array(0) = tbytes.bf(3) reverse_float_array(1) = tbytes.bf(2) reverse_float_array(2) = tbytes.bf(1) reverse_float_array(3) = tbytes.bf(0) On Error GoTo errorhandler server_socket.senddata reverse_float_array Send disc velocity tsingle.f = CSng(data(3)) LSet tbytes = tsingle reverse_float_array(0) = tbytes.bf(3) reverse_float_array(1) = tbytes.bf(2) reverse_float_array(2) = tbytes.bf(1) reverse_float_array(3) = tbytes.bf(0) On Error GoTo errorhandler server_socket.senddata reverse_float_array Send control effort tsingle.f = CSng(data(4)) LSet tbytes = tsingle reverse_float_array(0) = tbytes.bf(3) 111

11 reverse_float_array(1) = tbytes.bf(2) reverse_float_array(2) = tbytes.bf(1) reverse_float_array(3) = tbytes.bf(0) On Error GoTo errorhandler server_socket.senddata reverse_float_array Send link angle error tsingle.f = CSng(data(5)) LSet tbytes = tsingle reverse_float_array(0) = tbytes.bf(3) reverse_float_array(1) = tbytes.bf(2) reverse_float_array(2) = tbytes.bf(1) reverse_float_array(3) = tbytes.bf(0) On Error GoTo errorhandler server_socket.senddata reverse_float_array Send disc velocity error tsingle.f = CSng(data(6)) LSet tbytes = tsingle reverse_float_array(0) = tbytes.bf(3) reverse_float_array(1) = tbytes.bf(2) reverse_float_array(2) = tbytes.bf(1) reverse_float_array(3) = tbytes.bf(0) On Error GoTo errorhandler server_socket.senddata reverse_float_array Exit Sub errorhandler: lststatus.additem ("Error writing to socket!") lststatus.additem ("Stopping Experiment!") lststatus.additem ("Closing server_socket") Me.server_socket_Close Me.cmdStop_Click timupdatedata.enabled = False Private Sub optsinusoidal_click() txtswingk1.visible = True txtswingk2.visible = False txtswingk3.visible = False txtswingk4.visible = False lblswingk1.visible = True lblswingk2.visible = False lblswingk3.visible = False lblswingk4.visible = False Private Sub optnoncollocated_click() txtswingk1.visible = True txtswingk2.visible = True txtswingk3.visible = False txtswingk4.visible = False lblswingk1.visible = True lblswingk2.visible = True lblswingk3.visible = False lblswingk4.visible = False Private Sub optcollocated_click() txtswingk1.visible = True txtswingk2.visible = True txtswingk3.visible = False txtswingk4.visible = False 112

12 lblswingk1.visible = True lblswingk2.visible = True lblswingk3.visible = False lblswingk4.visible = False Private Sub optpd_click() txtbalk1.visible = True txtbalk2.visible = True txtbalk3.visible = False txtbalk4.visible = True lblbalk1.visible = True lblbalk2.visible = True lblbalk3.visible = False lblbalk4.visible = True lblbalk1.caption = "Kp" lblbalk2.caption = "Kd" lblbalk4.caption = "Kd2" Private Sub optpid_click() txtbalk1.visible = True txtbalk2.visible = True txtbalk3.visible = True txtbalk4.visible = False lblbalk1.visible = True lblbalk2.visible = True lblbalk3.visible = True lblbalk4.visible = False lblbalk1.caption = "Kp" lblbalk2.caption = "Kd" lblbalk3.caption = "Ki" Private Sub optstate_click() txtbalk1.visible = True txtbalk2.visible = True txtbalk3.visible = True txtbalk4.visible = True lblbalk1.visible = True lblbalk2.visible = True lblbalk3.visible = True lblbalk4.visible = True lblbalk1.caption = "K1" lblbalk2.caption = "K2" lblbalk3.caption = "K3" lblbalk4.caption = "K4" Private Sub optlinear_click() txtbalk1.visible = True txtbalk2.visible = True txtbalk3.visible = True txtbalk4.visible = True lblbalk1.visible = True lblbalk2.visible = True lblbalk3.visible = True lblbalk4.visible = True lblbalk1.caption = "K1" lblbalk2.caption = "K2" lblbalk3.caption = "K3" lblbalk4.caption = "K4" Private Sub optadaptation_click() txtbalk1.visible = True txtbalk2.visible = True txtbalk3.visible = True txtbalk4.visible = False lblbalk1.visible = True 113

13 lblbalk2.visible = True lblbalk3.visible = True lblbalk4.visible = False lblbalk1.caption = "Kp" lblbalk2.caption = "Kd" lblbalk3.caption = "Ki" 114

14 ############################################ # Visual Basic Module "mydatatypes.bas" Code # # Author: Adrian Lee, Henry Hahn # # Date: 3/30/00 # ############################################ Type MySingle f As Single End Type Type MyBytes bf(3) As Byte End Type Type MyInteger p As Integer End Type ############################################ # Visual Basic Module "myints.bas" Code # # Author: Adrian Lee, Henry Hahn # # Date: 3/30/00 # ############################################ Type MyIntegers i As Integer End Type Type MyIntBytes bf(1) As Byte End Type 115

15 ############################################ # Visual Basic Module "rtsscomm.bas" Code # # Author: Dan Block, Adrian Lee # # Date: 3/30/00 # ############################################ Option Explicit Global variables Public Const GWL_WNDPROC = -4 Global lpprevwndproc As Long Global ghw As Long Global gcommstarted As Integer Ignore unless using RTSS events Ignore unless using RTSS events Handle to VB window Flag indicating if RTSS proc. started Win32 API functions for message handling For more information, see "Passing Function Pointers to Dll Procedures and Type Libraries" - index entry function pointers in Books Online These Win32 API are used to setup a Message Que So the VB program can receive messages for the Mecha.dll DLL. Messages are sent from Mecha.dll when an event is sent from the RTSS process Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpprevwndfunction As Long, ByVal hwnd As Long, ByVal Msg As Long, ByVal wparam As Long, ByVal lparam As Long) _ As Long Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nindex As Long, ByVal dwnewlong As Long) As Long Declarations for the function calls in Mecha.dll Public Declare Function RunUtility Lib "mecha" (ByVal lpcmd _ As String) As Long Public Declare Function InitRTSSCommunication Lib "mecha" (ByVal hwnd As Long, ByVal filename As String) As Long Public Declare Function DeleteRTSSCommunication Lib "mecha" () As Long Public Declare Function SendCmdToRTSS_Simple Lib "mecha" (ByVal Command As Long) As Long Public Declare Function SendCmdToRTSS_SendDataToVB Lib "mecha" (ByVal Command As Long, ByRef SentData As Single) As Long Public Declare Function SendCmdToRTSS_RecvDataFromVB Lib "mecha" (ByVal Command As Long, ByRef RecData As Single, _ ByVal buffer As String) As Long HOOK is used to setup Window Messaging in the VB program Public Sub Hook() Start using the message handler in this form lpprevwndproc = SetWindowLong(gHW, GWL_WNDPROC, AddressOf WindowProc) UNHOOK kills the Window Messaging Public Sub Unhook() Stop using this form s message handler Dim temp As Long temp = SetWindowLong(gHW, GWL_WNDPROC, lpprevwndproc) WindowProc is the function called in the event of a Message. You may need to modify this function if you are using events in your rtss process Function WindowProc(ByVal hw As Long, ByVal umsg As Long, ByVal wparam As Long, ByVal lparam _ As Long) As Long If this message is the Event message If umsg = &H420 Then Check which Event Command was sent You could add additional If statements here to check for other wparam values and perform the necessary task in response to the Message If wparam = 2 Then MsgBox "Error, Event occurred,wparam = 2" Else MsgBox "Error, Event occurred" 116

16 Pass the message to the main message loop WindowProc = CallWindowProc(lpPrevWndProc, hw, umsg, wparam, lparam) End Function 117

DroidBasic Syntax Contents

DroidBasic Syntax Contents DroidBasic Syntax Contents DroidBasic Syntax...1 First Edition...3 Conventions Used In This Book / Way Of Writing...3 DroidBasic-Syntax...3 Variable...4 Declaration...4 Dim...4 Public...4 Private...4 Static...4

More information

Universitas Sumatera Utara

Universitas Sumatera Utara Option Explicit DefLng A-Z '--------------------------------------------------------------------------------------------- #Const Test = False '---------------------------------------------------------------------------------------------

More information

PROGRAMMING TECHNIQUES

PROGRAMMING TECHNIQUES Subclassing? Class modules aren t just for business rules. by Karl E. Peterson f all the innovations Visual Basic 4.0 introduced, the most revolutionary is probably the new Class module. By now, you ve

More information

Function: function procedures and sub procedures share the same characteristics, with

Function: function procedures and sub procedures share the same characteristics, with Function: function procedures and sub procedures share the same characteristics, with one important difference- function procedures return a value (e.g., give a value back) to the caller, whereas sub procedures

More information

IS 320 A/B Winter 1998 Page 1 Exam 1

IS 320 A/B Winter 1998 Page 1 Exam 1 IS 320 A/B Winter 1998 Page 1 Use your own paper to answer the questions. You may do work on this document but transfer your answers to separate sheets of paper. Turn in this document as well as your answers

More information

softmc Servotronix Motion API Reference Manual Revision 1.0

softmc Servotronix Motion API Reference Manual Revision 1.0 Servotronix Motion API Reference Manual Revision 1.0 Revision History Document Revision Date 1.0 Nov. 2014 Initial release Copyright Notice Disclaimer Trademarks 2014 Servotronix Motion Control Ltd. All

More information

Lecture 4 DLLs and Custom Hardware Programming

Lecture 4 DLLs and Custom Hardware Programming Lecture 4 DLLs and Custom Hardware Programming Dynamically Link Libraries (DLL) Generating EXE file involves: (1) Compile source, which generates object/libraries files (.OBJ,.LIB), and (2) Linking object

More information

Key Switch Control Software Windows driver software for Touch Panel Classembly Devices

Key Switch Control Software Windows driver software for Touch Panel Classembly Devices IFKSMGR.WIN Key Switch Control Software Windows driver software for Touch Panel Classembly Devices Help for Windows www.interface.co.jp Contents Chapter 1 Introduction 3 1.1 Overview... 3 1.2 Features...

More information

int result; int waitstat; int stat = PmcaAsyncGetGain(&result); // stat receives request id

int result; int waitstat; int stat = PmcaAsyncGetGain(&result); // stat receives request id PMCA COM API Programmer's Guide PMCA COM is an Application Programming Interface Library for the Amptek Pocket Multichannel Analyzers MCA8000 and MCA8000A. PMCA COM runs on personal computers under any

More information

Language Fundamentals

Language Fundamentals Language Fundamentals VBA Concepts Sept. 2013 CEE 3804 Faculty Language Fundamentals 1. Statements 2. Data Types 3. Variables and Constants 4. Functions 5. Subroutines Data Types 1. Numeric Integer Long

More information

System Monitoring Library Windows Driver Software for Industrial Controllers

System Monitoring Library Windows Driver Software for Industrial Controllers IFPMGR.WIN System Monitoring Library Windows Driver Software for Industrial ontrollers Help for Windows www.interface.co.jp ontents hapter 1 Introduction...4 1.1 Overview... 4 1.2 Features... 4 hapter

More information

Reverse Engineering & Memory patching

Reverse Engineering & Memory patching Reverse Engineering & Memory patching Author Richard Davy Email rd@secureyour.it Sage Line 50 Version 2010 Fully updated and patched http://www.sage.co.uk/ Attack tools Softice, IDA Pro, Excel 2003 After

More information

Winsock Control. TCP Basics

Winsock Control. TCP Basics Winsock Control Winsock Control The Winsock control, invisible to the user, provides easy access to TCP and UDP network services. It can be used by Microsoft Access, Visual Basic, Visual C++, or Visual

More information

Integration for Visual Basic Interface

Integration for Visual Basic Interface Integration for Visual Basic Interface TRACE32 Online Help TRACE32 Directory TRACE32 Index TRACE32 Documents... 3rd Party Tool Integrations... Integration for Visual Basic Interface... 1 Brief Overview

More information

Windows Event Binding Made Easy Doug Hennig

Windows Event Binding Made Easy Doug Hennig Windows Event Binding Made Easy Doug Hennig A feature available in other development environments but missing in VFP is the ability to capture Windows events. VFP 9 extends the BINDEVENT() function to

More information

Quick Reference Guide

Quick Reference Guide SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Basic language This reference guide

More information

Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN

Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN-2010-96 Data Acquisition over Ethernet using Serial Device Server - NPort 5210 PRL-TN-2010-96 Introduction 1 Serial Device

More information

IFE: Course in Low Level Programing. Lecture 5

IFE: Course in Low Level Programing. Lecture 5 Lecture 5 Windows API Windows Application Programming Interface (API) is a set of Windows OS service routines that enable applications to exploit the power of Windows operating systems. The functional

More information

Allow local or remote applications to access the functionality in the VisualCron server through an easy to use interface.

Allow local or remote applications to access the functionality in the VisualCron server through an easy to use interface. VisualCron API VisualCron API... 1 Purpose... 2 COM support... 2 VB6 example... 2 VB6 code sample... 2 Architecture... 2 Object model... 3 Methods... 3 Events... 4 Communication... 5 Local... 5 Remote...

More information

Using BasicX to Derive Acceleration From GARMIN GPS Text Data

Using BasicX to Derive Acceleration From GARMIN GPS Text Data Basic Express Application Note Using BasicX to Derive Acceleration From GARMIN GPS Text Data Introduction Global Positioning System (GPS) receivers are typically able to measure position, velocity and

More information

Universitas Sumatera Utara

Universitas Sumatera Utara 43 L A M P I R A N 44 Penulisan Kode Program Aplikasi Game Tetris A. Kode program aplikasi game tetris untuk form1 ( MainF.frm ) adalah sebagai berikut. Dim BANK As Database Dim RS As DAO.Recordset Private

More information

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types

Unit 4. Lesson 4.1. Managing Data. Data types. Introduction. Data type. Visual Basic 2008 Data types Managing Data Unit 4 Managing Data Introduction Lesson 4.1 Data types We come across many types of information and data in our daily life. For example, we need to handle data such as name, address, money,

More information

Syntax. Table of Contents

Syntax. Table of Contents Syntax Table of Contents First Edition2 Conventions Used In This Book / Way Of Writing..2 KBasic-Syntax..3 Variable.4 Declaration4 Dim4 Public..4 Private.4 Protected.4 Static.4 As..4 Assignment4 User Defined

More information

'... '... '... Module created: unknown '... Proj finished: March 21, 2012 '... '...

'... '... '... Module created: unknown '... Proj finished: March 21, 2012 '... '... ThisWorkbook - 1 If g_bdebugmode Then '... Module created: unknown '... Proj finished: March 21, 2012 '************************* CLASS-LEVEL DECLARATIONS ************************** Option Explicit Option

More information

Interacting with External Applications

Interacting with External Applications Interacting with External Applications DLLs - dynamic linked libraries: Libraries of compiled procedures/functions that applications link to at run time DLL can be updated independently of apps using them

More information

CTI-AR200 Software Library. for Acuity AR200 Laser Distance Sensors. Programmer s Guide. and. Reference Manual. C T i. Crandun Technologies Inc.

CTI-AR200 Software Library. for Acuity AR200 Laser Distance Sensors. Programmer s Guide. and. Reference Manual. C T i. Crandun Technologies Inc. CTI-AR200 Software Library for Acuity AR200 Laser Distance Sensors Programmer s Guide and Reference Manual C T i Crandun Technologies Inc. Manual V1.01 Copyright 2002, 2006, Crandun Technologies Inc.,

More information

Bulk Transfers Using Visual Basic 6.0

Bulk Transfers Using Visual Basic 6.0 Revision 0.BMay 11, 2001 Introduction This document describes Bulk_XferVB, a small Windows application that uses Bulk Transfers to move data in and out of EZ-USB / EZ-USB FX devices using the EZ-USB General

More information

بسن اهلل الزمحن الزحين اكواد الفيجوال بيسك تأليف : أمحد صادق

بسن اهلل الزمحن الزحين اكواد الفيجوال بيسك تأليف : أمحد صادق بسن اهلل الزمحن الزحين اكواد الفيجوال بيسك تأليف : أمحد صادق مقذمح : يضم هذا انكرية انصغيز اكثز اكىاد انثيسك اهميح تانىسثح نهمثرذئيه وانهغاخ انثسيطح انر قذ يصعة انحصىل عهيها نرشرد مىضىعاذها وقذ قمد تجمعها

More information

SmartDongle and PowerBASIC

SmartDongle and PowerBASIC SmartDongle and PowerBASIC The SmartDongle can be used under Powerbasic with a little code and using the VB dll supplied by the company. There are VB and C examples of source code available on the company

More information

Using a 74HCT259 8 Bit Addressable Latch with BasicX

Using a 74HCT259 8 Bit Addressable Latch with BasicX Basic Express Application Note Using a 74HCT259 8 Bit Addressable Latch with BasicX Introduction This application note illustrates how to use a 74HCT259 8-bit addressable latch with a BasicX system. The

More information

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications Friday, January 23, 2004 We are going to continue using the vending machine example to illustrate some more of Access properties. Advanced

More information

NOTES: Procedures (module 15)

NOTES: Procedures (module 15) Computer Science 110 NAME: NOTES: Procedures (module 15) Introduction to Procedures When you use a top-down, structured program design, you take a problem, analyze it to determine what the outcome should

More information

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) Technology & Information Management Instructor: Michael Kremer, Ph.D. Database Program: Microsoft Access Series DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6) AGENDA 3. Executing VBA

More information

ACR-MotionMax. Users Guide. API Users Guide Getting Started - 1

ACR-MotionMax. Users Guide. API Users Guide Getting Started - 1 ACR-MotionMax API Users Guide API Users Guide Getting Started - 1 User Information ACR Series products are used to control electrical and mechanical components of motion control systems. You should test

More information

PVI DLL Programming TM711

PVI DLL Programming TM711 t ep rin PVI DLL Programming no t fo rr TM711 Requirements Training modules: TM211 - Automation Studio Online Communication TM710 - PVI Communication Software: Visual Basic 6.0 Windows NT/2000/XP Hardware:

More information

PASSTCERT QUESTION & ANSWER

PASSTCERT QUESTION & ANSWER PASSTCERT QUESTION & ANSWER Higher Quality Better Service! Weofferfreeupdateserviceforoneyear HTTP://WWW.PASSTCERT.COM Exam : 070-540VB Title : TS: MS.NET Frmewk 3.5, Workflow Foundation App Dev Version

More information

The name of this type library is LabelManager2 with the TK Labeling Interface reference.

The name of this type library is LabelManager2 with the TK Labeling Interface reference. Page 1 of 10 What is an ActiveX object? ActiveX objects support the COM (Component Object Model) - Microsoft technology. An ActiveX component is an application or library that is able to create one or

More information

C:\MasterPageWeb\HAPR\docu\HAPR_VB6_version15sept06.rtf 19/10/08. HARP_VB projet en VB6

C:\MasterPageWeb\HAPR\docu\HAPR_VB6_version15sept06.rtf 19/10/08. HARP_VB projet en VB6 HARP_VB projet en VB6 Option Explicit Dim Value As Integer Dim i As Integer Dim il As Long Dim LL, L1S, L250µS, L500µS, L1mS, L2mS, L5mS, L10mS As Single Dim offsetdepart As Long Dim police(256, 8) As

More information

Mr.Khaled Anwar ( )

Mr.Khaled Anwar ( ) The Rnd() function generates random numbers. Every time Rnd() is executed, it returns a different random fraction (greater than or equal to 0 and less than 1). If you end execution and run the program

More information

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function:

Lookup Project. frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Lookup Project frmlookup (Name: object is a combo box, style 2); use 4 labels: 2 for phone, 2 for mail. MsgBox Function: Help About, in a Message Box lookup.vbp programmed by C.Gribble Page 2 Code for

More information

Please answer questions in the space provided. Question point values are shown in parentheses.

Please answer questions in the space provided. Question point values are shown in parentheses. IS 320 Spring 99 Page 1 Please answer questions in the space provided. Question point values are shown in parentheses. 1. (15) Assume you have the following variable declarations and assignments: Dim A

More information

Contents. Wbridge.DLL 4th June 2012

Contents. Wbridge.DLL 4th June 2012 Contents Contents... 1 wbridge.dll... 2 Installation... 2 wbridge.dll location... 2 wbridge.dll registration... 3 Microsoft required kits... 3 Mettler Toledo weighbridge cabling... 4 Rinstrum and Sabre

More information

LSN 4 GUI Programming Using The WIN32 API

LSN 4 GUI Programming Using The WIN32 API LSN 4 GUI Programming Using The WIN32 API ECT362 Operating Systems Department of Engineering Technology LSN 4 Why program GUIs? This application will help introduce you to using the Win32 API Gain familiarity

More information

Sub Programs. To Solve a Problem, First Make It Simpler

Sub Programs. To Solve a Problem, First Make It Simpler Sub Programs To Solve a Problem, First Make It Simpler Top Down Design Top Down Design Start with overall goal. Break Goal into Sub Goals Break Sub Goals into Sub Sub Goals Until the Sub-Sub Sub-Sub Sub-Sub

More information

LAP-B(PCI/C-PCI) GPF LAP-B Communications Driver Software for for Windows. Help for Windows.

LAP-B(PCI/C-PCI) GPF LAP-B Communications Driver Software for for Windows. Help for Windows. LAP-B(PCI/C-PCI) GPF-4115 LAP-B Communications Driver Software for for Windows Help for Windows www.interface.co.jp Contents Chapter 1 Introduction 4 1.1 Overview4 1.2 Features.4 Chapter 2 Product Specifications

More information

ADVANCED ALGORITHMS TABLE OF CONTENTS

ADVANCED ALGORITHMS TABLE OF CONTENTS ADVANCED ALGORITHMS TABLE OF CONTENTS ADVANCED ALGORITHMS TABLE OF CONTENTS...1 SOLVING A LARGE PROBLEM BY SPLITTING IT INTO SEVERAL SMALLER SUB-PROBLEMS CASE STUDY: THE DOOMSDAY ALGORITHM... INTRODUCTION

More information

How to use JS Automation I/O driver

How to use JS Automation I/O driver How to use JS Automation I/O driver 1 Introduction JS Automation I/O driver package provide the basic I/O system driver and Dll to link with programming language (such as Visual Basic Visual C++ C++ Builder

More information

CPS Plus Data Acquisition Software ActiveX interface

CPS Plus Data Acquisition Software ActiveX interface Overview CPS Plus ActiveX interface enables communication with devices connected via RS232 COM ports and the devices with keyboard emulation using ActiveX technology. Use of CPS Plus ActiveX interface

More information

Good Variable Names: dimensionone, dimension1 Bad Variable Names: dimension One, 1dimension

Good Variable Names: dimensionone, dimension1 Bad Variable Names: dimension One, 1dimension VB Scripting for CATIA V5: Email Course by Emmett Ross Lesson #4 - CATIA Macro Variable Naming Variables make up the backbone of any programming language. Basically, variables store information that can

More information

3. Java - Language Constructs I

3. Java - Language Constructs I Educational Objectives 3. Java - Language Constructs I Names and Identifiers, Variables, Assignments, Constants, Datatypes, Operations, Evaluation of Expressions, Type Conversions You know the basic blocks

More information

Level 3 Computing Year 2 Lecturer: Phil Smith

Level 3 Computing Year 2 Lecturer: Phil Smith Level 3 Computing Year 2 Lecturer: Phil Smith Previously We started to build a GUI program using visual studio 2010 and vb.net. We have a form designed. We have started to write the code to provided the

More information

VISUAL BASIC 6.0 OVERVIEW

VISUAL BASIC 6.0 OVERVIEW VISUAL BASIC 6.0 OVERVIEW GENERAL CONCEPTS Visual Basic is a visual programming language. You create forms and controls by drawing on the screen rather than by coding as in traditional languages. Visual

More information

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples:

6/14/2010. VBA program units: Subroutines and Functions. Functions: Examples: Examples: VBA program units: Subroutines and Functions Subs: a chunk of VBA code that can be executed by running it from Excel, from the VBE, or by being called by another VBA subprogram can be created with the

More information

Welcome To VTL Course

Welcome To VTL Course Welcome To VTL Course VertexFX Trading Language Course Hybrid Solutions www.hybrid-solutions.com Contents 1 Hot Tips 2 Introduction 3 Programming structure 4 VTL Client Script 5 VTL Server Script Hot Tip

More information

Agenda. The main body and cout. Fundamental data types. Declarations and definitions. Control structures

Agenda. The main body and cout. Fundamental data types. Declarations and definitions. Control structures The main body and cout Agenda 1 Fundamental data types Declarations and definitions Control structures References, pass-by-value vs pass-by-references The main body and cout 2 C++ IS AN OO EXTENSION OF

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

The following are required to duplicate the process outlined in this document.

The following are required to duplicate the process outlined in this document. Technical Note ClientAce WPF Project Example 1. Introduction Traditional Windows forms are being replaced by Windows Presentation Foundation 1 (WPF) forms. WPF forms are fundamentally different and designed

More information

Artemis SDK. Copyright Artemis CCD Limited October 2011 Version

Artemis SDK. Copyright Artemis CCD Limited October 2011 Version Artemis SDK Copyright Artemis CCD Limited October 2011 Version 3.55.0.0 Introduction The Artemis Software Development Kit (SDK) provides easy access to the functions in the Artemis camera driver DLL. Using

More information

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II)

Start Visual Basic. Session 1. The User Interface Form (I/II) The Visual Basic Programming Environment. The Tool Box (I/II) Session 1 Start Visual Basic Use the Visual Basic programming environment Understand Essential Visual Basic menu commands and programming procedure Change Property setting Use Online Help and Exit Visual

More information

Upgrading Applications

Upgrading Applications C0561587x.fm Page 77 Thursday, November 15, 2001 2:37 PM Part II Upgrading Applications 5 Your First Upgrade 79 6 Common Tasks in Visual Basic.NET 101 7 Upgrading Wizard Ins and Outs 117 8 Errors, Warnings,

More information

CPSC 441 Tutorial TCP Server. Department of Computer Science University of Calgary

CPSC 441 Tutorial TCP Server. Department of Computer Science University of Calgary CPSC 441 Tutorial TCP Server Department of Computer Science University of Calgary TCP Socket Client Server Connection Request Server Listening on welcoming socket Client Socket Server Socket Data Simple

More information

'... '... '... Developer: William H. White (consultant) '... With: TEKsystems Inc. '... For: AIG. Financial Information Systems

'... '... '... Developer: William H. White (consultant) '... With: TEKsystems Inc.   '... For: AIG. Financial Information Systems ThisWorkbook - 1 Developer: William H. White (consultant) With: TEKsystems Inc. www.teksystems.com For: AIG Financial Information Systems 1 NY Plaza, 15th floor Current contact: william.white@aig.com (212)

More information

Java Support for developing TCP Network Based Programs

Java Support for developing TCP Network Based Programs Java Support for developing TCP Network Based Programs 1 How to Write a Network Based Program (In Java) As mentioned, we will use the TCP Transport Protocol. To communicate over TCP, a client program and

More information

Windows Communication Library Description

Windows Communication Library Description Windows Communication Library Description Paint Mixing Windows Data Communication Library for PMA7200 & PMA7500 technology PMA7501 series ECOMIX-Terminals EM01-* SpeedMix PMC7500-* Version 5.2.2 Windows

More information

OpenOffice.org 3.2 BASIC Guide

OpenOffice.org 3.2 BASIC Guide OpenOffice.org 3.2 BASIC Guide Copyright The contents of this document are subject to the Public Documentation License. You may only use this document if you comply with the terms of the license. See:

More information

Using BasicX Block Data Objects with PlaySound

Using BasicX Block Data Objects with PlaySound Basic Express Application Note Using BasicX Block Data Objects with PlaySound Introduction The BasicX system library includes a procedure called PlaySound, which can be used to generate audio signals from

More information

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice

Lab Sheet 4.doc. Visual Basic. Lab Sheet 4: Non Object-Oriented Programming Practice Visual Basic Lab Sheet 4: Non Object-Oriented Programming Practice This lab sheet builds on the basic programming you have done so far, bringing elements of file handling, data structuring and information

More information

EL-USB-RT API Guide V1.0

EL-USB-RT API Guide V1.0 EL-USB-RT API Guide V1.0 Contents 1 Introduction 2 C++ Sample Dialog Application 3 C++ Sample Observer Pattern Application 4 C# Sample Application 4.1 Capturing USB Device Connect \ Disconnect Events 5

More information

Crystal Reports. Overview. Contents. Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic

Crystal Reports. Overview. Contents. Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic Using Crystal Reports Print Engine calls (API) in Microsoft Visual Basic Overview Contents This document describes how to preview a report using Microsoft (MS) Visual Basic, by making direct API calls

More information

Learning VB.Net. Tutorial 16 Modules

Learning VB.Net. Tutorial 16 Modules Learning VB.Net Tutorial 16 Modules Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

BLM2031 Structured Programming. Zeyneb KURT

BLM2031 Structured Programming. Zeyneb KURT BLM2031 Structured Programming Zeyneb KURT 1 Contact Contact info office : D-219 e-mail zeynebkurt@gmail.com, zeyneb@ce.yildiz.edu.tr When to contact e-mail first, take an appointment What to expect help

More information

5 When a program calls a function, in which type of data structure is memory allocated for the variables in that function?

5 When a program calls a function, in which type of data structure is memory allocated for the variables in that function? 1 The finally block of an exception handler is: -executed when an exception is thrown -always executed when the code leaves any part of the Try statement -always executed -always executed when the code

More information

Functions and Procedures. Functions. Built In Functions. Built In Functions in VB FIT 100 FIT 100

Functions and Procedures. Functions. Built In Functions. Built In Functions in VB FIT 100 FIT 100 Functions Functions and Procedures Similarities: Little mini-programs that are named and include a series of code statements (instructions) to be executed when called. Differences: Functions have a specific

More information

Introduction to the DLL for the USB Interface Board K8061

Introduction to the DLL for the USB Interface Board K8061 K8061.DLL 1 Introduction to the DLL for the USB Interface Board K8061 The K8061 interface board has 8 digital input channels and 8 digital output channels. In addition, there are 8 analogue inputs, 8 analogue

More information

'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid("8b a5-46bb-a6a9-87b4949d1f4c")>

'The following GUID is for the ID of the typelib if this project is exposed to COM <Assembly: Guid(8b a5-46bb-a6a9-87b4949d1f4c)> LAMPIRAN A : LISTING PROGRAM Imports System Imports System.Reflection Imports System.Runtime.InteropServices ' General Information about an assembly is controlled through the following ' set of attributes.

More information

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code Your comments and suggestions on the operation of this software are welcome. Please address them to: ICONICS 100 Foxborough Blvd. Foxborough, MA 02035 Tel: 508-543-8600 Fax: 508-543-1503 E-mail: support@iconics.com

More information

libsegy Programmer s Reference Manual

libsegy Programmer s Reference Manual libsegy Programmer s Reference Manual Nate Gauntt Last Modified: August 11, 2008 Contents 1 Introduction 2 2 Why Use libsegy? 2 3 Building and Installation 3 3.1 Building C-Library Interface.....................

More information

by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc.

by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc. Version 2.0 1998-2002 by NetMedia, Inc. All rights reserved. Basic Express, BasicX, BX-01, BX-24 and BX-35 are trademarks of NetMedia, Inc. Microsoft, Windows and Visual Basic are either registered trademarks

More information

PHPoC. PHPoC vs PHP. Version 1.1. Sollae Systems Co., Ttd. PHPoC Forum: Homepage:

PHPoC. PHPoC vs PHP. Version 1.1. Sollae Systems Co., Ttd. PHPoC Forum:  Homepage: PHPoC PHPoC vs PHP Version 1.1 Sollae Systems Co., Ttd. PHPoC Forum: http://www.phpoc.com Homepage: http://www.eztcp.com Contents 1 Overview...- 3 - Overview...- 3-2 Features of PHPoC (Differences from

More information

Quick Reference Guide

Quick Reference Guide SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD mikroelektronika Development tools - Books - Compilers Quick Reference Quick Reference Guide with EXAMPLES for Pascal language This reference guide

More information

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0

UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 UNIT 1 INTRODUCTION TO VISUAL BASICS 6.0 The VB6 IDE (Integrated Development Environment) is a very simple and fully featured IDE. If you start out programming in VB6 you may end up being too spoiled to

More information

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals

VARIABLES. 1. STRINGS Data with letters and/or characters 2. INTEGERS Numbers without decimals 3. FLOATING POINT NUMBERS Numbers with decimals VARIABLES WHAT IS A VARIABLE? A variable is a storage location in the computer s memory, used for holding information while the program is running. The information that is stored in a variable may change,

More information

Call DLL from Limnor Applications

Call DLL from Limnor Applications Call DLL from Limnor Applications There is a lot of computer software in the format of dynamic link libraries (DLL). DLLCaller performer allows your applications to call DLL functions directly. Here we

More information

VB Socket Visual Basic socket implementation

VB Socket Visual Basic socket implementation 10 VB Socket. 10.1 Visual Basic socket implementation Visual Basic support a WinSock control which allows the connection of hosts over a network. It supports both UDP and TCP. Figure 10. shows a sample

More information

Under the Hood: The Java Virtual Machine. Lecture 23 CS2110 Fall 2008

Under the Hood: The Java Virtual Machine. Lecture 23 CS2110 Fall 2008 Under the Hood: The Java Virtual Machine Lecture 23 CS2110 Fall 2008 Compiling for Different Platforms Program written in some high-level language (C, Fortran, ML,...) Compiled to intermediate form Optimized

More information

Introduction to Computer Use II

Introduction to Computer Use II Winter 2006 (Section M) Topic F: External Files and Databases Using Classes and Objects Friday, March 31 2006 CSE 1530, Winter 2006, Overview (1): Before We Begin Some administrative details Some questions

More information

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x

HELP - VB TIPS. ANIMATE AN IMAGE BOX Insert a module. In this module, create a global variable: Global x HELP - VB TIPS Load an image to an image box from a certain folder If you use this method, won t work on N:\ To load an image to a image control Image1.Picture = LoadPicture("H:\MyVBfolder\stop.gif") Load

More information

Nubotics Device Interface DLL

Nubotics Device Interface DLL Nubotics Device Interface DLL ver-1.1 Generated by Doxygen 1.5.5 Mon Mar 2 17:01:02 2009 Contents Chapter 1 Module Index 1.1 Modules Here is a list of all modules: Initialization Functions.............................??

More information

CHAPTER 1.2 INTRODUCTION TO C++ PROGRAMMING. Dr. Shady Yehia Elmashad

CHAPTER 1.2 INTRODUCTION TO C++ PROGRAMMING. Dr. Shady Yehia Elmashad CHAPTER 1.2 INTRODUCTION TO C++ PROGRAMMING Dr. Shady Yehia Elmashad Outline 1. Introduction to C++ Programming 2. Comment 3. Variables and Constants 4. Basic C++ Data Types 5. Simple Program: Printing

More information

COMP 202 Java in one week

COMP 202 Java in one week COMP 202 Java in one week... Continued CONTENTS: Return to material from previous lecture At-home programming exercises Please Do Ask Questions It's perfectly normal not to understand everything Most of

More information

Procedures. This is a common situation -- there is some functionality that computers should have that the do not the solution is to write a procedure

Procedures. This is a common situation -- there is some functionality that computers should have that the do not the solution is to write a procedure Procedures Procedures are familiar in everyday life -- they are a standard process for achieving some objective. Procedures in computers are similar: They are a standard process of computing some result.

More information

Advanced Language Features. by Christian Schmitz

Advanced Language Features. by Christian Schmitz Advanced Language Features by Christian Schmitz Advanced Language Features Delegate Declare Variant Operator Methods Pair Static Dictionary RBScript Class Interfaces Exception Delegate Delegate Data Type

More information

UniFinger Engine SDK Reference Manual Version 3.0.0

UniFinger Engine SDK Reference Manual Version 3.0.0 UniFinger Engine SDK Reference Manual Version 3.0.0 Copyright (C) 2007 Suprema Inc. Table of Contents Table of Contents... 1 Chapter 1. Introduction... 8 Modules... 8 Products... 8 Licensing... 8 Supported

More information

Learning VB.Net. Tutorial 17 Classes

Learning VB.Net. Tutorial 17 Classes Learning VB.Net Tutorial 17 Classes Hello everyone welcome to vb.net tutorials. These are going to be very basic tutorials about using the language to create simple applications, hope you enjoy it. If

More information

OLE and Server Process support. Overview of OLE support. What is an OLE object? Modified by on 13-Sep Parent page: EnableBasic

OLE and Server Process support. Overview of OLE support. What is an OLE object? Modified by on 13-Sep Parent page: EnableBasic OLE and Server Process support Old Content - visit altium.com/documentation Modified by on 13-Sep-2017 Parent page: EnableBasic Overview of OLE support Object linking and embedding (OLE) is a technology

More information

IS 320 A-C Page 1 Spring 99 Exam 2

IS 320 A-C Page 1 Spring 99 Exam 2 IS 320 A-C Page 1 Please use the space provided on the exam for your answers to the following questions. Note that question values are shown in parentheses. 1. (18) Consider the following user interface

More information

Industrial Strength Add-Ins: Creating Commands in Autodesk Inventor

Industrial Strength Add-Ins: Creating Commands in Autodesk Inventor Industrial Strength Add-Ins: Creating Commands in Autodesk Inventor Brian Ekins Autodesk, Inc. DE211-4 This session focuses on techniques that will help you produce an industrial strength add-in application.

More information

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name:

Las Vegas, Nevada, December 3 6, Kevin Vandecar. Speaker Name: Las Vegas, Nevada, December 3 6, 2002 Speaker Name: Kevin Vandecar Course Title: Introduction to Visual Basic Course ID: CP11-3 Session Overview: Introduction to Visual Basic programming is a beginning

More information

Tutorial 9:Child Window Controls

Tutorial 9:Child Window Controls Tutorial 9:Child Window Controls This win32 tutorial was created and written by Iczelion for MASM32. It was translated for use by HLA High Level Assembly) users by Randall Hyde. All original copyrights

More information

64 Bit Delphi What does it all mean?

64 Bit Delphi What does it all mean? 64 Bit Delphi What does it all mean? 1 David Intersimone David I VP of Developer Relations and Chief Evangelist davidi@embarcadero.com http://blogs.embarcadero.com/davidi Twitter: davidi99 Skype: davidi99

More information