It's possibly only necessary to modify the intialize function. In there, you would have a case to initialize/configure the port. If the instrument requires a single termination character in serial mode, it would be added there and no other modifications would be necessary. Look at the shipping example of the ag34401 driver. The intialize function there does exactly what I jsut described. Modify as necessary for your instrument.