ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB SRQ Interrupt

Hi everyone,

 

I am currently writing a driver for a GPIB-Device.

Everything works great so far, but I have one problem I cannot solve.

How can I constantly check if an SRQ occured while the rest of the program sets things like Range and Output??

If an SRQ occured I want to Reset the device and stop the Program.

Thanks in advance.

Pattos

LabVIEW Gretchin
0 Kudos
Message 1 of 4
(3,609 Views)
You can use the VISA Read STB or the lower level GPIB functions such as TestSRQ.
0 Kudos
Message 2 of 4
(3,599 Views)
If you search the LabVIEW examples for "VISA" you will find an example called "SRQ Event Handling". I have no idea why it doesn't show up if you search for "SRQ".
0 Kudos
Message 3 of 4
(3,590 Views)

Thank you very much for your answers!

 

I already used those functions but it did not work. That is why I asked in the first place, I thought I was missing something or doing something wrong.

But I just found out that I forgot to mask a certain register due to a missing Letter.

I typed in "*SE 8" instead of "*ESE 8".

Why do these things always happen!

 

Best Regards,

Pattos

LabVIEW Gretchin
0 Kudos
Message 4 of 4
(3,575 Views)