Urgent:recupération devenement en VB.NET

Résolu/Fermé
abdoberg - 31 mars 2011 à 10:53
 abdoberg - 31 mars 2011 à 17:41
Bonjour,

jé des problémes de debogage j'arrive pas à lancer ma form jé un erreur sur ce ligne de code "appFunction = App.CAPL.GetFunction("Send_CAN1_Maint")" je veux quelqu'un qui m'aide à resoudre mon blem

Public Class Form1
Dim App As CANalyzer.Application
Dim appFunction As CANalyzer.CAPLFunction
Dim Signal1 As CANalyzer.Signal
Dim appFunctionResult As Byte
Public Sub gCanMeasurement_OnInit()
'assign CAPL function
MsgBox("evenement ok")

End Sub
Private Sub start_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles start.Click
If App Is Nothing Then
App = CreateObject("CANalyzer.Application")
End If
App.Open("C:\Documents and Settings\PFE\Mes documents\Simulateur_DU_CAN_final\Configuration\DU_Test.cfg")
App.CAPL.Compile()


App.Measurement.Start()
'gCanMeasurement.Start()
Me.start.Enabled = False
'quit the CANalyzer application
MsgBox("you are started Measurement")
End Sub

Private Sub stope_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles stope.Click
If App.Measurement.Running Then
'stop the CANalyzer measurement
App.Measurement.Stop()
Me.start.Enabled = True
End If
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
appFunction = App.CAPL.GetFunction("Send_CAN1_Maint")
appFunctionResult = appFunction.Call(T1.Text)

''pour data recupération
Signal1 = App.Bus.GetSignal(1, "DU1_All_BITEResult_CAN1", "DU_Failure")
If (Signal1.Value) Then
T2.Text = " Not ok"
Else
T2.Text = " ok"
End If
End Sub
end class

Y-a-t'il quelque chose qui cloche de bien visible?
Merci pour votre aide

1 réponse

TOUCK0 Messages postés 266 Date d'inscription lundi 28 juin 2010 Statut Membre Dernière intervention 18 novembre 2014 38
31 mars 2011 à 10:55
Tu as essayé de coder en langage sms pour voir ?
0
nn en VB. NET mais ca marche pas
0