.Net v2 Serial Port Write method
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method
.Net v2 Serial Port Write method .Net v2 Serial Port Write method
.Net v2 Serial Port Write method
Go Back  Xtreme Visual Basic Talk > > > .Net v2 Serial Port Write method


Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2006, 12:59 AM
SteveNutt SteveNutt is offline
Freshman
 
Join Date: Jun 2005
Location: Thailand
Posts: 35
Default .Net v2 Serial Port Write method


When using MSComm, I could do the following....

Dim objComm As New MSCommLib.MSComm
Dim byteAck As Byte() = {&H6}
objComm.Output = byteAck

I now want to accomplish the same using the serial port control in .Net v2 and the Write method is....

Write(Buffer() as Byte, offset as Integer, count as Integer)

I've gone for objSerialPort.Write(byteAck, 0, byteAck.Length) but do not really understand what is going on.

Am I close ?
Reply With Quote
  #2  
Old 09-06-2006, 06:11 AM
shaul_ahuva.Net v2 Serial Port Write method shaul_ahuva is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Jul 2003
Location: Camp Hill, PA
Posts: 1,992
Default

That would be correct - you need to provide a byte array, the offset into the array from which to start writing from and the number of bytes to write.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method .Net v2 Serial Port Write method
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method .Net v2 Serial Port Write method
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method
 
.Net v2 Serial Port Write method
.Net v2 Serial Port Write method
 
-->