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
- Next message: Vanessa: "Re: Constructor using out parameters"
- Previous message: Dmitriy Lapshin [C# / .NET MVP]: "Re: RtlMoveMemory to read an integer from a file"
- In reply to: Brink, Thorsten: "communication via gpib-drivers in c#"
- Messages sorted by: [ date ] [ thread ]
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 - > >
- Next message: Vanessa: "Re: Constructor using out parameters"
- Previous message: Dmitriy Lapshin [C# / .NET MVP]: "Re: RtlMoveMemory to read an integer from a file"
- In reply to: Brink, Thorsten: "communication via gpib-drivers in c#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|