From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-13-2019 02:27 PM
Hi,
I am trying to perform simple serial communication between Labview and the spark concepts xpro v4 cnc controller (atMega328p). I have no problems using a standard serial communication terminal in TeraTerm to read and write to the device. However, when I try using the Simple Serial.VI example in LabView I get the following I/O error on the Visa Read function.
Error -1073807298 (Hex 0xBFFF003E) occurred at an unidentified location
Could not perform operation because of I/O error
I have tried the solutions offered online such as updating Visa drivers, changing the Visa buffer, and ensuring that no other processes are interfering with the I/O ports. The device appears on NI Max and I am positive the serial settings are correct. Labview successfully writes to the device but throws an error on Visa read. Strangely enough it will successfully read sometimes if the Visa read is put in a While loop and the input and output values are tunneled through but still has the error and this is not the implementation of the code I want to write. Any help would be greatly appreciated.
04-14-2019 10:57 AM
Unfortunately, you (a) didn't post your code, (b) used a bad example (which NI should definitely replace!), and (c) haven't had proper instruction on the optimal use of serial communication using VISA. This topic gets brought up at least once a month on this Forum, but Forum users often don't seem to "search the Forum" to find posted Solutions.
The more information you provide us up front, the more direct our responses can be, and the more likely we won't have to "guess" (as I'm about to do) about your situation.
You say you use TeraTerm to read and write to your device. [It would be handy to see a log of successful communication]. I'm guessing you type a Command (followed by a terminator), and the device returns a response (also followed by a terminator). If this is so, the solution is fairly simple:
Please, next time attach your VI (please do not send screen shots of Block Diagrams!)
Bob Schor