|
Post by mclarenbabe on Dec 4, 2003 20:24:50 GMT -5
ok, i'm totaly new at vb, but i have experiance in C++. i'm not sure if what i'm trying to do is even possible: I want to have two threads, one to control 4 servo motors (have this part pseudo-working) and the other one to monitor when buttons have been clicked. The buttons control the amplitude of each servo (4 numeric up/downs) and a stop button to end the program. If the above is possible, how do i check/wait for a button to be clicked? Thanks
|
|
pr0x
New Member
Posts: 70
|
Post by pr0x on Dec 4, 2003 20:41:31 GMT -5
well, vb is just a clean version of C# but at a command and design level below C#, if you know C++ you should stick with it.
|
|
pr0x
New Member
Posts: 70
|
Post by pr0x on Dec 4, 2003 20:41:56 GMT -5
in my opinion atleast.
|
|
Tewl
xTeam
C# & VB Developer
Posts: 495
|
Post by Tewl on Dec 4, 2003 22:28:39 GMT -5
vb is not C# vb6 is an event driven language while C# is a total object oriented language ( basically a rip of java ) now vb .net is object oriented but is still nothing like C# even tho C# does have the form designer. Back to the topic at hand are you using vb6 or vb .net in vb6 the only way to create a thread is to use the windows api in vb .net you use the System.Threading namespace, check msdn for information on the namespace. For information on the api i suggest going to allapi.net and getting the api guide and looking up createthread
|
|
pr0x
New Member
Posts: 70
|
Post by pr0x on Dec 4, 2003 22:30:29 GMT -5
well, i just see vb as C# for dummies, lol simpler code, easier to debug, easier to learn.
|
|
DeeEmm
New Member
Industrial Software Engineer / Robot Programmer
Posts: 16
|
Post by DeeEmm on Dec 6, 2003 23:44:04 GMT -5
When you say buttons are these softkeys (ie buttons on a form) or hard wired? if they are hard wired what kind of interface do you have between the buttons and the pc?
You can make a very basic i/o interface through your parallel port to give you inputs from a few buttons, although this is easier on win 95 / 98 platforms than 2k and nt due to security restrictions for i/o access. But there are ways you can get around this.
Either way it is possible to do this with vb but some specifics would be a big help.
DeeEmm.
|
|