K8055 VB2010 help with detecting digital outputs at start

Hi im having some problem trying to figure the VB2010 code out for detecting the digital outputs on or off at the start.

What i have is “OvalShape” in VB, i can get these to indicate the digital outputs on or off when i switch the outputs on or off by using the .visible = true line when i press the buttons, but what i want is when i press the “connect” button to connect the card to the computer or on “load” of the application i want to be able to display the conditions of the digital outputs as not all are switched off when i close the application down.

If i need to change the “OvalShape” what i use to show the Digital Outputs thats ok.

Cheers in advance.

There is no “readback” feature in the DLL to get the status of the K8055 card outputs. The K8055D.DLL just remembers the status as long as loaded by your application. If you close and reopen your application, the state of the card output is unknown.
The only way to keep track of the status of the card outputs is to store the status by your application software.

ok thanks for your help much appreciated i spent hours trying to figure it out.

So if i create a data file to store the conditions on close of application and then load from the file when i connect that should work.

Back to the drawing board, at least i know what to do now.

Thanks for the info.