Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IRQL_NOT_LESS_OR_EQUAL Serial Read


Will_E wrote:

Solution found, finally, and it is simple.

Now that I have found it, it is a simple solution.


Please mark solution so that it will help somebody who are looking for same kinda problem and looking for a solution. Don't forgot to give kudos to all those who helped you.

 

Thanks,

Mathan

0 Kudos
Message 21 of 23
(1,785 Views)

I had exactly the same issue communicating to a Panasonic FP Sigma PLC through VISA... and your solution worked pretty fine.

 

In my previous code I was using the functionality "End read on termination character" of the VISA Serial set and I was wiring a 2048 byte max lenght to be read to the VISA Read VI.

 

Now I've disabled the "End read on termination character" flag in the initialization of the VISA connection and connected the "Number of Bytes at serial port" to the VISA Read VI. It is not the most elegant solution, as now I need some routine to check that what is read from the serial port is the complete message, but it indeed has avoided the Blue Screens or the Freezing of Windows.

 

Atached the working and the non working VI

Download All
Message 22 of 23
(1,659 Views)

This tip help a lot.

 

However, When the NI-VISA will fix this issue? Did Ni knows this issue?

 

 

0 Kudos
Message 23 of 23
(1,340 Views)