Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Measurement Studio 8.6.1 Trying to access UsbSession member GetAttributeIntXX

I have declared en VS2005 VB, using Measurement Studio the following code:

 

Dim objUsbSession as UsbSession

 

objUsbSession = new UsbSession("UsbXXXXXX")

 

and works fine, but accordingly to Measurement Studio Help, I should be able to access the following methods:

 

objUsbSession.GetAttributeBoolean

objUsbSession.GerAttributeInt16

 

and so forth....

 

well I cannot access any of the .GetAttribute methods...

 

could you please give me hand ? Thanks

 

leonardo.hernandez@creationtech.com

 

0 Kudos
Message 1 of 3
(3,777 Views)
It looks like if you invoke a new visa session (not just the UsbSession) in this manner you are not able to utilize the getAttribute_ methods directly. What are you trying to do with the UsbSession, what is your end goal?
Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 2 of 3
(3,749 Views)

Ok, now I see.

 

What happens is that during a UsbSession.Write and a UsbSession.Read I am waiting for a couple of seconds. Otherwise I am going to get an error because the instrument I am using is not ready yet.

 

The problem is whe I want to speed up, and what I was trying to do is to obtain the number of characters available in teh UsbSession buffer, in order to wait only the needed time.

 

I think I know how I can resolve the issue, using an alternate method.

 

Thank you so much.

 

0 Kudos
Message 3 of 3
(3,728 Views)