Forum FlexPro – Discuss your topic!

Import ASCII Hex

Home > Community > General > Import ASCII Hex

Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #12752
    Marcel BürgerMarcel Bürger
    Mitglied

    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
    Marcel BürgerMarcel Bürger
    Mitglied

    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
    Teilnehmer

    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.

Ansicht von 3 Beiträgen - 1 bis 3 (von insgesamt 3)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.