Setting connection parameters

The connection object has a series of parameters that can be set. Currently the parameters that can be set are "ALLOW_DATA_ON_TAPE", "GAP_HANDLER", and "ITERATE_USE_GAP_HANDLERS".

Parameters can also be given default values in the system environment. The names of the environment variables are derived by prefixing them with "NDS2_CLIENT_". So the available enviornment variables are "NDS2_CLIENT_ALLOW_DATA_ON_TAPE", "NDS2_CLIENT_GAP_HANDLER", and "NDS2_CLIENT_ITERATE_USE_GAP_HANDLERS".

Example 4.4. Setting parameters in Python with connection.set_parameter()

			Allow data on tape.
			>>> conn.set_parameter('ALLOW_DATA_ON_TAPE', '1')
			Equivalent to:
			>>> conn.set_parameter('ALLOW_DATA_ON_TAPE', 'True')

			Set a gap handler:
			>>> conn.set_parameter('GAP_HANDLER', 'STATIC_HANDLER_ZERO')
		

Example 4.5. Setting parameters in Octave with connection.set_parameter()

			Allow data on tape.
			octave:1> conn.set_parameter('ALLOW_DATA_ON_TAPE', '1')
			Equivalent to:
			octave:2> conn.set_parameter('ALLOW_DATA_ON_TAPE', 'True')

			Set a gap handler:
			octave:3 conn.set_parameter('GAP_HANDLER', 'STATIC_HANDLER_ZERO')
		

Example 4.6. Setting parameters in MATLAB with connection.setParameter()

			Allow data on tape.
			>> conn.setParameter('ALLOW_DATA_ON_TAPE', '1')
			Equivalent to:
			>> conn.setParameter('ALLOW_DATA_ON_TAPE', 'True')

			Set a gap handler:
			>> conn.setParameter('GAP_HANDLER', 'STATIC_HANDLER_ZERO')