From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-25-2010 12:52 PM
Solved! Go to Solution.
01-25-2010 01:04 PM
01-26-2010 08:10 AM
I attached what I have so far utilizing the 9211 and 9239 cards in a compaq daq - the columns aren't seperated after running the vi in the excel spreadsheet.
I need to actually stream16 thermocouples to a spreadsheet along with the time the samples were taken in seperate columns.
01-26-2010 09:18 AM
I'm still stuck with LV 8.5.1 so I can't open that file (you can save for previous and repost it).
If you're not getting the right columns in your spreadsheet you're probably using the wrong delimiter. The file write VIs default to a tab, you want to use a comma when writing to an Excel spreadsheet.
01-26-2010 09:35 AM
01-26-2010 09:36 AM
Excel is showing the data in separate columns so you must have specified the wrong delimiter when you imported the file. How exactly did you do that? What kind of extension did you give the file?
If you want date/time, then you will have add that information. You are currently removing all timing information when you convert from dynamic data to a 1D DBL array. You could use the Get Date/Time String and convert the data to string before using the Build Array.
p.s. Using the second build array to convert to a 2D DBL is just not necessary. Also, why are you acquiring so many samples at that rate and then throwing them all away? If you only want one sample, set the DAQ Assistant for that. If you want to acquire that many samples, at least do something with them like taking the mean.
01-26-2010 10:08 AM
Oops, I had it backwards on the delimiters. I never write to .xls files since Excel is limited to 65535 rows. I always write to a .csv file first and then massage the data and present it in excel later.
You have to do two things:
1. Change the comma delimiter to a tab (or just remove it since that's the default).
2. Replace the commas in your header string to tabs (i.e: Pressure\tBonnet\tUpper\tMiddle\tLower ).
Also, follow the advice of Dennis. I would take a couple hundred points and take the mean for the final result.
01-26-2010 10:18 AM
01-26-2010 01:37 PM
01-26-2010 02:03 PM
You first have to realize that the Write to Spreadsheet file does NOT create an Excel file. You are creating a text file with a .xls extension and Excel is trying to import that and convert. Look at the file with Notepad and see what is actually being used as a delimiter. My guess is that you have improperly specified the delimiter with the Array to Spreadsheet String. You do not have to wire anything to this as the default is a tab.
Post the modifed VI and/or the text file.