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 for Programming
 LabTalk Forum
 Kamx to Origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

smithy

USA
3 Posts

Posted - 07/11/2002 :  1:20:53 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Does anyone know how to fool Origin into reading Kmax files without changing the Kmax files into text form first?. I know that I will not be able to import them but all programs should be able to read binary files when you get right down to it. I just don't know just how to do that.

CStorey

Canada
137 Posts

Posted - 07/11/2002 :  1:34:56 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
What are kmax files?
Can you post a small sample?



Craig Storey
Origin WebRing Member - http://g.webring.com/hub?ring=originwebring
Go to Top of Page

smithy

USA
3 Posts

Posted - 07/11/2002 :  2:23:25 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Kmax is a list-mode(multiparameter)data acquisition software that runs on Mac OS, Windows and Linux. It supports single- and dual-parameter data displays, provides a variety of data formatting options and allows the user to configure instrumentation from the host computer. It also allows the import and export of data. It is developed by the Sparrow Corporation. The format that Kmax files are in however does not allow for them to be imported in Origin. I was wondering if there was a way that i can do that without first changing the files to text.
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 07/11/2002 :  2:50:13 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
If Kmax files contain 16 bit unsigned integer or 4 byte floating point numbers and have no headers you can import them as LabTech files. (File | Import | LabTech). That's probably the only ready-built method that might help you in Origin 5.0 and above.

In Origin 7.0 you can write your own OriginC function to import your files. The Binary Import project in the Samples\Programming folder will get you started.

In the Professional version of Origin 5.0 or later you can use the File Utilities Module (FUM) to import about anything you want. You'll have to do some scripting there also.

As Craig suggested, you might get some help from the forum if you post a sample.

Mike Buess
Origin WebRing Member
Go to Top of Page

smithy

USA
3 Posts

Posted - 07/11/2002 :  8:29:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Craig and Mike i just want to say thank you very much your help was greatly appreciated. Unfortunately i can't post an example, but for now i have passed the problem into knowing hands. Thanx guys.
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