This is the other code for it. Please combine serial ports.(com1 and com2) Please send the data from virtual communication ports(analog1on, off or analog2on, off).
I dont know whether it is true or not for the requirements. I am new in the labview so maybe I didnt understand what you understood from that requirements...