Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WaitOnEvent Timing out


@master9991 wrote:

I am indeed sending the termination character. You check the code I posted above.

 

 

_gpibSession.TerminationCharacter = 10;
_gpibSession.TerminationCharacterEnabled = true;

No, you are not. I told you that above which you didn't bother to read apparently.

 

0 Kudos
Message 11 of 15
(2,072 Views)

I sending the same parameters in VB6 and it works.

 

I have read what you said (given under) but that didn't solve my problem.

 

"One thing you should note is that TerminationCharacter is for read *only*.

You will need to add your own when writing to the instrument."

 
0 Kudos
Message 12 of 15
(2,067 Views)

Today I tried running the NI-VISA DotNET4.0  example for Service Request

 

- I am still getting time out when it waits on the "WaitOnEvent"   [Synchronous mode]   [GPIB-USB-HS with Windows 7 64 bit]

- It never runs the Handler routine                                                     [Asynchronous mode] [GPIB-USB-HS with Windows 7 64 bit]

 

But when I run my VB6 code for the Service Request it runs perfectly  [Using a PCI-GPIB Card with Windows XP]

 

Any help is appreciated.

0 Kudos
Message 13 of 15
(2,046 Views)

@master9991 wrote:

Today I tried running the NI-VISA DotNET4.0  example for Service Request

 

- I am still getting time out when it waits on the "WaitOnEvent"   [Synchronous mode]   [GPIB-USB-HS with Windows 7 64 bit]

- It never runs the Handler routine                                                     [Asynchronous mode] [GPIB-USB-HS with Windows 7 64 bit]

 

But when I run my VB6 code for the Service Request it runs perfectly  [Using a PCI-GPIB Card with Windows XP]

 

Any help is appreciated.


Run your VB6 code with the GPIB-USB-HS

0 Kudos
Message 14 of 15
(2,041 Views)

Ran VB6 code for the Service Request and it runs perfectly   [GPIB-USB-HS with Windows 7 64 bit]

viStatus returns "Operation Completed Successfully"

 

 

0 Kudos
Message 15 of 15
(2,028 Views)