Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66787

Intermitent VISA Write error - Pulling hair out

$
0
0

Running an app that uses a couple serial devices.  One is a stepper drive that is controlled by simply sending command strings to the drive controller via serial connection.

 

Have had to update to Win 7 (from XP) and as well upgraded to LV 2013.    Now all of the sudden I get errors from the vi that writes to the serial port. Sometimes it goes for a couple hours before popping up, sometimes 15 minutes.  There is not even much consistency as to which iteration of the vi pops the error.  I have added delays here and there, put a delay in the write vi (attached), added a clear buffer before the write, etc, etc.  This bug will not go away.  this is the error that  pops up..

 

LV_Visa_Error.png

 

I have attached the vi.  It is about as simple as they come which is why I am pulling what little hair I have left out.  Two changes in this version from the original that ran forver on the XP system, the 150 ms delay between Write and Close (since increased to 400) and I have also changed the timeout on the Configure from 10000 ms to 5000 ms (10 sec to 5 sec).

 

Once this happens then all serial connection with the computer is hosed and I have to reboot the system to get going again.  The computer, a relatively new dell, has one built ini serial and I am using a StarTech expansion card for two additional ports. (2 Port PCIe RS232 w/ 16550 UART)

 

ANY help is much appreciated on this as having to go reset the system 10-15 times a day is killing me.


Viewing all articles
Browse latest Browse all 66787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>