FlexPro
HistoryBase
Ingénierie
Formation
Téléchargements
Support FlexPro
Connaissance
Communauté
À propos de nous
Références
Emplois
Contact général
Liste des revendeurs
Support FlexPro
FR
DE
EN
Porte-plaquette
Produits et solutions
Support et téléchargements
Entreprise
Magazine
Contact
Langue
MyWeisang

Paramètres du compte.

Topic

Import ASCII Hex

Page d'accueil ' Communauté ' Généralités ' Importation ASCII Hex

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Auteur
    Messages
  • #34350
    Marcel Bürger
    Participant

    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
    Participant

    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
    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.

Voir les messages de 3 - 1 à 3 (sur un total de 3)
  • Vous devez être connecté pour répondre à ce sujet.