Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rutgers!cmcl2!lanl!p3.lanl.gov!egw.weakm From: egw.weakm@p3.lanl.gov (Eric Wasserman) Newsgroups: comp.sys.mac.programmer Subject: Re: Import Binary Date File from PC Message-ID: <13899@lanl.gov> Date: 7 Feb 91 00:54:06 GMT Sender: news@lanl.gov Organization: LANL Lines: 31 References:<21958@duke.cs.duke.edu> <1991Feb6.102550.10982@irisa.fr> In article <1991Feb6.102550.10982@irisa.fr> boissier@irisa.fr (franck boissiere) writes: > From article <21958@duke.cs.duke.edu>, by fang@physics.phy.duke.edu (Fang Zhong): > > > > I use a PC to automate my experiment. I store my data on the PC in > > binary format as: > > > > > >> fp = fopen(filename, "ab"); > >> fwrite(&data, sizeof(float), 1,fp); > >> fclose(fp); > > > > I can use: > > > >> fread(&data, sizeof(float), 1, fp); > > > > to read the data back on PC. I plot my data with Igor on Mac. However, if... Igor version 1.24 includes an XOP called GBLoadWave (in the 'Sample XOPs' folder, I think) which has an option for swapping bytes which will let you read in PC binary files. This will at least get your data into Igor. Eric egw.weakm@p3.lanl.gov