I'm currently having problems formatting/using an array to log data (well it's going to be saved in a .csv file, but I'm trying to use the array to get it all properly formatted for the .csv file for easy reading). It's probably something easy that I'm overlooking or not adding. If someone with more knowledge of labview (I've only worked a couple of months on/off with it) could guide me through the process of how to make my idea work, I'd be most appreciative.
I've attached the labview file so you can see a bit more what I'm trying to do and how I'm trying to approach it.
Also, if you need a bit more explanation just ask.
Solved! Go to Solution.
At first glance, it looks like you've made this more complicated than it has to be.
You've got a ton of controls and indicators which might be better handled as arrays or clusters.
For your immediate problem of the file write, you could just build a numeric array and then use the Write to Spreadsheet File.vi and select a comma as the separator. The step where you are creating the spreadsheet string and then Writing to Text File is unnecessary.
Much too complicated. Your fp is too busy. You can condense it by putting all your frequency controls into an array. Why so many frequency settings. Your case structure has 40 cases just for this! I'm not sure what you are doing with the build array function. I assume the array of string constants are supposed to be your header in the report. This is not what the program does. The data going to the write to text file function doesn't make any sense. The initial build array function between the controls and the main build isn't needed.
Well the idea with the many Voltage and Frequency controls were so that at each interval of a thermotron program we could program in a different Voltage and Frequency and we could have up to 40 different variations. I unfortunately do not have the experience with LabVIEW to do this any more efficiently. I'm also going to be writing to this file for almost 30 days. While I was reading through tutorials and such, I was told that opening and closing the file was rather inefficient of my program. So I guess I was trying to re-write what has already been written.
But if you guys could point me to some tutorials or knowledgebase pages to make my program more efficient (i.e. help with all those voltage and frequency controls) I'd be appreciative.
I'll also try out your guy's file suggestions. Since I've got a 3 second delay built into my program, I guess it doesn't really matter if it takes a long to time to open and close the file.
Thanks for the help!