har
Jan 21 2008, 6:45 AM
can anyone help me in building an VB interface with coding and tutorials.
basically how does the communication between the PC and the microcontroller takes plce through VB interface.
basically how does the communication between the PC and the microcontroller takes plce through VB interface.
Ajay
Jan 21 2008, 10:10 AM
all you need to do is add a MSCOMM component in your project. this has been explained in forum many times i think. Please search it once. you might find it.. for sure..
if not we are all here
if not we are all here

har
Jan 22 2008, 8:35 AM
thanks once again, im not yet clear because im not thorough with Visual Basic.i would like to explain my doubt once again by taking the example of the PC remote project:
even in this project there is a form. does this form takes part in the interaction between the microcontroller and PC.
in VOICE INTERACTIVE COLLEGE AUTOMATION SYSTEM PUBLISHED HERE project im intended to enquire attendance of students from phone. so what is the role of VB here.
please kindly help
even in this project there is a form. does this form takes part in the interaction between the microcontroller and PC.
in VOICE INTERACTIVE COLLEGE AUTOMATION SYSTEM PUBLISHED HERE project im intended to enquire attendance of students from phone. so what is the role of VB here.
please kindly help
Ajay
Jan 22 2008, 10:44 AM
As i said you need to add MSCOMM component in your project..
In Visual Basic 6.0: right click the toolbox and select "Components". Check "Microsoft Comm Control 6.0" and click "OK". Place a MSComm control (it looks like a phone) on your form (it will be invisible at runtime). You can name the control if you like, the default name is MSComm1.
For setting up MSComm1 component..
To read from serial port...
and to write to serial port..
I hope many things are clear now
In Visual Basic 6.0: right click the toolbox and select "Components". Check "Microsoft Comm Control 6.0" and click "OK". Place a MSComm control (it looks like a phone) on your form (it will be invisible at runtime). You can name the control if you like, the default name is MSComm1.
For setting up MSComm1 component..
CODE:
MSComm1.CommPort = COM1 'Define COM port available on PC
MSComm1.Settings = "9600, N, 8, 1" '9600 Baudrate, No Parity, 8 bits data, 1 Stopbit.
MSComm1.InputLen = 1 'Read 1 character/byte whenever Input property is used.
MSComm1.InputMode = comInputModeBinary 'Input will retrieve data in array of bytes.
MSComm1.PortOpen = True 'Open Serial Port COM1.
MSComm1.Settings = "9600, N, 8, 1" '9600 Baudrate, No Parity, 8 bits data, 1 Stopbit.
MSComm1.InputLen = 1 'Read 1 character/byte whenever Input property is used.
MSComm1.InputMode = comInputModeBinary 'Input will retrieve data in array of bytes.
MSComm1.PortOpen = True 'Open Serial Port COM1.
To read from serial port...
CODE:
If MSComm1.InBufferCount Then
read_value = MSComm1.Input 'read_value will have whatever is sent to serial port of PC
read_value = MSComm1.Input 'read_value will have whatever is sent to serial port of PC
and to write to serial port..
CODE:
MSComm1.Output = something_to_send
I hope many things are clear now

Ritesh
Jan 24 2008, 1:46 AM
ok
if i want to read the com port only when there is a new data received
by using interrupt
so how can we do that
abbas1707
Jan 24 2008, 3:19 AM
Ritesh
for this u can make use of onComm event.
go to properties of mscomm , set RThreshold to 1.
then use code
Private Sub MSComm1_OnComm()
If (MSComm1.CommEvent = comEvReceive) Then ' if something received
Text3.Text = MSComm1.Input 'save it to text3
End If
End Sub
whenever new data is arrived , onComm event will be generated(like interrupt) and that data will be saved to text3.
for this u can make use of onComm event.
go to properties of mscomm , set RThreshold to 1.
then use code
CODE:
Private Sub MSComm1_OnComm()
If (MSComm1.CommEvent = comEvReceive) Then ' if something received
Text3.Text = MSComm1.Input 'save it to text3
End If
End Sub
whenever new data is arrived , onComm event will be generated(like interrupt) and that data will be saved to text3.
Ritesh
Jan 24 2008, 11:33 PM
THANKS
ANY NEW IDEA TO SAME
BUT FOR DOT NET 2005
ANY NEW IDEA TO SAME
BUT FOR DOT NET 2005
Ajay
Jan 25 2008, 12:06 AM
.net is tough.. never used it 

cenadius
Jun 28 2008, 4:47 AM
can i know where to download the visual basic?what is the programming language use in visual basic?
pdi33
Jun 28 2008, 6:40 AM
hi cenadius,
visual basic itself is the programming language
.
It can be installed as an integral part of Microsoft Visual studio or can be installed seperately. It does not have a freeware or shareware version so u have to buy it from microsoft.
visual basic itself is the programming language
.It can be installed as an integral part of Microsoft Visual studio or can be installed seperately. It does not have a freeware or shareware version so u have to buy it from microsoft.
pdi33
Jun 28 2008, 6:43 AM
check this link for any ideas about finding it otherwise
.
http://www.8051projects.net/forum-t10202.html
.http://www.8051projects.net/forum-t10202.html
sashijoseph
Jun 28 2008, 10:23 AM
Express editions for VB2008 are available for free..
sashijoseph
Jun 28 2008, 10:23 AM
Express editions for VB2008 are available for free.. http://www.microsoft.com/express/download/
At last MS is offering sth for free.
At last MS is offering sth for free.
cenadius
Jun 28 2008, 8:22 PM
ok,thanks all,so the programming use in visual basic is c language?
sashijoseph
Jun 29 2008, 9:54 PM
Nope... as the name Visual Basic suggests it's closer to the Basic programming language.Nothing to do with C.
bacha
Oct 31 2008, 5:53 AM
i bought a buk on VB6, its bu the name
Mastering Visual Basic 6 by Evangelos Petroutsos
it has nothng abt MScomm...can any one plz let me kno of som gud VB buk for starters like me??
i need to make a simple prog tht can read and write from the comm port...
i need a gud buk tht can help me in learning VB and control for the MScomm ports too.
AJAY ur tutorial is very helpful..ive learned alot from it
but still i need to get extensive knowledge abt VB and its tools like MScomm
Mastering Visual Basic 6 by Evangelos Petroutsos
it has nothng abt MScomm...can any one plz let me kno of som gud VB buk for starters like me??
i need to make a simple prog tht can read and write from the comm port...
i need a gud buk tht can help me in learning VB and control for the MScomm ports too.
AJAY ur tutorial is very helpful..ive learned alot from it
but still i need to get extensive knowledge abt VB and its tools like MScomm
SANATH EMBEDDED
Oct 31 2008, 6:38 AM
Hi bacha...
Check out this RS link for Visual Basic for Electronics Engineering Applications and has also got complete Source code files.:

Check out this RS link for Visual Basic for Electronics Engineering Applications and has also got complete Source code files.:
http://rapidshare.com/files/33463115/VBEE.rar

bacha
Nov 2 2008, 4:21 AM
thnx alot Mr Sanath Embedded.!dance
ill go thru this book.i hope it helps me out:D
ill go thru this book.i hope it helps me out:D
Ajay
Nov 2 2008, 10:00 AM
[Thread moved to General Help Discussion Forum]