I have a command file with this format:
31 01 FD 37 04
31 01 FD 37 05
31 01 FD 37 06
31 01 FD 37 07
This commands are in ASCII but i have to send my device same numbers just in HEX so: 31 01 FD 37 04 -> 31 01 FD 37 04 NOT(33 31 30 31 46 44 33 37 30 34 )
Any idea?
If I understand your question correctly your file contains bytes whose values are 31, 01, FD, 37, 04 etc and you want to send the instrument the string "31 01 FD 37 04". You can do this conversion with a combination of String to Byte Array and Format Into String, for example:
If I've got your question the wrong way round then CharlesB's answer is correct.