Channel Read Bits

Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #15056
    Mikhail
    Moderator

    In version 6 you can try creating a format to display value in binary form. Format code would be B

    #15057
    Mikhail
    Moderator

    Also hexadecimal format would be useful.

    #15060
    rapidscadaaks
    Participant

    Many Thanks

    #15062
    rapidscadaaks
    Participant

    Hi Mikhail

    I am using GetAnyBits below:

    public double GetAnyBits(double val, int n, int mask = 1)
    {
    ulong ulVal = (ulong)val;
    return (ulVal >> n) & (ulong)mask;
    }

    The issue is of format.
    When I use Hexadecimal, vales are same as General with addition of 3 places of decimal which are zeros. I could not understand how to try the B Format as there is no option for B. I am using version 6.

    Thanks

    #15063
    manjey73
    Participant

    Oops, I didn’t know there was a binary display format 🙂

    You need to add option B for the format and test it.
    Auxiliary Tables – Formats

    Custom Formats

    • This reply was modified 8 months, 3 weeks ago by manjey73.
    • This reply was modified 8 months, 3 weeks ago by manjey73.
    #15066
    manjey73
    Participant

    Something is not working to display the number in binary form. It shows !!! on the graph, in the table ---

    #15067
    manjey73
    Participant

    Chart Pro falls on the string variable – a white screen 🙂

    #15070
    Mikhail
    Moderator

    I didn’t know there was a binary display format

    It was added in .NET8. I’ve never tried it before.

    Chart Pro falls on the string variable – a white screen

    It cannot display graph of a string.

    #15071
    Mikhail
    Moderator

    I could not understand how to try the B Format as there is no option for B.

    In the Formats table add a new format. I’m not sure that B will work, however, it worth to try.

    #15101
    Mikhail
    Moderator

    Binary format will be supported in the next release.

Viewing 10 posts - 16 through 25 (of 25 total)
  • You must be logged in to reply to this topic.