SDM-CVO4 4-Channel Current/Voltage Output Module
16
8.3 Data Logger Programming
Short Cut
can be used for data logger programming code.
If your data acquisition requirements are simple, you can probably create and
maintain a data logger program exclusively by using
Short Cut
. If your data
acquisition needs are more complex, the files that
Short Cut
creates are a great
source for programming code to start a new program or add to an existing
custom program.
Short Cut
cannot edit programs after they are imported and edited
in
CRBasic Editor
.
A
Short Cut
tutorial is available in Section
(p. 3)
. If you wish to
import
Short Cut
code into
CRBasic Editor
to create or add to a customized
program, follow the procedure in Appendix
(p. A-1)
. Programming basics for CRBasic data loggers are
provided in the following sections. Complete program examples for select
CRBasic data loggers can be found in Appendix
(p. B-1)
.
Programming basics and programming examples for Edlog data loggers are
provided at
www.campbellsci.com/old-manuals
The
SDMCVO4()
CRBasic instruction controls the device. Other aspects of
the CRBasic program depends on the application. Refer to Section
(p. 14)
, for more information.
8.3.1 CRBasic SDMCVO4() Instruction
This instruction controls the SDM-CVO4, which outputs a voltage or a current.
Internal jumpers are used to set the mode for the device, but the jumpers can be
overridden with the
Mode
parameter in this instruction.
Syntax
SDMCVO4
(CVO4Source, CVO4Reps, SDMAddress, CVO4Mode)
CVO4Source
An array with up to four values that holds the voltages
(millivolts) or currents (microamps) that will be output by the
channels.
CVO4Reps
The number of channels to set to the defined voltage or
current. One
SDMCVO4()
instruction can control multiple
SDM-CVO4 devices by assigning it consecutive addresses and
setting this parameter to the total number of channels of all
devices. For example, to set all four channels on two devices,
enter 8 for this parameter.
Enter 0 for this parameter to turn off power to the device.
SDMAddress
Valid SDM addresses are 0 through 14. Address 15 is reserved
for the
SDMTrigger()
instruction.
CRBasic data loggers use base 10 when addressing SDM devices.
NOTE
NOTE