LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

storing imported data in labview

Hi

 

I am quite new to LabView, so bear with me please.

I want to read PT-1000 temp elements from a Agilent 34970A. i managed to get the data out, all is fine.

In order to get the Ohm value from the agilent into a Celsius, i have to use a set of constants from a server file. I managed to get all 3 constants out seperatly.

 

What i want to do is importing theese constants (28 in all) and storore them in a VI for further use in a formula node.

Opening 28 files from a server evry 5 seconds doesen't seem to be the way to go.

 

I have tried putting the data into arrays, and i tried using variables, but the format of the constants are giving me a headache.

 

The VI added is supposed to be a SubVI, Run once at the click of a button and use the end result, 3 outputs.

 

 

Download All
0 Kudos
Message 1 of 4
(2,667 Views)

TorbH,

 

I would strongly consider storing all your polynomial coefficients for the PT's in a single tab delimited file.  You could even use a .ini or xml style config file.  This would make getting the information into LV much easier.  I myself would use either a 2D array or 1D array of clusters to handle the data in my vi.  That choice would depend on exactly how I implemented the polynomial equation.

0 Kudos
Message 2 of 4
(2,639 Views)

Hello, thaks for responding.

 

Using 1 file instead of 28 would only make it easyer for me to make the LV SW, but the constant file access to the server would still be there, is this a propblem att all?

I have som experience in  server management, and 28 fileaccess in 5sec does not seem good to me. Correct me if I am wrong.

 

The equation is shown in the VI i have added now. (WT=A0+(R*A1)+(R*R*A2);)

 

I havent worked much with arrays and clusters yet, but i have tried. It keeps giving me errors like "double 64bit real - 15 digit presesion". Is there something i should keep in mind when using Fractions and exponential numbers?

 

Thanks,

 

0 Kudos
Message 3 of 4
(2,609 Views)

Hi TorbH,

 

to store data you should use shift registers (or feedback nodes). A functional global variable (aka ActionEngine) might be nice…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(2,595 Views)