From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Projektweite Konstante

Solved!
Go to 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 Kudos
Message 1 of 8
(2,878 Views)

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 Kudos
Message 2 of 8
(2,875 Views)

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 Happy

 

 

 

 

Greets, Dave
0 Kudos
Message 3 of 8
(2,867 Views)

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 Kudos
Message 4 of 8
(2,854 Views)

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 Kudos
Message 5 of 8
(2,846 Views)

Hello altenbach,

 

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

 

 

Greets, Dave
0 Kudos
Message 6 of 8
(2,840 Views)
Solution
Accepted by topic author 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 Kudos
Message 7 of 8
(2,830 Views)

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 Kudos
Message 8 of 8
(2,829 Views)