Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

MessageBasedSession VISA Serial Synchronously

Hello

 

Microsoft Visual Studio 2010 with Measurement Studio

 

I have an RS232 interface instrument. I am able to comunicate with it using Measurement & Automation Explorer's Open Visa Test Panel

 

So I know the hardware path is there..

 

I am able to Open a session, and able to Write

 

But the following Read allways times out with

 

Timeout expired before operation completed. VISA error code -1073807339

 

At this point I opened up NI Spy

 

I noticed the  Open Visa Test Panel uses viWrite and viRead, and those work

 

Where as when I run my program, my MBS apears to be using viWriteAsync and viReadAsync

 

Is there a way to configure my MBS session to use the SYNC versions instead of the ASYNC version? I see that LabVIEW apears to have this option, but I dont see it in Measurement Studios

 

 

 

 

 

But my software allways gets a timeout

0 Kudos
Message 1 of 2
(5,104 Views)

Hey grantsenn,

 

There are some VISA examples that could help solve this issue. The examples are located under :

Start » All Programs » National Instruments » VISA » Examples » DotNET3.5 » SimpleReadWrite » cs

 

Try looking through the Simple Read and Write examples and see if they help.

 

Hope this helps!

Wear
National Instruments
Product Support Engineer
0 Kudos
Message 2 of 2
(5,081 Views)