LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

binary file import and export in lab windows cvi

Hello,

 

I have some standard binary file format (.sie) that has been written in origin IDE. The sie type extension file format is a public format, but not defined by Origin. In origin IDE, i can be able to import these files and also be able to export it to excel as csv type. Now, i want to do the same thing in lab windows cvi. i need to import .sie type file and be able to read and export it to excel in lab windows cvi. Is this possible? Please help me to work on this project. Thanks in advance.

 

Regards,

Jayakumar.V

0 Kudos
Message 1 of 5
(3,961 Views)

Reading and writing binary file is indeed possible in CVI, the problem normally lien in the definition of the file format you want to access.

I never found .SIE extension during my activity; a fast search on google returned this page with a link to the document explaining one file structure: it's a format dedicated to accounting so it's possibly not  your case, but could they be your files?

 

Before finding the complete description of the file format you cannot think of any operation on the file itself, unless it is so self evident that you need little effort to access file content (this normally happens only on text files).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,955 Views)

With Origin, another direction you could go would be to use ActiveX to control the Origin software through CVI using Origin's COM interface.  In theory you should be able to call up Origin and read/write to the .sie files through their application though I haven't done this with their software so I don't know how feasible this is.

 

http://www.originlab.com/index.aspx?go=Products/Origin/Programming/AutomationServer 

0 Kudos
Message 3 of 5
(3,937 Views)

Hi Roberto,

 

you can get .SIE extension file information from below the link.

 

http://wiki.originlab.com/~originla/wiki2/index.php?title=X-Function:Impsie

 

http://wiki.originlab.com/~originla/wiki2/index.php?title=X-Function:ExpASC

 

 

Regards,

Jayakumar.V

0 Kudos
Message 4 of 5
(3,932 Views)

I see no file structure informations in the liks you provided.  What I am intending is a detailed explanation of file content byte by byte. As an example, here you can find the structure of bitmap files: as you can see the information provided is very detailed and throughly described. With this type of information you are able to read/write .BMP files (here you can find an example I wrote which demonstrates how to perform operations on these files: you can take it as a reference for this kind of operation, once you have find the file structure description).



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 5 of 5
(3,921 Views)