![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Visual Basic Discuss Visual Basic programing. |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
| I have just started out in trying to write a visual basic program to toggle the pins on the printer port and use direction buttons to jog 3 axes around. I have managed to read/write the port, use buttons to move a step/direction board i put together (orbit picstep) but i am having some problems with finding a good way of timing, im using sleep function in kernel32 from a different thread but that seems to freeze the whole program rather than just time the pulses. to get to the point i dont know how i would do something so, that when i click a direction button it steps once, but if i click and hold it continuously, say after 1 second it will start to jog at a defined timing? I use visual basic 6 and the files are zipped so anyone can have a look and help me out.. Thanks, Mike |
|
#2
| |||
| |||
| The buttons have mouse up and mouse down properties. So you can start a vbtimer to generate pulses by button_mouse_down and disable the timer with button_mouse_up. For pulse accuracy and frequency: don't expect heaven. I don't read programs of other people, I've trouble enough reading my own. Carel |
|
#3
| ||||
| ||||
| Look at the last link, on the list. Hope it helps. ![]() http://www.boondog.com/tutorials/dlltutor/dlltutor.htm http://www.boondog.com/page1/page1.htm http://www.pages.drexel.edu/~pyo22/mem800WebPage.html http://www.pages.drexel.edu/~st95dwng/Project.html http://www.pages.drexel.edu/~st95dwng/vbcode1.html .
__________________ Free DXF Files - Vectorink.com - myDXF.blogspot.com |
|
#4
| ||||
| ||||
|
__________________ Free DXF Files - Vectorink.com - myDXF.blogspot.com |
|
#6
| ||||
| ||||
| Google tip. Most sites link to other sites that share the same subject, when you find an interesting site (on Google) try this. In the Google search add this before any website address ( link: ), so If I search, ( link:http://www.cnczone.com ) in a google search. It will display every website that connects to cnczone, that is listed with Google. ![]() That should produce better hits. .
__________________ Free DXF Files - Vectorink.com - myDXF.blogspot.com |
|
#7
| ||||
| ||||
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |