ADwin-Gold II
, Manual February 2013
47
Storage-16 Add-on
Storage-16 Add-on
ADwin
12 Storage-16 Add-on
The add-on
Gold II-Storage-16
contains a memory card with 16GiB storage
volume and a battery-buffered real-time clock.
Memory card
You can access the memory card from
ADbasic
or
TiCoBasic
. A simultaneous
access from both
ADbasic
and
TiCoBasic
is not allowed.
The memory card must always be initialized in
ADbasic
, even if all other
accesses are done in
TiCoBasic
.
Initialization must be run with low priority since it takes some seconds; if it were
a process with high priority, the PC interrupts the communication after a time
(time-out).
Data may be read or written. Data is always stored in blocks of 128 values on
the memory card. As with initialization, reading and writing of data should be
done in low priority.
The data transfer rate of a read / write process increases with the amount of
transferred data blocks. In any case the optimum data rate is reached with
erased memory card (after running
Media_Erase
).
Real-time clock
The add-on provides a real-time clock which can be used to assign a specified
time to measurements. With simple instructions, date and time are set and
read out.
The time must be specified by a valid date and time of day; it has a resolution
of one second. Leap years are considered.
The clock is battery-backed (type CR1632) and can remain up to 2 years with-
out any external power supply i.e. when the system is turned off. To replace the
buffer battery send
ADwin-Gold II
to the address on the inner side of the cover
page.
Programming in
ADbasic
und
TiCoBasic
The memory card is easily programmed with the following instructions. Please
note that some instructions are only available in
ADbasic
but not in
TiCoBasic
:
The instructions are described starting from
or in the online help.
Area
Instructions
Available
in
Initialize memory card
Media_Init
ADbasic
Delete all data from memory card
Media_Erase
ADbasic
Read data
Media_Read
ADbasic
TiCoBasic
Write data
Media_Write
ADbasic
TiCoBasic
Read real-time clock
RTC_Get
ADbasic
TiCoBasic
Set real-time clock
RTC_Set
ADbasic