Author |
Topic |
|
uidt6047
Germany
4 Posts |
Posted - 02/05/2015 : 05:49:27 AM
|
Origin Ver. 8.6.0G (64bit) Sr1 Operating System: Windows7
Hi all,
because we store our binary measurement data in a very special data format I wrote my own import function which I also successfully called in the import wizard. (I used the example _import_to_wks() (Origin system folder\Samples\Import and Export\User Defined\ImportToMatOrWks.c) as base for my own function)
It works very well, besides the fact, that the system storage information, e.g. FILEPATH and FILENAME, isn't updated automatically! I fear that this is not working because I do not use the function parameter "Layer &lyTarget", because I load a project with several workbooks as template and fill in my data!
Does anyone know how I can force the update of the system storage in the (new) project/workbooks?
Thanks! |
|
lkb0221
China
497 Posts |
Posted - 02/05/2015 : 10:01:20 AM
|
Hi,
In that example, FILEPATH and FILENAME are not defined, you need to read them from your file yourself. That OC function only take the data string that been got from the file (vv), separate it into several sub strings and put them in the worksheet (wks created by lyTarget).
Zheng OriginLab |
|
|
uidt6047
Germany
4 Posts |
Posted - 02/10/2015 : 06:34:30 AM
|
Hi Zheng,
thanks for your reply!
Meanwhile I tried to import a binary file into my template (consists of 4 workbooks, each one for a part of the imported data) for several times and I found out, that the FILEPATH and FILENAME info is updated automatically for that workbooks where data is filled in (some could be only cleared, this depends on the content of the binary file). The SYSTEM.IMPORT info of the remaining workbooks is not updated!
Now I intend to update this information by myself, but I only find methods for getting this info (GetStorage/GetBinaryStorage), but not for putting it to the workbook!
Any idea how to put my FILEPATH and FILENAME info into every workbook I want? |
|
|
|
Topic |
|
|
|