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.