DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

displaying signed 8 bit integers using a data plug-in

Hi there,
 
I'm currently using DIAdem 10.1 and I'm writing a data plug-in in order to read binary data. What I'm missing is a data type "eI8" to read and display 8 bit signed integers. Obviously, to get the data into a channel, I have to use the data type eByte, but how do I make DIAdem display it as a signed value in the data portal?
 
Many thanks in advance!
 
Regards,
Stefan
0 Kudos
Message 1 of 5
(4,065 Views)
Hello Stefan,
 
you can use the method:
Value = Object.GetNextBinaryValue(eDataType)
eDataType Aufzählung.
Bestimmt den Datentyp des auszulesenden Werts.
2 - eI16 16-Bit-Integer.
3 - eI32 32-Bit-Integer.
4 - eI64 64-Bit-Integer.
5 - eByte Byte.
6 - eU16 16-Bit-Unsigned-Integer.
7 - eU32 32-Bit-Unsigned-Integer.
9 - eR32 32-Bit-Real.
10 - eR64 64-Bit-Real.
Regards,
Rebecca Fox
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(4,045 Views)

Hi Rebecca,

many thanks for your reply. Unfortunately, I think this doesn't help me because the data type I need would be "eI8". If I use eByte, the sign information is gone and if I use e.g. eI16, one byte to much is read.

Is there any other solution?

Anyway, thank you very much so far!

Regards,
Stefan

0 Kudos
Message 3 of 5
(4,036 Views)

Hello Stefan,

 

with eI8 it should work. I will look that it will be corrected in our help!

Thanks,

Rebecca Fox
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(4,030 Views)
Hi Rebecca,
 
thanks a lot! It works with data type eI8.
Obviously, I wasn't bold enough to just try! 😉
 
Kind regards,
Stefan
 
0 Kudos
Message 5 of 5
(4,025 Views)