LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Headers to origin files

Hello,
   I'm using the origin functions to create an origin file with a 2D array of data. I'd like to be able to add headers to this file to indicate what each column signifies eg voltage current etc. My problem is that the input of the OACommunication need to be a 2D array while the headers are text files. Also wirting to a file with the headers already writen in does not help since the headers are replaced with the data. I'm sure this is a do-able item. Using Labview 8.0 and origin 7.5
 
In essence I need to change the header data (a string) to and array to append to original data and write whole lot to origin file. Alternatively I need to somehow write strings to an origin file and then append the data to the same file.
 
any help appreciated.
 
Ta
Will
0 Kudos
Message 1 of 8
(3,696 Views)
In this thread a question very similar to yours was discussed (see message n°7). Hope this helps
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 8
(3,693 Views)

Hello CC,

   Not sure this is the same. I can set this up as required for a spread sheet file eg in Excel. Problem is that for origin I cannot write anything other than my array of data to the OA file. (or at least I think I cant ). Previously I have written the header to the spreadsheet file and then appended the dat afterwards. This works fine for "spreadsheet" file but I cannot seem to do it for the origin VI's.

 

L.

0 Kudos
Message 3 of 8
(3,689 Views)
I'm sorry I missed the "origin" refence in your post. I have no idea of what is an "origin file" or should I write "Origin file". Could you enlight me ?

Message Edité par chilly charly le 11-08-2007 04:07 PM
Chilly Charly    (aka CC)
0 Kudos
Message 4 of 8
(3,681 Views)
Don't bother. A Google search gave me all the information. Studying now...
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 8
(3,675 Views)

Hi again CC yes should have been Origin.

You may gain more insight be looking at the origin VI that are available from within labview, these are what I'm using. The operation of saving raw data is simple but putting the (text) headers in seems more complicated.

 

Thanks

L.

0 Kudos
Message 6 of 8
(3,666 Views)


Will3001 a écrit: ... You may gain more insight be looking at the origin VI that are available from within labview...

 Where are they ?
Chilly Charly    (aka CC)
0 Kudos
Message 7 of 8
(3,650 Views)

If you go to a blank block diagram and right click, look at the user.vi an it should be under this. Also you'll need to have origin installed on the same machine as labview. If the Origin VI's dont appear copy the manually from "program files\origin\samples\automation\Labview" to \program files\national instruments\Labview\user.lib

After this when you look at the pallet again from the blank vi they are there. I particular look at tutorial 2. It creates a nice set of data and saves to a preedfined origin file. What i'd like to do is add the header data the this created file, preferrably before it saves it fully.

 

Hope this helpsSmiley Wink

 

L.

0 Kudos
Message 8 of 8
(3,645 Views)