Chapter 5
Chapter 5
Chapter 5
Chapter 5
Chapter 5
Software
25
2
. Create a new Parameter Table.
The software driver’s job-oriented algorithm gives your program the
capability of addressing several Parameter Tables using the same
function call or group of function calls in one program. It should be
noted, however, that the driver can only address one Parameter Table
at a time. The driver executes the jobs according to the specified
Parameter Table. For convenient programming, we can define an
individual Parameter Table in advance for each of frequently called
functions without troublesome table modifications.
Example (C language):
extern pcl813(int, unsigned int *);
unsigned param1[60];/* Parameter Table 1
*/
unsigned param2[60];/* Parameter Table 2
*/
main()
{
.
.
.
/* JOB 1 */
param1[15] = 0x0; /* A/D start channel
*/
param1[16] = 0xA; /* A/D stop channel
*/
param1[17] = 0x0; /* gain code
*/
pcl813(5,param1); /* S/W triggered A/D conversion */
.
.
.
/* JOB 2 */
param2[15] = 0x2; /* A/D start channel
*/
param2[16] = 0x8; /* A/D stop channel
*/
param2[17] = 0x5; /* gain code
*/
pcl813(5,param2); /* S/W triggered A/D conversion
*/
.
.
.
}
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com