Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically detect PCMCIA GPIB insertion events

(Microsoft Visual C++)

 

I am able to programmatically detect when a NI USB GPIB is inserted in the PC.  Do I use the same method to detect the PCMCIA GPIB?  Is it also a  

DBT_DEVTYP_DEVICEINTERFACE?

 

Detail:

Here is how to detect NI USB GPIB

LRESULT CALLBACK DeviceManager::WindowsEventHandler(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)

{

if ( Message == WM_DEVICECHANGE )

{

if(wParam == DBT_DEVICEARRIVAL)

{

DEV_BROADCAST_HDR* hdr = (DEV_BROADCAST_HDR*)lParam;

if(DBT_DEVTYP_DEVICEINTERFACE == hdr->dbch_devicetype)

{

if ( strstr( ((DEV_BROADCAST_DEVICEINTERFACE*)hdr)->dbcc_name, "Vid_3923" ))         // THIS is the USB GPIB HS

0 Kudos
Message 1 of 2
(3,198 Views)

Hi Fred,

I got your email earlier; let me know if you got my reply and if you have any questions. It may be best to continue this issue here on the forums so that everyone can see/learn/contribute etc.
Matt
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,182 Views)