Appendix a. command line operation, A.1 introduction, A.2 additional command line parameter options – Campbell Scientific CSM1 Card Storage Module User Manual

Page 45: A.2.1 nocolor, A.2.2 sm232a

Advertising
background image

A-1

Appendix A. Command Line Operation

A.1 Introduction

All options in CSMCOM can be specified as command line parameters when
the program is run. This enables semi-automated reading of the cards, as
CSMCOM can be called from a DOS batch file.

The parameters should be entered in the order that they would be entered when
running CSMCOM. If you wish you can spell out the name of the option
selected in full, as only the first character of the options is read by CSMCOM.

An example is:

csmcom 3 all dfiles comma programs pfiles download prog1 1 q

This is equivalent to:

csmcom 3 a dfiles c p pfiles d prog1 1 q

This executes CSMCOM and communicates on COM3. All data files are
collected and stored in files with a root name of DFILES.DAT in comma
delineated format. All the program files are then collected and stored in a series
of files with a root name PFILES. A new program stored in PROG1.DLD is
then loaded into program area 1 in the card. Finally, CSMCOM quits.

A.2 Additional Command Line Parameter Options

A.2.1 NOCOLOR

If poor contrast is apparent as a result of trying to simulate CSMCOM's screen
colors when running CSMCOM on a computer with an LCD screen, the
contrast may be improved by entering NOCOLOR as the first command line
parameter (see the SM232A option below).

A.2.2 SM232A

If you wish to connect the CSM1 to a computer using an old SM232A storage
module interface, you must enter SM232A as the first parameter of the
command line. CSMCOM then asks you to toggle the switch on the SM232A,
to wake up the module, when you start the program.

If you need to specify both the NOCOLOR and SM232A options append the
two options together, with no spaces in between, as the first command line
parameter, e.g.

csmcom NOCOLORSM232A

Advertising