11-21-2007 07:24 PM
11-21-2007 08:43 PM
I don't see the express tables you are referring to. I don't know what you mean by copy and paste to an excel spreadsheet. Where are you copying from?
You should be able to write to an LVM file. The express VI for "Write to Measurement File" has a lot of options. You may need to turn off a lot of the outputs like headers so that it doesn't put extra info into the data file.
You have a write to spreadsheet file VI in there that should be able to do the job as well. Though you have a False constant wired to "append to file". With this, you would get the data file overwritten on each iteration of the loop. You may want to put a True constant in there.
11-22-2007 03:22 PM
11-22-2007 09:55 PM
Write to Measurement File, Export Waveforms to Spreadsheet File, Write to Spreadsheet File, Write Text File can all do what you want. If you want to write as data is acquired, then the write functions belongs inside the loop. If you want to save once, then the write function belongs outside the while loop. The exit tunnel of a loop can be click on and select 'Enable Autoindexing'. This will create an array of all results of all iterations. Don't pass dynamic data out of a loop that way though. Convert to waveform data type first.
The label 'time' on an XY Graph is just that - a label. Use the text tool to change it to whatever you want. If you are not seeing any data in the graph and you are using the Express XY Graph, it's probably because you have not wired a false constant to the reset input. Since you do not have an XY Graph in your program (just like you don't have the tables you talked about), I can only speculate.
11-23-2007 01:51 AM
Look, the express tables were added to the program after i uploaded it to the forum, im sure you know what they look like so why state the obvious?
I never said I had XY graphs in my program either, I just asked how to use them.
My main problem is writing data, i am confused as to what needs to go where. I got the program to take data samples but now i need the program to graph different readings with respect to eachother. And write this to an excel file. It is easy to you guys but i am just learning it so bare with me.
The 'path constant' block attachs to the 'write to meas' file. Do i put something like this in the path constant: C:/something/somewhere/testdata1.xls ? note the .xls.
I will put the write meas file inside the loop, the path constant inside as well? and what does append file mean?
Sorry for the newbieness...
- Dan
11-23-2007 11:16 AM
I understand you are new but if you refer to certain objects in a program and those objects don't exist in the program you post, it's just confusing to someone trying to help you.
Path controls, if you use them, should contain the complete path - including file name and extension. With the Write to Measurement File, you can provide a path name in the properties page and don't need one on the diagram. There are different options for file naming with the express VI. Clicking the 'Help' button will explain the different options.
If you put a path control inside a loop, you can change the path as the VI runs.
Append means this. If you don't append, you overwrite what is already written.
11-23-2007 01:48 PM
DBFIU wrote:
The 'path constant' block attachs to the 'write to meas' file. Do i put something like this in the path constant: C:/something/somewhere/testdata1.xls ? note the .xls.
11-24-2007 02:02 AM
11-24-2007 08:13 PM
DBFIU wrote:
So in the end, what should the file extension name be?does it create somewhere/something.lvm ? or should i make it .txt? and then import it to excel and choose delimiting parameters?
11-25-2007 07:18 AM
Thanks for the help Ravens.
Tonight we were able to log data, I saved it as a .txt file and copy/pasted it into excel. I am going to try the XY graph express function soon. It's not super important but it would be nice to be able to choose what i want as the X axis. In any case, I figured it out thanks to everyones help.
Also one more thing,
I am using a signal splitter to break up dynamic data. Sometimes the data gets re-ordered completely different through the signal splitter and mixes up my channels and real time formulas. What is going on here? Why doesnt the splitter have some sort of channel label? And what exactly is Dynamic data? I know what its used for but I dont know what it means precisely.
Thanks again,
- Dan