Hello William,
Just checked my program and I am passing a parameter, something like this
Do case
case lcPort = 'COM1'
lnPort = 1
case lcPort = 'COM2'
lnPort = 2
case lcPort = 'COM3'
lnPort = 3
case lcPort = 'COM4'
lnPort = 4
endcase
lnRc = w8250_init(lnPortID, lnPort, lnBaud, lnDataBits, lnParity,
lnStopBits, lnRXBuffSize, lnTXBuffSize)
HTH,
Kent
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of william tormey
Sent: Thursday, December 22, 2011 9:01 AM
To: [email protected]
Subject: Re: Parameter passing & Choking M$ found new hardware Msg
Thanks Pieter:
The CFHDR.H IS INCLUDED AS YOU SUGGEST AND COM9 AND COM ANY VALUE WORK AS
SPECIFIED IN THE LINE:
nopen1= w8250_init(nPortID,com9,9600,7,parity_even,1,1024,128)
as suggested by Commtools.
I want to parameterize the com9 entry in that line so that I can pass
whatever com number the FTDI USB to Rs232 DRIVER selects to use when it is
installed.
That will make things easier for our users.
Our system is a state engine that drives the logic for batching plants, such
as are used for mixing animal feeds. We do Process Control and Integrated
SCADA.
If you are in Process control or anything near. I would be very happy to
cooperate.
regards
william
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/560784A8FE8B46AEAC61DF8B457841E4@LaptopW7
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.