10-11-2005 09:39 AM
10-11-2005 12:39 PM
10-11-2005 01:26 PM
I thought I'd also mention that an upcoming version of the VISA .NET API will include support for formatted IO operations that should make the code for retrieving binary-encoded data like in your example much simpler.
10-11-2005 04:24 PM
Glenn,
thanks. This is the solution I had in mind ... just wanted to verify if there were more elegant solutions.
I'm really looking forward to the new release of the VISA .NET API ... for obvious reasons ... any idea when we may expect it ?
Thanks again.
10-11-2005 04:30 PM
11-09-2005 01:01 PM
11-09-2005 01:30 PM
11-11-2005 03:56 PM
Glenn,
thanks for keeping the promise !
Unfortunately I'm looking for the indefinite/arbitrary length version ... after downloading the latest version, I found that only the life of those using definite length has become easier in the VISA .NET world, the unfortunate indefinite length guys like me still need to parse the block header (preamble) ...
The documentation states: "MessageBasedSessionReader can not read binary data in the IndefiniteLengthBlockData encoding. If the data source returns binary data in indefinite length blocks, you must manually parse the block header and read the data using the RawBigEndian encoding."
Regards,
Frans
11-15-2005 03:47 PM
11-16-2005 06:20 AM
Glenn,
there's some confusion at my end ...
I assumed that "arbitrary" length (corresponding to "%b" using viScanf) was a synonym for "indefinite".
Apparently this is not the case ("%b" using viPrintf is referred to as "definite" length, while "%B" refers to "indefinite" length).
I will try your proposal next week (when I have access to the instrument) and let you know the outcome.
Thanks.
Frans.