01-14-2010 01:55 PM
Hello,
I have a basic rs232 serial interface setup to send and receive commands from a microcontroller. The vi simply sends a formatted command when button is pushed and data is received at the port data will be read back in array sizes of variable input.
When i run the VI it works fine when I use a terminal window to send commands. When I send data from the the following error occurs
"Error 1073807298 occurred at VISA Read in deubg Receive data.vi
Possible reasons:
VISA: (Hex 0xBFFF003E) could not perform operation because of IO error"
Attached is a simple VI that the problem occurrs on. Any ideas of what I can do to remedy the problem?
Solved! Go to Solution.
01-14-2010 03:53 PM - edited 01-14-2010 03:56 PM
Double check your baud rate, parity, data and stop bit settings to be sure they match your microcontroller's settings.
I would recommend that you wire up up your error wires between the VISA functions. Right now you are doing some things in parallel which might be a race as to what occurs. For example, Configure the serial port, THEN flush the buffer. Write to the VISA port, THEN read the data.
Although it won't fix your error, CMD1, CMD2, and bytes to read should be set to I32, I32, and U32 (respectively) to avoid the coercion dots on the functions they are wired to.
01-14-2010 04:19 PM
01-14-2010 05:58 PM
The problem was that the error wiring was not in place. I thought that the error lines were just for programatically handling the error? I see that my understanding was wrong. I will have to do some reading.
Thanks for the help.