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
 All Forums
 Origin Forum
 Origin Forum
 import binary file - update system storage

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
uidt6047 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!
2   L A T E S T    R E P L I E S    (Newest First)
uidt6047 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?
lkb0221 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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000