10-06-2015 10:47 AM
Background: I have an event based state machine (two state machines ) which concurrently reads data from 2 sensors and writes to a text file. The sensors are IMU 500 and an INTRANAV indoor navigation position sensor.
10-06-2015 11:56 AM - edited 10-06-2015 11:57 AM
Did you look up the error code -1073807346 that you get?
It says the session is invalid. Looking at the your code, I see a number of tunnels including the upper and lower while loops and the VISA reference tunnel set to Use Default if Unwired (generally the wrong setting to use), and that you must have some cases unwired because the tunnel is hollowed out. So you are probably executing some cases were the VISA reference is not wired through, it is being reset to the default value of zero, and the next iteration your VISA functions fail on that.
The file reference wire at the very bottom almost off screen on your image as the same problem.