Skip to main content
Submitted by khewes on Fri, 12/16/2016 - 12:44

Hello all,

I am not having success with my windows form application.
i am trying to send commands following the setup in "hello" tutorial and the "2 axis keyboard and mouse based control" example
so my code looks something like:
Public Class Form1

WithEvents g As New Galil.Galil

Private Sub Form1_load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

g.address = "10.50.200.231"
Me.Text = g.connection
End Sub
'when button1 is clicked perform galil command
Private Sub button1_Click() Handles Button1.Click
'SET INPUT 1 HIGH ALL OTHER INPUTS LOW
g.command("SH X")
g.command("PR 1000")
g.command("BG X")

End Sub
end class

But i am failing to see results. i am connected to the galil controller.
i am not a good programmer, and the task at hand is time critical so any help would be very much appreciated
thank you, enjoy your weekend everyone!

Comments 2

khewes on 12/16/2016 - 12:51

this is a visual basic windows form, and ignore the random comment in the code above please

AndrewS on 12/20/2016 - 10:50

Hi khewes,
Can you please send an email to support@galil.com and include "Please forward to Andrew" at the top, or give a call and ask for me.
I don't see anything initially that jumps out at me, but if this is time critical, it would be best to not be on the forum.

One thing to check is that the routine is executing, which you can add some message to print out. Assuming that works, the next piece is to see if the commands are being sent to the controller.

Regards,
Andrew