Alp Posted December 24, 2020 Report Posted December 24, 2020 Hello, I'm trying the light data via 0D0C offset but i couldn't any data. I am getting a error. My code is in the below. Private lights As New Offset(Of Byte)(&HD0C) TaxiLightStatus.Text = lights.Value(3)
Paul Henty Posted December 24, 2020 Report Posted December 24, 2020 Hi, The offset needs to be declared as FsBitArray so you can address the individual bits. For BitArrays, you also need to specify the length in Bytes (2 in this case). like this: Private lights As New Offset(Of FsBitArray)(&HD0C, 2) You need version 3.1.22 or later for FsBitArray. Paul
Alp Posted January 8, 2021 Author Report Posted January 8, 2021 Thank you so much. My version wa 3.0.3. I upgraded now.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now