how to send more than one date in a time??
-
hi all.. i have a problem.. how can i send several data in one time using mscomm1.. can someone please help me.. thanks..
areon25
Send several data? You can only send one piece of information at a time. You'll have to explain what you mean by "send several data in one time".
Dave Kreskowiak Microsoft MVP - Visual Basic
-
Send several data? You can only send one piece of information at a time. You'll have to explain what you mean by "send several data in one time".
Dave Kreskowiak Microsoft MVP - Visual Basic
hi all.. thanks dave.. ok.. i'll explain what i whant to do.. actually, i want to make a project using vb. i want to make some interface in vb to my hardware using MSCOMM.. actually, about the hardware, i want to control motor.. but for this moment i want to learn simple application, for example i want to turn on LED( the hardware ) from the interface(VB). for your information.. i use PIC16F877A and microC software(from microelektronika) to program the PIC16F877A.. and i use rs232 protocol for this moment i want to send data from vb using MSCOMM to turn on the LED.. for example, in my vb there are two command button, button1 and button2.. button1 is for turn on the LED1 and button2 is to turn on the LED2.. does someone know how to do it.. can someone please help me..
areon25
-
hi all.. thanks dave.. ok.. i'll explain what i whant to do.. actually, i want to make a project using vb. i want to make some interface in vb to my hardware using MSCOMM.. actually, about the hardware, i want to control motor.. but for this moment i want to learn simple application, for example i want to turn on LED( the hardware ) from the interface(VB). for your information.. i use PIC16F877A and microC software(from microelektronika) to program the PIC16F877A.. and i use rs232 protocol for this moment i want to send data from vb using MSCOMM to turn on the LED.. for example, in my vb there are two command button, button1 and button2.. button1 is for turn on the LED1 and button2 is to turn on the LED2.. does someone know how to do it.. can someone please help me..
areon25
First, which version of VB are you using?? VB6, VB.NET 2002, 2003, or 2005? Now, those are two entirely seperate projects that don't have anything to do with each other... The first one, programming a controller over serial, is easy enough to do. All you have to do is setup the COMM port with the correct parameters and start sending and receiving data, just like you type it in HyperTerminal. The exact procedure for which is dependant on your controller requirements. You can find example projects all over the 'Net, just Google for "VB Serial Comm". The LED one isn't so easy. The serial port isn't normally used for this because of its low pin count and the programmability of the port only gives you a brief "ON" for the LED, unless you continuously send data to the port. The parallel port is customarilly used for LEDs, switches, and stepper motors. Again, just Google for "VB control LED" and you'll find a few projects, but on the parallel port.
Dave Kreskowiak Microsoft MVP - Visual Basic
-
First, which version of VB are you using?? VB6, VB.NET 2002, 2003, or 2005? Now, those are two entirely seperate projects that don't have anything to do with each other... The first one, programming a controller over serial, is easy enough to do. All you have to do is setup the COMM port with the correct parameters and start sending and receiving data, just like you type it in HyperTerminal. The exact procedure for which is dependant on your controller requirements. You can find example projects all over the 'Net, just Google for "VB Serial Comm". The LED one isn't so easy. The serial port isn't normally used for this because of its low pin count and the programmability of the port only gives you a brief "ON" for the LED, unless you continuously send data to the port. The parallel port is customarilly used for LEDs, switches, and stepper motors. Again, just Google for "VB control LED" and you'll find a few projects, but on the parallel port.
Dave Kreskowiak Microsoft MVP - Visual Basic