Two possibilities would be:

- use a global variable, which you initialise with the desired value
before the rest of your program executes

- create a VI that simply returns the value from a block diagram
constant.

I'd favour the second route, as it gives more flexibility for future
expansion: if you need to later on, you can upgrade that VI to read
the value from disc or to calculate it on a case-by-case basis, or
whatever, without breaking your existing code.

If you have lots of constants you need to define, put them in a
cluster and use Unbundle by Name to pick the one you want from the
cluster value returned by your global or constant VI.

Reply via email to