LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Do LabVIEW store data like Table in database?

Hi all,

 

I am measuring voltage from a sensor and I have to compare that voltage with some previously taken measurements, so I want to know that do LabVIEW have some facilities to store data so I can store my previously taken data and I can compare with voltage measured by sensor.

 

Lets say that I stored data like

 

Table 1

1 1 volt – Red

2 1.5 volt – green

3 4 volt—Blue

 

So when I measured voltage from sensor and the value is say 1.5 so I have to checked in Table 1 and in Table 1 the 2 is matching with measured voltage so output will be green.

 

Might be this table contains 25 values or more in actual program.

 

Thank You...

Message 1 of 2
(2,711 Views)

Hi!

I'm a little confused by your request. LabVIEW can certainly store data in many many ways from previous acquisitions. The first and easiest example I can think of would be in a spreadsheet text file. You can write 1D or 2D numeric arrays to file using the Write to Spreadsheet File VI and then read them back using the Read from Spreadsheet File VI. That much is pretty easy.

For a broader set of examples and datasets, you should refer to the Example Finder. There's a whole section under Fundamentals called File IO.

The second part of your question, though, sounds like a lookup table of sorts. LabVIEW actually has a data type called a Color Box, available in the numeric palette. Is this a static lookup table, or does it correspond to a previous acquisition? How are colors assigned initially?

Jarrod S.
National Instruments
0 Kudos
Message 2 of 2
(2,685 Views)