Forum Index > How to change Comm.Settings?

By: Guest Posted on: Aug 21 2010 at 01:01:08 AM
I want to be able to read in the settings from an ini file. This is what I have and it gives me an error "Property value is not valid"

Dim Bits_Per_Second As String
Dim Data_Bits As String
Dim Parity As String
Dim Stop_Bits As String

tmp = Bits_Per_Second & "," & Data_Bits & "," & Parity & "," & Stop_Bits
Comm1.Settings = tmp

Please help!


By: SUpport Posted on: Aug 21 2010 at 11:26:42 AM
The settings need to be in the correct order. You have parity in the wrong place.

Speed, Parity, DataBits, StopBits (The parity comes before the databits)

Try this.

tmp = Bits_Per_Second & "," & Parity & "," & Data_Bits & "," & Stop_Bits

You also don't show us what the actual values are.

By: Guest Posted on: Sep 24 2010 at 11:12:50 PM
I am receiving this same error with the unregistered demo version. I Have tried assigning Comm1.Settings="57000,N,8,1".
I have tried same with upper/lower case "N" and spaces after the commas.
I have tried temp$="57000,N,8,1" and then "Comm1.Settings=temp$"
Each time I get same error. I am using VB6 SP 6.

By: Support Posted on: Sep 25 2010 at 10:37:41 PM
57000 is not a standard baud rate.

57600 is a standard baud rate.

Here's the most common baud rates.

110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400 56000, 57600, 115200, 128000, 256000, 512000, 768000, 230400, 460800

you'll see that 57000 is not in that list. What hardware do you have that uses 57000 ? If you're sure that you need 57000 then send us an email and we'll send you an update to force it in there - but it'll still crash if your hardware won't accept that specific speed.

support at minimrp.com

By: Guest Posted on: Sep 26 2010 at 08:26:27 PM
Oops. I meant 57600 - that is what I was using. However I found my temp$=" 57600,n,8,1" with a leading space before the 57600 - that was causing me problems.

 

Reply - add comment to this topic
You may enter letters, numbers and standard punctuation only. HTML and other scripts/tags will be rejected
  Topic:- How to change Comm.Settings?

Your Name


 

easyDnc v4.0
Download your Free Fully Functional Trial version
www.easydnc.com


Forum scripts and databases - Copyright (c) 2009 IES