It seems you are using zterm from the commandline to communicate to a serial device (this is not DOS per se, you are just using a DOS window to start the zterm program).
You should be able to duplicate all that in LabVIEW by communicating directly with the serial port. Are you sure you have to program your module every time?
Apparently, F9 initiates some file transfer. Do you know what standard it uses (e.g. xmodem, zmodem, etc.)? LabVIEW does not incoroprate serial transfer utilities, but there might be utilities available elsewhere (
see this note).
There should also be no problem uploading the code using zterm, then later
communicate with the device using LabVIEW by sending commands to the serial port. What do you mean exactly by "but it doesn't success". How are you communicating? What kind of errors are you getting?