Discussion in "General help Guidance and Discussion" started by    har    Jan 21, 2008.
Fri Jan 23 2009, 01:47 am
#21
MSCOMM is not for download, its available with Visual Basic as component. All MSCOMM control dlls comes with Visual basic. I use Visual Basic 6.0 for development (old one). see if you can find it over internet. its fairly easy to use.
Fri Jan 23 2009, 07:01 pm
#22
Hello sir! i'm new here,but i found this forum helpful. i'm in a project of reading temperature from DS1820 using VB6 but i cant make it to read the temperature. i used the mscomm1.input to read the temperature,but it doesn't work. is there a need to include in my VB program the programming of the DS1820 sensor? after the initializations of the mscomm1 properties, my simple program is as follows:

private sub mscomm1_oncomm()
if mscomm1.commevent=comereceive then
text1.text=mscomm1.input
end if
end sub

can you give a better program for this? will i still need to program the ds1820? (i.e. conversion from bits to character,reading from scratchpad,etc.)

thanks in advance

Sat Jan 24 2009, 02:07 am
#23
carina, i have already replied to your thread, please continue your discussion there.
Sat Feb 13 2010, 01:29 am
#24
Greetings !!!

Thanks for all of your advises. Im doing a project, one of its part is interfacing vb6 and 8051.
i ve interface lcd, keypad with 8051 and successfully created the communication with vb6.
im receiving data from rs232, But im getting one problem, that is when i send the string to controller through vb6, some of the characters are received and shown on the lcd while some get missed.

im using following code for sending.

for setting terminal in vb6

MSComm1.CommPort = 3
MSComm1.Settings = "2400,n,8,1"
MSComm1.RThreshold = 1
MSComm1.PortOpen = True
MSComm1.InputLen = 0

now while sending, im using this command

Mscomm1.Output="Duplicate Match"

LCD shows only some of the characters like Dup ach

What can be the error ?

When i used Windows hyper terminal it reads and sends data correctly, but im getting this problem in vb6
Plz Help !
Mon Feb 15 2010, 03:43 pm
#25
possible problem would be in hardware code assuming VB6 software is sending perfectly, post your embedded program here for checking.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Williamjaf
Tue Apr 16 2024, 12:25 pm
best_yyPa
Tue Apr 16 2024, 09:42 am
ErnestoExpop
Tue Apr 16 2024, 02:57 am
Jamesclepe
Mon Apr 15 2024, 11:10 am
Aliciaelora
Mon Apr 15 2024, 07:59 am
btaletvpcu
Mon Apr 15 2024, 04:36 am
UbvpwcTib
Mon Apr 15 2024, 03:13 am
AmyJow
Sun Apr 14 2024, 11:54 pm