Re: communication via gpib-drivers in c#

From: Dmitriy Lapshin [C# / .NET MVP] (x-code_at_no-spam-please.hotpop.com)
Date: 03/10/04


Date: Wed, 10 Mar 2004 12:20:17 +0200

Hi,

The BitConverter class comes to my mind. You can also store the read data in
a memory stream and use BinaryReader to read the typed values.

-- 
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Brink, Thorsten" <nospam@nospam.de> wrote in message
news:%23o91C%23mBEHA.3284@TK2MSFTNGP09.phx.gbl...
> hy,
>
> i have to communicate with multimeters via IEEE-port / gpib-drivers.
>
> all devices are found without causing any problem.
>
> data is read by using "ibrd (ID, data, length)". the data is transmitted
in
> an ascii-code.
> during my tests, i found out that using a string or an array of chars for
> getting the "data" is not possible, using an "decimal" type will get the
> data and the ascii code can be found in this variable.
>
> is there a way converting this decimal type with the ascii-code in it into
a
> string or an array of chars? do you have some ideas?
>
> thanks,
> thorsten brink
> hottinger baldwin messtechnik gmbh
> - measurement with confidence -
>
>


Relevant Pages

  • Re: FASTEST way to try all strings (a until ZZZZZZZZZZZZZZZZZZZZZZZZ)
    ... > It will be a very huge table so I in my opinion. ... > When it would be used, than it should be converted to a string, however ... >> How would an array of Byte be any faster then an array of Char? ... >> array of Byte is needed, however the OP suggested Chars (A to Z, a to z ...
    (microsoft.public.dotnet.languages.vb)
  • Re: FASTEST way to try all strings (a until ZZZZZZZZZZZZZZZZZZZZZZZZ)
    ... > It will be a very huge table so I in my opinion. ... > When it would be used, than it should be converted to a string, however ... >> How would an array of Byte be any faster then an array of Char? ... >> array of Byte is needed, however the OP suggested Chars (A to Z, a to z ...
    (microsoft.public.dotnet.general)
  • Re: comp algorithms
    ... I am saying a array, eg, that takes 4 times as much space as the input ... sorting by the associated string values gives the order: ... done in the first few chars, would be to do sorting initially as: ...
    (comp.compression)
  • communication via gpib-drivers in c#
    ... is there a way converting this decimal type with the ascii-code in it into a ... string or an array of chars? ...
    (microsoft.public.dotnet.languages.csharp)
  • Help in French|Spanish|German translation.
    ... I am also an author of User-defined string functions. ... WORDTRANEX (cSearched, cArExpressionSought | cExpressionSough, ... each string of the array is searched ... If the parameter nArStartOccurrence is -1 or omitted, the replacement starts ...
    (microsoft.public.fox.helpwanted)