Measurement Studio for .NET Languages

Showing results for 
Search instead for 
Did you mean: 

Bad WriteString using VisaCom




I have a problem to send a string buffer to an instrument using VisaCom library. The buffer is cutted and all the characters aren't sent. It seem to be cut when a CR char is encontred. With an old 32 bits library using ibwrt(Desc,buf), it is working fine. But now, i need to use a 64 bits library to compile my project in 64 bits.


Private ResMan As Ivi.Visa.Interop.ResourceManager

Private FIO As Ivi.Visa.Interop.FormattedIO488

Private CGPIB As Ivi.Visa.Interop.IGpib

ResMan = New Ivi.Visa.Interop.ResourceManager()

FIO = New Ivi.Visa.Interop.FormattedIO488


FIO.IO = CType(ResMan.Open("GPIB0::" & CStr(Adr), Ivi.Visa.Interop.AccessMode.NO_LOCK, 10000), Ivi.Visa.Interop.IMessage)


CGPIB = CType(FIO.IO, Ivi.Visa.Interop.IGpib)


FIO.WriteString("RCF" & Buf)




The buffer length is 4096 characters and add to "RCF" string (4099 charracters). Only 12 characters are sent. I try to change some properties : buffer length, terminate character, ..

but nothing works.

Is there a bug in this function ?





0 Kudos
Message 1 of 1