LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save discontinu values in array

Hello everybody

 

For a school project I have to capture data (Heat flux) with a USB-6211 interface and save them in a file.

The values are discontinu, at certain times i have a value, triggered with a digital input from the interface. All these values should be saved in an array in excel or in a text file.

 

The problem I have is that every time the interface receives a trigger, LabView prompts for a new file and just saves one value in it.

 

I'm a novice with this software so there may be simple solutions but I haven't found any yet because of the wide variety of components.

0 Kudos
Message 1 of 9
(2,940 Views)

It helps if you post your VI, showing what you have tried so far.

 

We will not do your school assignments for you, because you would not learn anything that way but we can help you to learn about LV.

 

Some of the file VIs have an input to tell the VI whether to append new data to an existing file or to create a new one.  You also need to pass the file path or a file reference (depending on which file vI you use) from the first time it was called.  Use a shift register.

 

One more hint: While working on your program always keep the context help window open.  It shows you many things about the function or VI you are using and provides a link to the detailed help files.  These are great learning tools, and many of us who have been using LV for years still use them to learn everyday.

 

Lynn

Message 2 of 9
(2,924 Views)

Oke here is my file. I have already placed some components off which I think could help me with saving the files.

 

Next week I can't go to school because off a holiday week so I don't have the interface at my disposal.

 

Is there a better way than a waveform chart to view my measurements in real time, before I save them?

0 Kudos
Message 3 of 9
(2,903 Views)

I am trying to put the data in an array but everytime I receive a measurement, LabView asks me to save it in a different file.

Can I save this file triggered on a digital input?

0 Kudos
Message 4 of 9
(2,874 Views)

Hi,

 

Quick help is to use "Write to Measurement File". You can find it inside, function -> Programming -> File I/O.

Place this on block diagram as per your digital control function/logic, it will open one window for configuration. Select "Save to one file" and "Append to File". You have option to select file format as well.

 

Hope this helps

 

HS

0 Kudos
Message 5 of 9
(2,869 Views)

Thank you for your quick answer.

 

With this I can save them in one file but then they are in a strange format, nog just one number?

When I try to insert a trigger for a boolean it doens't accept it? How can I read a simple boolean from a daq interface?

0 Kudos
Message 6 of 9
(2,864 Views)

1) Please read the help file using ctrl+H and mouse over "Write to measurement file" express vi.

2) Use DAQ express VI as begineer to start with DAQ interface.

3) build your own logic to use digital control with function enable or disable, one option can be use of case structure.

 

Play with system to command it Smiley Happy

 

Thanks

- HS

0 Kudos
Message 7 of 9
(2,860 Views)

About the write to measurement file: I can't find anything about receiving a normal voltage into the file, it keeps giving me lots of numbers instead of some discrete values.

 

The goal is to receive a 2D array of measurements and save them in a text file or Excel.

0 Kudos
Message 8 of 9
(2,857 Views)

I found the solution. Thanks everyone.

0 Kudos
Message 9 of 9
(2,836 Views)