07-09-2007 04:30 PM
07-10-2007 03:37 AM
The usual approach in these situations is to include an extra parameter which identifies the correct hardware. So for example instead of:
send_message ("A message for the serial port\n");
you could use:
send_message (port_1, "A message for serial port 1 only\n");
where port_1 is used to select which hardware the function talks to. The CVI RS232 routines need this information anyway, so you just need to use a local variable instead of the port number being fixed.
JR