LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Interrupts or Tasks to interface with GPIB and RS232

I am using LabWindows/CVI and the VISA libraries to interface with a Spectrum Analyzer and Power Meter over the GPIB. In addition I need to interface with the RS232. Does anyone know the advantages and disadvantages of using interrupts versus a separate task (thread) for interfacing with these devices using LabWindows/CVI?
0 Kudos
Message 1 of 2
(3,067 Views)
I suggest both : Interrupts and threads.
Check ibnotify for GPIB : it creates a threads when an interrupt occurs.

For RS-232 it is a bit more complicate : interrupt is a GUI callback. Not very efficient, and has a few drawbacks (check my todays post for the drawbacks "Questions on RS-232 interrupt handling").

Pierre
0 Kudos
Message 2 of 2
(3,067 Views)