MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > decoding floating point binary data from an HP imp... 

Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 11 Aug, 2009 16:25:04 Message: 1 of 20 
Hi. 
Subject: decoding floating point binary data from an HP impedance analyzer From: James Tursa Date: 11 Aug, 2009 19:20:22 Message: 2 of 20 
"Mikael Evander" <evander@stanford.edu> wrote in message <h5s610$fvr$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: James Tursa Date: 11 Aug, 2009 19:26:19 Message: 3 of 20 
"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <h5sg9m$4rk$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: Roger Stafford Date: 11 Aug, 2009 19:34:19 Message: 4 of 20 
"Mikael Evander" <evander@stanford.edu> wrote in message <h5s610$fvr$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: James Tursa Date: 12 Aug, 2009 13:57:19 Message: 5 of 20 
"Roger Stafford" <ellieandrogerxyzzy@mindspring.com.invalid> wrote in message <h5sh3r$3l$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 24 Sep, 2009 23:05:03 Message: 6 of 20 
"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <h5sgkr$rsk$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: James Tursa Date: 26 Sep, 2009 02:09:04 Message: 7 of 20 
"Mikael Evander" <evander@stanford.edu> wrote in message <h9gtuv$kmp$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 28 Sep, 2009 18:33:02 Message: 8 of 20 
"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <h9jt40$oid$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 28 Sep, 2009 19:15:19 Message: 9 of 20 
Right. I'm connected to the instrument again and extracted some data. To start with what's working, I told the instrument to transfer the data in ascii format, read it with fscanf(g) and converted it using str2num. What you get then are the correct values and they look like this: 
Subject: decoding floating point binary data from an HP impedance analyzer From: Rune Allnor Date: 28 Sep, 2009 19:41:16 Message: 10 of 20 
On 28 Sep, 21:15, "Mikael Evander" <evan...@stanford.edu> wrote: 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 28 Sep, 2009 20:49:02 Message: 11 of 20 
Rune Allnor <allnor@tele.ntnu.no> wrote in message <42a37d2d781f41c6b525bb803836eed8@g23g2000yqh.googlegroups.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 29 Sep, 2009 00:07:01 Message: 12 of 20 
Rune Allnor <allnor@tele.ntnu.no> wrote in message <42a37d2d781f41c6b525bb803836eed8@g23g2000yqh.googlegroups.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 29 Sep, 2009 00:15:05 Message: 13 of 20 
"Mikael Evander" <evander@stanford.edu> wrote in message <h9rj35$k1p$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: James Tursa Date: 29 Sep, 2009 05:29:01 Message: 14 of 20 
"Mikael Evander" <evander@stanford.edu> wrote in message <h9r207$m2p$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: James Tursa Date: 29 Sep, 2009 05:55:04 Message: 15 of 20 
"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <h9s5ut$aai$1@fred.mathworks.com>... 
Subject: decoding floating point binary data from an HP impedance analyzer From: Rune Allnor Date: 29 Sep, 2009 06:44:13 Message: 16 of 20 
On 29 Sep, 07:29, "James Tursa" 
Subject: decoding floating point binary data from an HP impedance analyzer From: Rune Allnor Date: 29 Sep, 2009 07:06:40 Message: 17 of 20 
On 11 Aug, 18:25, "Mikael Evander" <evan...@stanford.edu> wrote: 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 29 Sep, 2009 15:33:04 Message: 18 of 20 
Fantastic!!! Can't wait to get back to work and try this out. Seems like fread is a trickier command than I first thought :) 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 29 Sep, 2009 18:24:20 Message: 19 of 20 
Hmm, apparently there are different syntaxes depending on if you use fread for reading from a file or from an instrument. 
Subject: decoding floating point binary data from an HP impedance analyzer From: Mikael Evander Date: 29 Sep, 2009 18:37:02 Message: 20 of 20 
"Mikael Evander" <evander@stanford.edu> wrote in message <h9tjck$n5i$1@fred.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.