IVM PLUGIN TAIN.EXE

tain.exe -portin [TainComPort=COM1] [TainPortNumber = 0] [ReturnValue = millivolts] [MultiplyFactor=19.608] [AddFactor=0.0]
tain.exe -porttemp [TainComPort=COM1] [TainPortNumber = 0] [ReturnValue = temp]
tain.exe -porton [TainComPort=COM1] [TainPortNumber = 0]
tain.exe -portoff [TainComPort=COM1] [TainPortNumber = 0]

"TainComPort" is the name of the serial port connected to the tain device. Default is COM1.
"TainPortNumber" the number of the tain port 0-7. Default is 0.
"ReturnValue" is the name of the variable that the return value is used in. Default is millivolts of -portin or temp for -porttemp.

returns:	

When run with -portin returns the analog input mullivolts=(MultiplyFactor * 5V/255) + AddFactor. Using the default MultiplyFactor and AddFactor, the return value is mullivolts (as the variable name millivolt).
When run with -porttemp returns the temperature in the default variable temp.

-----

This is a plugin for the IVM Telephone Voice Attendant which can be downloaded at www.nch.com.au/ivm. 

It is used to read and write from and to the hardware devices manufactured by Tain Electornics www.tain.com.au.

For more information about using plugins, please see the IVM Help Pages.

-----

Example: TURNING A PORT ON or OFF -porton -portoff

To turn on port 6 of a tain device connected to COM 1, run the plugin
	tain.exe -porton COM1 6

To turn off port 3 of a tain device connected to COM2, run the plugin
	tain.exe -portoff COM2 3

-----

Example: GETTING THE ANALOG INPUT VALUE -portin

If you run the plugin 
	tain.exe -portin COM1
it will return the value of input port 0 on the tain device connected to COM1 as variable "millivolts".

The hardware port number can also be specified. For example:
	tain.exe -portin COM1 6
will read the millivolts on port 6.

-----

Example: READING THE TEMPERATURE -porttemp

If you run the plugin 
	tain.exe -porttemp COM1
it will return the temparature of input 0 on the tain device connected to COM1 as variable "temp".

The hardware port number can also be specified. For example:
	tain.exe -porttemp COM1 6
will read the temp on port 6.



-----

Licence: This software may be distributed free as long as it is distributed for use only with IVM. NCH Swift Sound may revoke this licence at any time.

(c) 2002 NCH Swift Sound
http://www.nch.com.au