Forum FlexPro – Discuss your topic!

Fileimport mit versch. Signalnamen

Home > Community > FPScript > Fileimport mit versch. Signalnamen

Ansicht von 6 Beiträgen - 1 bis 6 (von insgesamt 6)
  • Autor
    Beiträge
  • #12503

    Hallo,

    ich habe eine Auswertung erstellt und es funktioniert perfekt. Jetzt möchte ich das ganze modifizieren. Die Messdateien sind immer von der gleichen Art, nur die Namen der Signale ändern sich.
    Ist es möglich eine Formel/Datensatz/textfile oder ähnliches zu erstellen, in der allen Werten der aktuelle Name zugewiesen wird. Alle erstellten Formeln Diagramme sollen dann auf diese Formel/Datensatz/textfile zurückgreifen.

    Das Ziel ist also das man bei einer neuen Messdatei, bei der sich nur die Namen geändert haben, das Projekt schnell anpassen kann.

    Danke im Voraus.

    #8166

    Hallo,

    ich habe eine Auswertung erstellt und es funktioniert perfekt. Jetzt möchte ich das ganze modifizieren. Die Messdateien sind immer von der gleichen Art, nur die Namen der Signale ändern sich.
    Ist es möglich eine Formel/Datensatz/textfile oder ähnliches zu erstellen, in der allen Werten der aktuelle Name zugewiesen wird. Alle erstellten Formeln Diagramme sollen dann auf diese Formel/Datensatz/textfile zurückgreifen.

    Das Ziel ist also das man bei einer neuen Messdatei, bei der sich nur die Namen geändert haben, das Projekt schnell anpassen kann.

    Danke im Voraus.

    #8800
    Bernhard KantzBernhard Kantz
    Teilnehmer

    Create a FPScript formula with a link to the signal (signal name placed in single quotes) if you don’t want to rename your signal. Use this FPScript formula instead of the origin signal in your analysis and presentation objects. In this case you only have to edit this FPScript formula.

    FlexPro is frequently used for analyzing and documenting several measurements using ready-made templates. To do this, you set up several folders in the database. Each folder contains the respective data sets from a certain measurement. You create the document objects and analysis objects in the parent folder. Here, it is important that the data sets from the various measurements are always given the same name.

    Now for example, before you update a document and thus trigger a calculation, activate the folder from which the data is to be taken using the (De)activate Folder command. All of the objects in the activated folder are then displayed in the parent folder. Therefore, FlexPro first searches in the activated folder for all data sets referenced in formulas, curves, etc., and then, if they are not found there, it searches within the parent folder.

    See also:
    FlexPro Online Help (F1)
    Creating Templates for Analysis

    support@weisang.com

    #8801

    Thank you for the answer.

    I already did it that way. But this way I got 73 signals and now 73 formulas that I have to change each time. Isn’t it possible to create one forumla instead of the 73 which contains all information?

    #8802
    Bernhard KantzBernhard Kantz
    Teilnehmer

    In this case I would write a VBA macro to rename the signals. But this is only possible in FlexPro Professional.
    Otherwise you can create a FPScript formula which includes the 73 signal names. The formula returns a data series instead of a scalar value:
    {‘signal name 1’, ‘signal name 2’, …}
    With the index operator [] you can access a single signal name.

    support@weisang.com

    #8803
    Bernhard KantzBernhard Kantz
    Teilnehmer

    In this case I would write a VBA macro to rename the signals. But this is only possible in FlexPro Professional.
    Otherwise you can create a FPScript formula which includes the 73 signal names. The formula returns a list instead of a scalar value:
    [‘signal name 1’, ‘signal name 2’, …]
    With the List Element operator you can access a single signal name.

    support@weisang.com

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