Problem regarding DptFactory class in Falcon library.
Hello,
I have a problem regarding DptFactory class from Knx.Bus.Common.DatapointTypes.
I want to scale a readed value from the bus, for example i read a group of type 3.007 and i want the value to be scaled to the final user. So instead of displaying value 255 i want to dissplay 100%.
I use the following code:
DptFactory dptFactory = new DptFactory();
DptBase dptBase = dptFactory.Create(3, 7);
MessageBox.Show("Dptbase has maintype:" + dptBase.MainNumber + " subnumber:" + dptBase.SubNumber + " SizeInbits:" + dptBase.SizeInBit + " Name:" + dptBase.Name);
When i want to display the message box it seems that dptBase object returned from DptFactory is null.
What i'm i doing wrong?
0
Kommentare
0 Kommentare
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.