annuler
Affichage des résultats de 
Rechercher plutôt 
Vouliez-vous dire : 

Projektweite Konstante

Résolu !
Accéder à la solution

Hallo,

gibt es die Möglichkeit eine projektweite Konstanten zu erstellen?

Ich möchte in einem Projekt  Konstanten erstellen die aus 2-D-Array bestehen. Auf diese Konstanten soll von einigen Vi's aus dem Projekt zugegriffen werden.

Da es sich um Konstanten handelt darf nicht schreibend darauf zugegriffen werden.

Bei den Daten handelt es sich um Messverstärkerspezifische Einstellungen. 

0 Compliments
Message 1 sur 8
4 210 Visites

Hello Limbach,

 

You increase your range in this forum by using the english language. It is more complicated to express your problem in english (I know this myself) but will increase answering speed.

To your question: try a search for "WORM" in this forum.

 

Greets, Dave
0 Compliments
Message 2 sur 8
4 207 Visites

Hello Limbach,

 

there are other solutions to your problem:

  • global variables with manually edited Values, then "Set current values to default", you have to make sure, there is no writing access to the globals
  • use of a so called LabVIEW2 style global
  • use of an Action Engine (explaining LV2 style globals)
  • then the above mentioned (perhaps complicated) WORM- Globals

There is alot to read Smiley heureux

 

 

 

 

Greets, Dave
0 Compliments
Message 3 sur 8
4 199 Visites

Falls diese Konstanten nie überschrieben werden müssen, genügt es dieses 2-D-Array in ein VI einzubinden. Siehe Beispiel.

Dann einfach dieses VI an den notwendigen Stellen aufrufen.

 

 Falls die Konstanten, zum Beispiel beim Aufstarten, definiert werden müssen, schon erwähnte Methoden anwenden.

0 Compliments
Message 4 sur 8
4 186 Visites

daveTW wrote:

there are other solutions to your problem:

  • global variables with manually edited Values, then "Set current values to default", you have to make sure, there is no writing access to the globals
  • use of a so called LabVIEW2 style global
  • use of an Action Engine (explaining LV2 style globals)
  • then the above mentioned (perhaps complicated) WORM- Globals

Don't forget data value references. Since you write the program, you can easily enforce that they are never written, except during initialization.

0 Compliments
Message 5 sur 8
4 178 Visites

Hello altenbach,

 

wasn't aware of that. Have to read...

 

 

Greets, Dave
0 Compliments
Message 6 sur 8
4 172 Visites
Solution
Accepté par Limbach

Ich habe soeben gemerkt, dass ich vergessen habe "error in" und "error out" zu verkabeln und dem "Connector" hinzufügen. Dies ist nun korrigiert.

0 Compliments
Message 7 sur 8
4 162 Visites

daveTW a écrit :

Hello altenbach,

 

wasn't aware of that. Have to read...

 


Same for me. I have never used this technique so far.

0 Compliments
Message 8 sur 8
4 161 Visites