Hi is there any way to start the K8055 instantly without pressing the Connect button and checking the SK5 and SK6? Like Running the program and the device is instantly Connected already. Help me please thanks a lot. I am using C# to do the K8055 program.
[quote]Hi is there any way to start the K8055 instantly without pressing the Connect button and checking the SK5 and SK6? Like Running the program and the device is instantly Connected already.[/quote]Yes, this is possible.
In the C# double click the form and add the following code to the Form1_Load event handler:
private void Form1_Load(object sender, EventArgs e)
{
OpenDevice(0);
}
In this example the card address is 0. (The jumpers SK5 and SK6 are set.)
I tried doing it but it still doesn’t work
edit: hmm sorry it works. I tried it on the sample program. I thought it does not work because I am creating a new program. Anyway thanks a lot for the answer it’s a great help.
erm ok… I have another question. I am currently doing a project which only use the digital inputs to toggle the button. So because I have made some windows form and by pressing the digital inputs to go to the next step. So is it possible to reuse the digital inputs again and again? For e.g. I press input 1 in the windows form to proceed to another windows form, and pressing the same input 1 again to go to another windows form.
Much help is needed. Thanks a lot. I’ll try to elaborate again if it is not clear.
[quote=“ultimfire”]erm ok… I have another question. I am currently doing a project which only use the digital inputs to toggle the button. So because I have made some windows form and by pressing the digital inputs to go to the next step. So is it possible to reuse the digital inputs again and again? For e.g. I press input 1 in the windows form to proceed to another windows form, and pressing the same input 1 again to go to another windows form.
Much help is needed. Thanks a lot. I’ll try to elaborate again if it is not clear.[/quote]
I wouldn’t think that would be too hard…
*1 add a timer to each of your forms
*2 each tick of the timer (which could be every quarter of a second for example) have your code look at the digital input (aka the button) to check if it is pressed
*3 if the button is pressed then show the next form and hide/close the current one.
C