04-12-2011 08:51 AM
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.
04-12-2011 10:03 AM
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
04-15-2011 08:15 AM
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?
04-26-2011 06:37 AM
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?
04-26-2011 06:52 AM
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
04-26-2011 07:32 AM
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?
04-26-2011 07:52 AM
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
Thanks
- HS
04-26-2011 08:26 AM
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.
05-06-2011 01:59 PM
I found the solution. Thanks everyone.