How to send the numerical value of a slider via serial port?

How to send the numerical value of num that comes from a slider through a serial port, all concatenated to a text?

Here’s how I do it:

cov h1.val,vaSpd_Spindle.txt,0
print “n” // Ascii 110
print vaSpd_Spindle.txt
printh FF

Note: The FF is my custom end token. “n” is interpreted on the microprocessor side in a fairly large switch statement (200+ cases). This does limit the number cases to the 256 ascii characters.