communication via gpib-drivers in c#

  • Thread starter Thread starter Brink, Thorsten
  • Start date Start date
B

Brink, Thorsten

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 -
 
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.
 
Back
Top