I know sometimes that when I do change the bit status, to like 4 instead of previous after toggleing the switch, sometimes it doesnt refersh or see it to when the switch is back to normal possible. Wondwer if there is something wrong with dll or linking or xp or LPT1 settings.
I FINALY GOT IT TO WORK FINE! Those 2 DLL files were surely needed.
Thanks so much...I'll continue on this and see what else is needed.
Im not done yet cuz I'll have to tell another VB program that the status of the pin10 has changed somehow during its run, so 2 programs will run simultaneously.
I FINALY GOT IT TO WORK FINE! Those 2 DLL files were surely needed.
Thanks so much...I'll continue on this and see what else is needed.
Im not done yet cuz I'll have to tell another VB program that the status of the pin10 has changed somehow during its run, so 2 programs will run simultaneously.
How do I make it so that at Form Load it will detect the changes, not only during click button but continuously during form load. Not just once? a While loop?
How do I make it so that at Form Load it will detect the changes, not only during click button but continuously during form load. Not just once? a While loop?
How or why use a timer when that may be tricky/weird when there are functions that can be made already from Do While or For Next. Although Im not sure how to put it. Cuz Do while Pin10 = 64 ..Print High..
what if its not 64? an else?
How or why use a timer when that may be tricky/weird when there are functions that can be made already from Do While or For Next. Although Im not sure how to put it. Cuz Do while Pin10 = 64 ..Print High..
what if its not 64? an else?
Actually Also I now need a timer(from VB I guess) that every second it will than check for the status. Hope thats easy to implement.
The source code for the main code I don thave yet, cuz my task is still to get the lil program ready and going before I interact it with the main one.
I think it will be 2 forms, one main large one and other small one, the one Im working on now- that check the stauts and it will tell it that it did to the main form or program. In .exe itl be two windows I think when running.
I wonder how I can alternate the colour in the lbl text every time a status is shown or better yet make it blink.
Actually Also I now need a timer(from VB I guess) that every second it will than check for the status. Hope thats easy to implement.
The source code for the main code I don thave yet, cuz my task is still to get the lil program ready and going before I interact it with the main one.
I think it will be 2 forms, one main large one and other small one, the one Im working on now- that check the stauts and it will tell it that it did to the main form or program. In .exe itl be two windows I think when running.
I wonder how I can alternate the colour in the lbl text every time a status is shown or better yet make it blink.
hi,
In VB, from the components images, select a Timer, place it on the Form and fill out the properties. The interval in mSecs, enabled etc.....
Then call the Read subr from within the Timer1 subr.
You can use a 'Shape' component to change colour depending upon the state of pin #10, by changing the 'fill' colour.