01-17-2014 09:50 AM
01-17-2014 10:30 AM
Will check for a newer driver. Hadn't thought of that.
No Handshaking, 9600 Baud, 8 Data bits, No Parity, 1 Stop Bit, No Flow Control.
Have tried swapping ports one more time to see if that affects it. I have had some devices that are not as stable on higher port numbers, by that I mean anything above Com 1 or Com 2.
--------
Just looked, there is indeed a newer driver. WIll install it shortly and hope and hope and hope that it will resolve the issue.
Thanks for that thought......
01-17-2014 10:40 AM
01-17-2014 11:15 AM
Try increasing the VISA timeout:
http://digital.ni.com/public.nsf/websearch/E4F90AD24DEC9CC786256F4300605C02?OpenDocument
01-17-2014 11:50 AM
Glad I have figured out how to do the next to impossible and create these write timeouts. Not the superpower I was hoping for though.
Installed the updated driver and the system just started back up. Crossing my fingers.
Am not familiar with using NI-Trace/Spy so will have to look at that and figure out how to use it and then figure out what it is going to tell me.
Timeout is already at 5 full seconds. Was at 10 but I reduced it several debugging steps ago thinking that it may have been intruding on itself (one of those outside the box thoughts)
I have watched it error out. Takes a small fraction of a second to working correctly to error on screen so I don't believe increasing it back is going to impact it.
I hear what you are saying about it being hard to generate a write timeout which makes all the more frustraating. Am pinning all my hopes on the driver update at this point. If that doesn't work, am going to order a different IO card.
No thoughts on adding the Clear Buffer before the Write ?
01-17-2014 12:09 PM - edited 01-17-2014 12:11 PM
Looking at the datasheet (for whatever its really worth) the 128byte buffer seems like a possible source for a write tmo error.
Try setting the VISA buffer to 128
try writing in chunks no larger that 128 bytes (encluding term chars which, you will need to do manually since you don't want them every 128th char of tx)
Try better hardware
let us know what you find