Hi Dan!
Thank you for your answer.
I have tried again the EnableEvent method but this fails. Here is my code:
AxCWVisa.RsrcName = "visa://149.204.55.39:3537/GPIB0::19::INSTR"
AxCWVisa.Open()
AxCWVisa.EnableEvent(CWVisaEventTypes.cwvisaEventIOCompletion)
After calling the EnableEvent method I get an exception with the following message:
"Additional Information: Configuring Device
The specified mechanism is not supported for the given event type."
Since this is visaconnection across a network I have tried the asynchronous access at the local maschine - but with the same error message. So the network access should not be the problem.
Using NISpy I get the following Info:
1. viOpenDefaultRM (0x001AEC58)
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:12.838 Call Duration: 00:00:00.421
Status: 0 (VI_SUCCESS)
2. viParseRsrc (0x001AEC58,"visa://149.204.55.39:3537/G...",1 (0x1),0 (0x0))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.259 Call Duration: 00:00:00.110
Status: 0 (VI_SUCCESS)
3. viClose (0x001AEC58)
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.369 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
4. viOpenDefaultRM (0x001AEC58)
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.369 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
5. viOpen (0x001AEC58,"visa://149.204.55.39:3537/G...",0 (0x0),0 (0x0),0x001DD1E0)
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.369 Call Duration: 00:00:00.219
Status: 0 (VI_SUCCESS)
6. viSetAttribute (0x001DD1E0,0x3FFF001A,2000 (0x7D0))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.588 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
7. viSetAttribute (0x001DD1E0,0x3FFF0005,5000 (0x1388))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.588 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
8. viSetAttribute (0x001DD1E0,0x3FFF0007,0 (0x0))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.588 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
9. viSetAttribute (0x001DD1E0,0x3FFF0177,-1 (0xFFFF))
Process ID: 0x00000A40 Thread ID: 0x000009D8
Start Time: 09:54:13.588 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
> 10. viSetAttribute (0x001DD1E0,0x3FFF0021,9600 (0x2580))
> Process ID: 0x00000A40 Thread ID: 0x000009D8
> Start Time: 09:54:13.588 Call Duration: 00:00:00.000
> Status: 0xBFFF001D (VI_ERROR_NSUP_ATTR)
> 11. viSetAttribute (0x001DD1E0,0x3FFF00B3,2 (0x2))
> Process ID: 0x00000A40 Thread ID: 0x000009D8
> Start Time: 09:54:13.588 Call Duration: 00:00:00.015
> Status: 0xBFFF001D (VI_ERROR_NSUP_ATTR)
...
Any idea what went wrong?
Thank you for your help!
Markus