FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

Import ASCII Hex

Startseite ' Community ' Allgemein ' Import ASCII Hex

Anzeigen von 3-Stellen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #34350
    Marcel Bürger
    Teilnehmer

    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.

    #34352
    Marcel Bürger
    Teilnehmer

    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.

    #34351
    Bernhard 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.

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