I'm experiencing the error 1073807298 when using the VISA write command. I'm trying to write and read data to a serial-to-USB hub connected to the PC. The phyical connection to the PC is via USB however the PC views the four ports on the hub as COM ports. When I make a call to VISA write, the data is successfully written and can be read without any problem, however the VISA write VI still returns with the 1073807298 error. I'm a little mystified by this as it seems to be functioning correctly and yet the error still occurs, indeed if I break the error path after the VISA write, the whole app works fine.
Just to be clear - is ViWrite returning the code 1073807298 or -1073807298? Positive numbers indicate a warning, while negative numbers indicate an error. It's often easier to conside these numbers in hex, which would make them: 0x4000FFC2 (warning) and 0xBFFF003E (error). If that's coming back as a positive number, that's outside of the scope of VISA warning codes, which all start with 0x3FFF. If it's negative, that error code is VI_ERROR_IO, "Could not perform operation because of I/O error." Now, I realize that that's not very informative, but let's start with confirming whether you're getting an error or a warning code.
I ran the NI-SPY up to the point the error occurs on the VISA Serial Write vi. Basically all the rest of the code is a boolean cluster acting as a menu and Serial Reads to read acknowledgements from a remote system.