The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 import binary file - update system storage
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

uidt6047

Germany
4 Posts

Posted - 02/05/2015 :  05:49:27 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

uidt6047

Germany
4 Posts

Posted - 02/10/2015 :  06:34:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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?
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000