FlexPro Forum – Discuss Your Topic!

Import ASCII Hex

Home > Community > General > Import ASCII Hex

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12752

    How could i import ASCII Hex values from CSV files and use them in FlexPro as integer?

    For example: I’ve got ADC values like 0E41 (3649 decimal) without “0x” infront.

    #8418

    How could i import ASCII Hex values from CSV files and use them in FlexPro as integer?

    For example: I’ve got ADC values like 0E41 (3649 decimal) without “0x” infront.

    #9218
    Bernhard KantzBernhard Kantz
    Participant

    You can import those ASCII hex values as strings. To get the numerical value you may use a FPScript formula like in the following example:

    Dim hex = “0E41”
    Integer16 (“0x” : hex)

    It concatenates the “0x” prefix to the hex string and converts it to a 16 bit integer.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.