LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string constant array

Solved!
Go to solution

Hi

I read data from Access  database (2D array), I need to use this data throughout my application. Is there a way to intialize

an array of string constants with this data i.e. obtain an string constant array with values from database

0 Kudos
Message 1 of 7
(3,941 Views)

I think you are looking for something similar to an Action Engine.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 7
(3,933 Views)
Solution
Accepted by Nustian

No. A constant is a constant. You can:

1. Make a vi that accesses the information to a string indicator, which you'll then change to a constant and use in your program.

2. Access the information and store it in a shift register or send the wire to VI's in need.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 7
(3,927 Views)

The data is read is just once and array is therefore need to be written to only when the application loads

0 Kudos
Message 4 of 7
(3,902 Views)
What exactly is the problem then? You've been told that you can store it in a shift register. Passing this to other parts of your VI is a pretty basic operation. Even if you had a block diagram constant, you would have to do the same thing. Since you are storing information in a database, presumably that information changes so a constant seems silly.
0 Kudos
Message 5 of 7
(3,895 Views)

I too say we need more information about what the poster wants.  But if you want to write some settings once, and have those settings available in the entire application, it sounds like a job for WORM.

Message 6 of 7
(3,882 Views)

Thanks for the link as the information just needs to be read once this should do the job

0 Kudos
Message 7 of 7
(3,873 Views)