I am a Fine Art student working on a project with the VM110 but have no programming knowledge. I am looking for someone to supply a simple program.
I want to select one of the 8 LEDs at random and hold for a random time (3 to 15 secs), then repeat this forever.
Program to run on Windows 98SE, language is not important. The interface board will be connected to a relay board which controls video cameras. This will be for my degree show and will greatly enhance my art project, hopefully gaining a 1st.
Because you are studying fine arts I may help you a little.
Maybe you start now studying some programming language too…
I added to the K8055 demo software the following procedure:
Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick
Timer3.Enabled = False
' Generate random value between 3000 and 15000.
Dim value1 As Integer = CInt(Int((15000 * Rnd()) + 3000))
Timer3.Interval = value1
ClearDigitalChannel(n)
cbo(n).Checked = False
' Generate random value between 1 and 8.
Dim value As Integer = CInt(Int((8 * Rnd()) + 1))
n = value
SetDigitalChannel(n)
cbo(n).Checked = True
Timer3.Enabled = True
End Sub
Now you get what you wanted by clicking the Random button (click first the Connect button).
There was other modification left in the code: The state of the test buttons is sent to the LEDs and to the digital outputs.
Controlling the digital outputs from the software is not possible.
To enable it, please change in the subroutine Timer1_Tick:
I had not noticed that, but will be useful for setting up the cameras.
Thanks
I will post a link here to a recording of the video output when its complete.
Those are the values I have been fine tuning, taking into account that a random number may be repeated, so my max is 10000 at the monent. When all my cameras are setup I can visually assess.