Blame | Last modification | View Log | Download
VERSION 5.00Begin VB.Form inpout32Caption = "Form1"ClientHeight = 4710ClientLeft = 915ClientTop = 1410ClientWidth = 4770LinkTopic = "Form1"PaletteMode = 1 'UseZOrderScaleHeight = 4710ScaleWidth = 4770Begin VB.CheckBox Check2Caption = "Check2"Height = 375Left = 2640Style = 1 'GraphicalTabIndex = 22Top = 2880Width = 135EndBegin VB.CheckBox Check1Caption = "Check1"Height = 375Left = 2520Style = 1 'GraphicalTabIndex = 21Top = 2880Width = 135EndBegin VB.CommandButton Command11Caption = "Command11"Height = 195Left = 4320TabIndex = 20Top = 2280Width = 135EndBegin VB.CommandButton Command10Caption = "Command10"Height = 195Left = 4080TabIndex = 19Top = 2280Width = 135EndBegin VB.CommandButton Command9Caption = "Command9"Height = 195Left = 3840TabIndex = 18Top = 2280Width = 135EndBegin VB.CommandButton Command8Caption = "Command8"Height = 195Left = 3600TabIndex = 17Top = 2280Width = 135EndBegin VB.CommandButton Command7Caption = "Command7"Height = 195Left = 3240TabIndex = 16Top = 2280Width = 135EndBegin VB.CommandButton Command6Caption = "Command6"Height = 195Left = 3000TabIndex = 15Top = 2280Width = 135EndBegin VB.CommandButton Command5Caption = "Command5"Height = 195Left = 2760TabIndex = 14Top = 2280Width = 135EndBegin VB.CommandButton Command4Caption = "Command4"Height = 195Left = 2520TabIndex = 13Top = 2280Width = 135EndBegin VB.Timer Timer3Left = 3120Top = 3960EndBegin VB.TextBox Text13Height = 285Left = 3240TabIndex = 8Text = "Text5"Top = 1680Width = 495EndBegin VB.TextBox Text12Height = 285Left = 3240TabIndex = 7Text = "Text4"Top = 1200Width = 495EndBegin VB.TextBox Text10Height = 285Left = 3240TabIndex = 6Text = "Text3"Top = 240Width = 495EndBegin VB.TextBox Text11Height = 285Left = 3240TabIndex = 5Text = "Text2"Top = 720Width = 495EndBegin VB.CommandButton Command3Caption = "Command3"Height = 615Left = 240TabIndex = 4Top = 3840Width = 2055EndBegin VB.Timer Timer2Left = 1680Top = 120EndBegin VB.CommandButton Command2Caption = "Command2"Height = 615Left = 240TabIndex = 3Top = 2760Width = 2055EndBegin VB.CommandButton Command1Caption = "Command1"Height = 615Left = 240TabIndex = 2Top = 1680Width = 2055EndBegin VB.Timer Timer1Left = 2400Top = 3960EndBegin VB.TextBox Text1Height = 372Left = 960TabIndex = 1Text = "Text1"Top = 120Width = 615EndBegin VB.CommandButton cmdWriteToPortCaption = "Write to Port"Height = 732Left = 240TabIndex = 0Top = 720Width = 1932EndBegin VB.Label Label13Caption = "13"Height = 375Left = 3840TabIndex = 12Top = 1680Width = 375EndBegin VB.Label Label3Caption = "12"Height = 375Left = 3840TabIndex = 11Top = 1200Width = 375EndBegin VB.Label Label2Caption = "10"Height = 375Left = 3840TabIndex = 10Top = 240Width = 375EndBegin VB.Label Label1Caption = "11"Height = 255Left = 3840TabIndex = 9Top = 720Width = 255EndEndAttribute VB_Name = "inpout32"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseOption ExplicitDim Value As IntegerDim PortAddress As IntegerDim stav As BooleanDim promena As BytePrivate Sub cmdWriteToPort_Click()'Write to a port.out Value'Read back and display the result.Value = Value + 1If Value = 255 Then Value = 0End SubPrivate Sub Command1_Click()out 1Timer1.Enabled = TrueEnd SubPrivate Sub Command10_Click()out &H40End SubPrivate Sub Command11_Click()out &H80End SubPrivate Sub Command2_Click()out &HFFTimer1.Enabled = TrueEnd SubPrivate Sub Command3_Click()out 3Timer1.Enabled = TrueEnd SubPrivate Sub Command4_Click()out &H1End SubPrivate Sub Command5_Click()out &H2End SubPrivate Sub Command6_Click()out &H4End SubPrivate Sub Command7_Click()out &H8End SubPrivate Sub Command8_Click()out &H10End SubPrivate Sub Command9_Click()out &H20End SubPrivate Sub Form_Load()Timer1.Interval = 1000Timer2.Interval = 10Timer3.Interval = 100End SubPrivate Sub Check1_Click()If Check1.Value = 1 Thenpromena = promena Or &H1Elsepromena = promena And &HFEEnd Ifout promenaEnd SubPrivate Sub Check2_Click()If Check2.Value = 1 Thenpromena = promena Or &H2Elsepromena = promena And &HFDEnd Ifout promenaEnd SubPrivate Sub Timer1_Timer()out 0Timer1.Enabled = FalseEnd SubPrivate Sub Timer2_Timer()'toto se provede kazdych 10msText1.Text = inpText10.Text = inp10Text11.Text = inp11Text12.Text = inp12Text13.Text = inp13If Not inp10 ThenCommand2_ClickEnd IfEnd Sub'Private Sub Timer3_Timer()'If stav Then'out 1'stav = False'Else'out 0'stav = True'End If'End Sub