Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA EnableEvent TimeOut - Remote Control Application

Hello,

 

I'm working on an remote control application in for the measurment receiver ESL 6 from Rohde & Schwarz.

My configuration:

- VISA 5.3

- Win7 64 Bit

- MSVS 2010 Express

- .NET 4.0

- tried different network adapter (USB, Card, intern)

- programming language: visual basic

- visa32.bat

 

I configured the windows firewall for the communication between PC and measurement equipment. By enabling an event with the command "viEnableEvent", I get the timeout error. With MAX from NI the device is identified, I can write registers, but I can't enable events. I get following error: Enable Event (Service Request) Error VISA: (Hex 0xbFFF0015) timeout expired before operation completed.

 

I recorded the traffic at the network adapter with wireshark. At the point, which the PC send "CREATE_INTR_CHAN", the measurement receiver send SYN and 200 ms after this ACK. The PC don't answer (I attached the recorder traffic). The same code works on an PC with 32 bit XP.

 

Why I get this TimeOut error? Do I have to "open" some port or something else in the windows firewall (but I can send instruction to the receiver)? Is the time between the SYN frame and the ACK from the receiver too large?

 

Thanks for the answers

 

0 Kudos
Message 1 of 2
(4,147 Views)

Hi,

thanks for contacting National Instruments.

 

The following White Paper describes how you need to configure your Firewalls to work with National Instruments Products.

At the end of this paper you find a list with ports which you should open.

 

Configuring Software and Hardware Firewalls to Support National Instruments Products

http://www.ni.com/white-paper/12402/en

 

Have you seen the Knowledge Base "Programming VISA Events in Visual Basic"? In this KB is referred to an example.

Could you try to test this example and see if you receive the same error?

 

Programming VISA Events in Visual Basic

http://digital.ni.com/public.nsf/allkb/6B6BDEDC5802C18D86256C370064CD36?OpenDocument

 

On your System you should find a NI I/O Trace Toolkit. Please log with this tool the VISA traffic.

 

Performing a Good NI I/O Trace Capture for Debugging/Troubleshooting

http://digital.ni.com/public.nsf/allkb/282C5D41E2BA04F2862574BA007803B9?OpenDocument

 

Please let me know about your results.

Kind regards,
Andreas
0 Kudos
Message 2 of 2
(4,115 Views)