beautypg.com

Set user terminator – Measurement Computing TempScan/1100 User Manual

Page 254

background image

A-58 API Command Reference

889897

TempScan / MultiScan User’s Manual

V

- Set User Terminator

TYPE

System

EXECUTION

Deferred

SYNTAX

Vval

Set the User Terminator value to any character whose numeric value (ASCII

value)

val

is in the range

0

to

255

.

V?

Query the present User Terminator value.

DESCRIPTION

The Set User Terminator (

V

) command is used to set the user-defined User Terminator value to any character

whose numeric value (ASCII value) is in the range

0

to

255

. The User Terminator may be used by the Set Query

Terminator (

Q

) command to specify a user-defined terminator for any of the defined terminator types or as a

reading separator for the Read Buffered Data (

R

) command.

For more information on data output (or query) terminators, see command Set Query Terminator (

Q

), or see

section Data Format Configuration in the chapter System Configuration. For more information on ASCII
characters, see section Appendix B.

EXAMPLE

PRINT#1, “OUTPUT07;Q1,0,1,1,1X”

‘ Set the reading separator (fifth parameter) flag on

PRINT#1, “OUTPUT07;F0,0X”

‘ Data format is Engineering Units, degrees Celsius

PRINT#1, “OUTPUT07;V44X”

‘ Set the User Terminator to be a comma (

,

)

PRINT#1,"OUTPUT07;C1-4,1X"

‘ Configure Channels 1 - 4 as Type J thermocouples

PRINT#1,"OUTPUT07;I00:00:01.0,

00:00:00.1”

‘ Configure scan interval

PRINT#1,"OUTPUT07;Y0,1000,0X"

‘ Configure Post-Trigger Counts

PRINT#1,"OUTPUT07;T1,8,0,0X"

‘ Set Trigger as Trigger On (

@

) command, and set Stop as

Counts

PRINT#1,"OUTPUT07;@X"

‘ Trigger the acquisition

PRINT#1,"OUTPUT07;R1X”

‘ Read oldest scan

PRINT#1,"ENTER07"

‘ Retrieve the oldest scan

INPUT A$

0020.30,0023.80,0034.90,0013.50

‘ Screen shows the scan data readings separated by

commas

PRINT#1, “OUTPUT07;V58X”

‘ Set the User Terminator to be a colon (

:

)

PRINT#1,"OUTPUT07;R1X

‘ Read the next scan

PRINT#1,"ENTER07"

‘ Retrieve the next scan

INPUT A$

0020.30:0023.80:0034.90:0013.50

‘ Screen shows scan data readings separated by colons

This manual is related to the following products: