<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.igorexchange.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Recent posts by all users</title>
 <link>http://www.igorexchange.com/tracker/%2A</link>
 <description>An RSS feed containing all recent posts on the IgorExchange site.</description>
 <language>en-US</language>
<item>
 <title>Need to extract numeric data from a string of ascii</title>
 <link>http://www.igorexchange.com/node/845</link>
 <description>&lt;p&gt;I running a monte carlo program that generates ascii data files in multielement lines.  Below is a typical example of one of the line:&lt;/p&gt;
&lt;p&gt;   0.17758E+01 -0.14488E+01 -0.41742E+00  0.85527E+00 -0.47925E-01 -0.51596E+00  0.65037E-05  0.10000E+01  0.69302E+02&lt;/p&gt;
&lt;p&gt;I don&#039;t have much control over the output format for this data string, except that I have the option of writing the file in binary, but I&#039;m not ready to make that leap yet.&lt;/p&gt;
&lt;p&gt;I would like to read in the line and extract each numeric value.  I&#039;m fairly new at igor, and I&#039;m having difficulties getting the string functions to do what I want of them.  Useful help or advice would be appreciated :)&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/845#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Fri, 21 Nov 2008 10:58:04 -0600</pubDate>
 <dc:creator>cdbass</dc:creator>
 <guid isPermaLink="false">845 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Igor Pro Wish List</title>
 <link>http://www.igorexchange.com/node/134</link>
 <description>&lt;p&gt;This topic will serve as the IgorPro wish list.  Feel free to make suggestions for features that you think would improve Igor Pro. &lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note:  This discussion is for Igor Pro suggestions only.  To make suggestions for IgorExchange.com, please see the &lt;a href=&quot;175&quot;&gt;IgorExchange.com Wish List discussion&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/134#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Mon, 09 Jul 2007 21:38:54 -0500</pubDate>
 <dc:creator>hrodstein</dc:creator>
 <guid isPermaLink="false">134 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Programmatically creating waves</title>
 <link>http://www.igorexchange.com/node/841</link>
 <description>&lt;p&gt;I am brand new at writing macros (in Igor), so I&#039;m trying to figure stuff out as I go.&lt;br /&gt;
One piece of code that I am having trouble with is programmatically creating waves.&lt;br /&gt;
In my procedure, heres what I have so far:&lt;/p&gt;
&lt;p&gt;Make/N=200 &#039;WaveA&#039;,&#039;WaveB&#039;,&#039;WaveC&#039;..... etc&lt;br /&gt;
Prompt xWave, &quot;Enter wave for x values : &quot;&lt;br /&gt;
Prompt yWave, &quot;Enter wave for y values: &quot;&lt;br /&gt;
DOPrompt &quot;Enter x and y waves&quot;, xWave, yWave&lt;/p&gt;
&lt;p&gt;Is this correct for picking out two of the created waves, so later in the macro I can graph the two?&lt;br /&gt;
Also, is it possible to provide a list of the created waves within the prompt so the user can just pick 2 out?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Cory&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/841#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Fri, 14 Nov 2008 15:34:20 -0600</pubDate>
 <dc:creator>Cory K</dc:creator>
 <guid isPermaLink="false">841 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Skip loaded columns</title>
 <link>http://www.igorexchange.com/node/843</link>
 <description>&lt;p&gt;I am reading in tab-delimited text files using:&lt;br /&gt;
LoadWave&lt;/p&gt;
&lt;p&gt;Are there any flags I can add to skip columns.&lt;br /&gt;
For example if I have columns 0,1,2,3,4,5,6,7,8&lt;/p&gt;
&lt;p&gt;But I only want to read in 0,1,4,5,6&lt;br /&gt;
What flag would I add?&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/843#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 19 Nov 2008 18:50:57 -0600</pubDate>
 <dc:creator>Cory K</dc:creator>
 <guid isPermaLink="false">843 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Joystick XOP IGOR.6.10.x-0.2</title>
 <link>http://www.igorexchange.com/node/844</link>
 <description>&lt;p&gt;This minor update fixes a relatively major issue. The previous version would fail if the user switched out of the Igor application. This version should continue to run if Igor is running in the background.&lt;/p&gt;
&lt;p&gt;Please send bug reports to Alan Saul via &lt;a href=&quot;mailto:alan@adale.org&quot;&gt;alan@adale.org&lt;/a&gt;.&lt;/p&gt;
</description>
 <category domain="http://www.igorexchange.com/taxonomy/term/84">6.10.x</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/3">Windows</category>
 <pubDate>Thu, 20 Nov 2008 10:44:35 -0600</pubDate>
 <dc:creator>AlanSaul</dc:creator>
 <guid isPermaLink="false">844 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Plotting only every Nth point</title>
 <link>http://www.igorexchange.com/node/842</link>
 <description>&lt;p&gt;I&#039;m plotting data as yWave vs. xWave.  There are simply too many points displayed.  I&#039;d like to only plot every, say, 10th point.  But I don&#039;t want to delete any of the data.  &lt;/p&gt;
&lt;p&gt;Also, I use several different yWaves---something like yWave1, yWave2, etc---plotted against the same xWave, so I don&#039;t want to have to change the values of xWave.  &lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
Kevin&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/842#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 19 Nov 2008 14:19:16 -0600</pubDate>
 <dc:creator>kevin</dc:creator>
 <guid isPermaLink="false">842 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Multiply array by X</title>
 <link>http://www.igorexchange.com/node/840</link>
 <description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&#039;m not too familiar with IGOR syntax, how would I take a given array and multiply the whole thing by some constant?&lt;/p&gt;
&lt;p&gt;Is this close?:&lt;br /&gt;
Duplicate wave1, wave2&lt;br /&gt;
wave2 = wave1 * 10&lt;br /&gt;
Display wave2&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/840#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Fri, 14 Nov 2008 12:20:48 -0600</pubDate>
 <dc:creator>Skargaemer</dc:creator>
 <guid isPermaLink="false">840 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Force multipeak fitting</title>
 <link>http://www.igorexchange.com/node/834</link>
 <description>&lt;p&gt;Hi there, I am new to this program, here we have written a program to calculate peak area of a series spectra in one file ,for example, wave0 to wave 8000,  to construct one intensity image, , while we found that there are two peaks so close that general fitting can not recognize these two peaks as one, we can force fit the specific peak range into two peaks, can any one can tell me how to do batch fitting so that we needn&#039;t to do so one by one ?&lt;br /&gt;
Thanks&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/834#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Mon, 10 Nov 2008 16:32:55 -0600</pubDate>
 <dc:creator>yqgao</dc:creator>
 <guid isPermaLink="false">834 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Rudimentary Binary File Reader</title>
 <link>http://www.igorexchange.com/node/838</link>
 <description>&lt;p&gt;Enables you to peek inside binary files to to see what is inside of them. Useful if, e.g.,  you are making your own file loader and need to read headers and find offsets and see what kind of data is in the file.&lt;br /&gt;
&lt;div class=&quot;geshifilter&quot;&gt;&lt;pre class=&quot;igor geshifilter-igor&quot; style=&quot;font-family:monospace;&quot;&gt;&lt;span class=&quot;kw5&quot;&gt;#pragma&lt;/span&gt; rtGlobals=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;		&lt;span class=&quot;co1&quot;&gt;// Use modern global access method.&lt;/span&gt;
&lt;span class=&quot;kw5&quot;&gt;#pragma&lt;/span&gt; &lt;span class=&quot;kw3&quot;&gt;IgorVersion&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;
&lt;span class=&quot;kw5&quot;&gt;#pragma&lt;/span&gt; IndependentModule=BinaryReader
&lt;span class=&quot;co1&quot;&gt;//BinaryReader helps you peek into binary files on disk to see what is inside of them. &lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;// Useful if, e.g.,  you are making your own file loader and need to read headers and find offsets and see what kind of data is in the file.&lt;/span&gt;
 
&lt;span class=&quot;co1&quot;&gt;//modified Nov 19 2007 // made independent module&lt;/span&gt;
 
&lt;span class=&quot;kw2&quot;&gt;Constant&lt;/span&gt; kSegmentSize = &lt;span class=&quot;nu0&quot;&gt;10000&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//how many bytes of the file we are going to show at one time&lt;/span&gt;
 
&lt;span class=&quot;kw2&quot;&gt;menu&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Data&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;Submenu&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;packages&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;st0&quot;&gt;&amp;quot;Binary File Reader&amp;quot;&lt;/span&gt;, BinaryReader# BinaryFileReader &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;end&lt;/span&gt;
 
&lt;span class=&quot;co1&quot;&gt;//*****************************************************************************************************&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;//make the packages folder and the global variables and the control panel&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;Function&lt;/span&gt; BinaryFileReader &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
 
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;datafolderexists&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;root:packages:&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;newdatafolder&lt;/span&gt; root:packages
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;datafolderexists&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;root:packages:BinaryReader&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;newdatafolder&lt;/span&gt; root:packages:BinaryReader
		&lt;span class=&quot;co1&quot;&gt;//make waves for the list box showing the first segment of data in the selected file&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;make&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;o&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;n =  &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;kSegmentSize,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; root:packages:BinaryReader:FileListWave
		&lt;span class=&quot;kw4&quot;&gt;make&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;o&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;n = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;kSegmentSize,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; root:packages:BinaryReader:FileListSelWave
		&lt;span class=&quot;co1&quot;&gt;//Make a text wave for the listbox that shows the data after being loaded according to the chosen specs&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;make&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;t&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;o&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;n=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; root:packages:BinaryReader:OutPutWave
		&lt;span class=&quot;co1&quot;&gt;//make a temporary wave to read data into before displaying it in the listbox&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;make&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;o&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;n = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; root:packages:BinaryReader:TempWave
		&lt;span class=&quot;co1&quot;&gt;//First row of waves will show byte offset&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;SetDimLabel&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,0,BytePos,root:packages:BinaryReader:FileListWave
		&lt;span class=&quot;kw4&quot;&gt;SetDimLabel&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,0,BytePos root:packages:BinaryReader:OutPutWave
		&lt;span class=&quot;co1&quot;&gt;//Second row will show the data as a character&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;SetDimLabel&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,Char,root:packages:BinaryReader:FileListWave
		&lt;span class=&quot;co1&quot;&gt;//a global string to contain a list of segments in the file for loading&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;G root:packages:BinaryReader:SegmentsList = &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
		&lt;span class=&quot;co1&quot;&gt;//global variable to hold reference nmber to the open file&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;G root:packages:BinaryReader:BRrefNum = &lt;span class=&quot;kw3&quot;&gt;nan&lt;/span&gt;
		&lt;span class=&quot;co1&quot;&gt;//global string to display name of open file in a title box&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;G root:packages:BinaryReader:fileNameStr = &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//try to bring panel to the front&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;doWindow&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;F Binary_Reader
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_Flag&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//make the panel, as it was not already open&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;NewPanel&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;K=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;W=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;78&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;105&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;534&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;452&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; as &lt;span class=&quot;st0&quot;&gt;&amp;quot;Binary Reader&amp;quot;&lt;/span&gt;	
	&lt;span class=&quot;kw4&quot;&gt;DoWindow&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;C Binary_Reader
	&lt;span class=&quot;kw4&quot;&gt;ListBox&lt;/span&gt; FileAsByteList,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;215&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;101&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;319&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;ListBox&lt;/span&gt; FileAsByteList,help=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Shows the selected segment of data in the selected file as characters&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;ListBox&lt;/span&gt; FileAsByteList,listWave=root:packages:BinaryReader:FileListWave
	&lt;span class=&quot;kw4&quot;&gt;ListBox&lt;/span&gt; FileAsByteList,selWave=root:packages:BinaryReader:FileListSelWave
	&lt;span class=&quot;kw4&quot;&gt;ListBox&lt;/span&gt; FileAsByteList,mode= &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;,widths=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;13&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;Button&lt;/span&gt; OpenFileButton,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;7&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;kw2&quot;&gt;proc&lt;/span&gt;=BRopenFIleProc,title=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Open File&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;TitleBox&lt;/span&gt; FileNameTitle,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;79&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;383&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;TitleBox&lt;/span&gt; FileNameTitle,&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt;= root:packages:BinaryReader:fileNameStr
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; SegmentsPopup,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;7&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;31&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;99&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;kw2&quot;&gt;proc&lt;/span&gt;=BRLoadSegmentProc,title=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Load Segment&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; SegmentsPopup,mode=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,popvalue=&lt;span class=&quot;st0&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt;,value= #&lt;span class=&quot;st0&quot;&gt;&amp;quot;root:packages:BinaryReader:SegmentsList&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; EndianPopUp,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;121&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;178&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,title=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Byte Order&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; EndianPopUp,mode=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,popvalue=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Big-endian (Mac)&amp;quot;&lt;/span&gt;,value= #&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;Big-endian (Mac);Little-endian (Win)&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; UnSignedPopup,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;96&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;134&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,title=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Integer Data is&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; UnSignedPopup,mode=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,popvalue=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Signed&amp;quot;&lt;/span&gt;,value= #&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;Signed;UnSigned&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; DataFormatPopUp,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;72&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;140&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,title=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Data Format&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; DataFormatPopUp,mode=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,popvalue=&lt;span class=&quot;st0&quot;&gt;&amp;quot;1 byte int&amp;quot;&lt;/span&gt;,value= #&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;1 byte int;2 byte int (word);4 byte int;4 byte float;8 byte float (double)&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;Button&lt;/span&gt; ShowSelectionButton,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;39&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;149&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;101&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;27&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;kw2&quot;&gt;proc&lt;/span&gt;=BRShowSelection,title=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Show Selection&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;ListBox&lt;/span&gt; OutPutList,pos=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;323&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;27&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,size=&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;129&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;315&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;ListBox&lt;/span&gt; OutPutList,listWave=root:packages:BinaryReader:OutPutWave
	&lt;span class=&quot;kw4&quot;&gt;SetWindow&lt;/span&gt; kwTopWin,hook=BRCloseHook
&lt;span class=&quot;kw2&quot;&gt;EndMacro&lt;/span&gt;
 
&lt;span class=&quot;co1&quot;&gt;//*****************************************************************************************************&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;//Close the open file when the Binary_Reader panel is closed and also kill the packages folder&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;Function&lt;/span&gt; BRCloseHook &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;infoStr&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;String&lt;/span&gt; InfoStr
 
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;cmpstr&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;stringByKey&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;EVENT&amp;quot;&lt;/span&gt;, infoStr&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;kill&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; == 0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;NVAR&lt;/span&gt; BRrefNum = root:packages:BinaryReader:BRrefNum
		&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; LocalRefNum = BRrefNum
		&lt;span class=&quot;kw4&quot;&gt;FStatus&lt;/span&gt; LocalRefNum
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_Flag&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw4&quot;&gt;Close&lt;/span&gt; LocalRefNum
		&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;killdatafolder&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;Z&lt;/span&gt; root:packages:BinaryReader
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;end&lt;/span&gt;
 
&lt;span class=&quot;co1&quot;&gt;//*****************************************************************************************************&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;//Open a file on disk, save the refernce number in a global variable, and load the first segment of the file&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;Function&lt;/span&gt; BRopenFIleProc&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ctrlName&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; : ButtonControl
	&lt;span class=&quot;kw2&quot;&gt;String&lt;/span&gt; ctrlName
 
	&lt;span class=&quot;co1&quot;&gt;//make reference to global variables&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;SVAR&lt;/span&gt; fileNameStr =root:packages:binaryReader:fileNameStr
	&lt;span class=&quot;kw2&quot;&gt;NVAR&lt;/span&gt; BRrefNum = root:packages:BinaryReader:BRrefNum
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; localRefNum = BRrefNum
	&lt;span class=&quot;kw2&quot;&gt;SVAR&lt;/span&gt; segmentsList = root:packages:BinaryReader:SegmentsList
	segmentsList = &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;T&lt;/span&gt; fileListWave = root:packages:BinaryReader:FileListWave
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt; fileListSelWave = root:packages:BinaryReader:FileListSelWave
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt; tempwave = root:packages:BinaryReader:tempwave
	&lt;span class=&quot;co1&quot;&gt;//close the file that was previously open, if any&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;FStatus&lt;/span&gt; localRefNum
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_Flag&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;Close&lt;/span&gt; localRefNum
		BRrefNum = &lt;span class=&quot;kw3&quot;&gt;Nan&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//Open a new file chosen by the user and save the refnum in the global variable&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;Open&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;M=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Choose a file to examine&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;R&lt;/span&gt; localRefNum
	fileNameStr = S_fileName
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;cmpstr&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;S_fileName, &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; == 0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		BRrefNum = &lt;span class=&quot;kw3&quot;&gt;nan&lt;/span&gt;
		fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; 0
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		BRrefNum = localRefNum
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//Find the number of segments in the file, and make the list of segments used in the popmenu&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;FStatus&lt;/span&gt; localRefNum
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; ii, numSegments = &lt;span class=&quot;kw3&quot;&gt;ceil&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_logEOF&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ii = 0; ii &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; numSegments; ii += &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		segmentsList += &lt;span class=&quot;kw3&quot;&gt;num2str&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endfor&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//Load the first Segment in the file&lt;/span&gt;
	BRLoadSegmentProc&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;PopupMenu&lt;/span&gt; SegmentsPopup mode=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;	
&lt;span class=&quot;kw2&quot;&gt;End&lt;/span&gt;
 
&lt;span class=&quot;co1&quot;&gt;//*****************************************************************************************************&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;//Show the data selected in the file listbox in the output list box by loading the data from the file with the selected options&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;Function&lt;/span&gt; BRShowSelection&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ctrlName&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; : ButtonControl
	&lt;span class=&quot;kw2&quot;&gt;String&lt;/span&gt; ctrlName
 
	&lt;span class=&quot;co1&quot;&gt;//Make references to globals&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;NVAR&lt;/span&gt; BRrefNum = root:packages:BinaryReader:BRrefNum
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; localRefNum = BRrefNum
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;T&lt;/span&gt; fileListWave = root:packages:BinaryReader:FileListWave
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt; fileListSelWave = root:packages:BinaryReader:FileListSelWave
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt; tempwave = root:packages:BinaryReader:tempwave
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;T&lt;/span&gt; outputWave = root:packages:BinaryReader:OutPutWave
	&lt;span class=&quot;co1&quot;&gt;//make sure file reference is valid&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;FStatus&lt;/span&gt; localRefNum
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_Flag&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw2&quot;&gt;SVAR&lt;/span&gt; FileNameStr = root:packages:BinaryReader:FileNameStr
		&lt;span class=&quot;kw4&quot;&gt;doalert&lt;/span&gt; 0, &lt;span class=&quot;st0&quot;&gt;&amp;quot;The selected file, &amp;quot;&lt;/span&gt; + FileNameStr +&lt;span class=&quot;st0&quot;&gt;&amp;quot;, is not open.&amp;quot;&lt;/span&gt;
		FileNameStr = &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//find the start and end of the selection in the file listbox&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; ii, startpos =0,numBytes=0
	&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ii = 0; ii &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; kSegmentSize; ii += &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;fileListSelWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; == &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endfor&lt;/span&gt;
	StartPos = ii
	&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;;ii &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; kSegmentSize; ii += &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;fileListSelWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; == 0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endfor&lt;/span&gt;
	numBytes = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ii - StartPos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//we will read the selected bit of the file into the temporary wave according to the choices on these panel popups&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;controlinfo&lt;/span&gt; DataFormatPopUp
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; DataFormat = V_Value	&lt;span class=&quot;co1&quot;&gt;//choices in menu listed in same order as for /F= option in FBinRead command&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;controlinfo&lt;/span&gt; UnSignedPopup
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; UnSigned = V_Value -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//0 for Signed (default in FBInRead) 1 for unsigned (requires/U option)&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;controlinfo&lt;/span&gt; EndianPopUp
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; byteOrder = V_Value + &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//byteorder will be 2 for bigendian, 3 for small endian to specify endian in FBinRead command&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//set the numtype variable according to Wavemetrics conventions &lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; theNumType = 0 
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; dataBytes &lt;span class=&quot;co1&quot;&gt;//this variable will hold the number of bytes per data point&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;DataFormat &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;UnSigned&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		theNumType += &lt;span class=&quot;nu0&quot;&gt;64&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;switch&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;DataFormat&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;: &lt;span class=&quot;co1&quot;&gt;//byte&lt;/span&gt;
			theNumType += &lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;
			dataBytes = &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
			&lt;span class=&quot;kw4&quot;&gt;SetDimLabel&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,Byte,root:packages:BinaryReader:OutPutWave
			&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;: &lt;span class=&quot;co1&quot;&gt;// 2 byte word&lt;/span&gt;
			theNumtype += &lt;span class=&quot;nu0&quot;&gt;16&lt;/span&gt;
			numbytes =&lt;span class=&quot;kw3&quot;&gt;floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;numBytes&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			dataBytes = &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;
			&lt;span class=&quot;kw4&quot;&gt;SetDimLabel&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,Word,root:packages:BinaryReader:OutPutWave
			&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;: &lt;span class=&quot;co1&quot;&gt;// 32 bit int&lt;/span&gt;
			theNumtype += &lt;span class=&quot;nu0&quot;&gt;32&lt;/span&gt;
			numBytes = &lt;span class=&quot;kw3&quot;&gt;floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;numBytes&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			dataBytes = &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;
			&lt;span class=&quot;kw4&quot;&gt;SetDimLabel&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,LongInt,root:packages:BinaryReader:OutPutWave
			&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;: &lt;span class=&quot;co1&quot;&gt;//32 bit float&lt;/span&gt;
			theNumType += &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;
			numBytes= &lt;span class=&quot;kw3&quot;&gt;floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;numBytes&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			dataBytes = &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;
			&lt;span class=&quot;kw4&quot;&gt;SetDimLabel&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,Float,root:packages:BinaryReader:OutPutWave
			&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;: &lt;span class=&quot;co1&quot;&gt;//64 bit floating point&lt;/span&gt;
			theNumType += &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;
			numBytes=&lt;span class=&quot;kw3&quot;&gt;floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;numBytes&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			databytes = &lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;
			&lt;span class=&quot;kw4&quot;&gt;SetDimLabel&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,Double,root:packages:BinaryReader:OutPutWave
			&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
		default:
			&lt;span class=&quot;kw4&quot;&gt;doalert&lt;/span&gt; 0, &lt;span class=&quot;st0&quot;&gt;&amp;quot;uh oh, the Numtype Switch did not recognize the value, &amp;quot;&lt;/span&gt; + &lt;span class=&quot;kw3&quot;&gt;num2str&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;DataFormat&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;st0&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endswitch&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//check that data is selected&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;numBytes == 0&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;doalert&lt;/span&gt; 0, &lt;span class=&quot;st0&quot;&gt;&amp;quot;First select part of the file to show. For multibyte data formats, you need to select enough bytes to show at least one point&amp;quot;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//Redimension the temp wave for the amount and kind of data expected&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;Redimension&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;N = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;numBytes&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;Y&lt;/span&gt;=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;theNumType&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; TempWave
	&lt;span class=&quot;kw4&quot;&gt;Redimension&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;N = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;numBytes&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;  OutPutWave
	&lt;span class=&quot;co1&quot;&gt;//load the selected data into the temp wave&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;fsetpos&lt;/span&gt; localRefNum, &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;str2num&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;StartPos&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;UnSigned&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;FBinRead&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;B=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;byteOrder&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;F=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;DataFormat&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; localRefNum, TempWave
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;FBinRead&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;B=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;byteOrder&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;F=&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;DataFormat&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;U localRefNum, TempWave
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//Show the data in the output wave&lt;/span&gt;
	OutPutWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;kw3&quot;&gt;num2Str&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;str2Num&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;StartPos&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;+ &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;p&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; databytes&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	OutPutWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;= &lt;span class=&quot;kw3&quot;&gt;num2str&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;tempwave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;End&lt;/span&gt;
 
&lt;span class=&quot;co1&quot;&gt;//*****************************************************************************************************&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;//Load the segment selected from the popup menu&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;Function&lt;/span&gt; BRLoadSegmentProc&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ctrlName,popNum,popStr&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; : PopupMenuControl
	&lt;span class=&quot;kw2&quot;&gt;String&lt;/span&gt; ctrlName
	&lt;span class=&quot;kw2&quot;&gt;Variable&lt;/span&gt; popNum
	&lt;span class=&quot;kw2&quot;&gt;String&lt;/span&gt; popStr
 
	&lt;span class=&quot;co1&quot;&gt;//References to globals&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;SVAR&lt;/span&gt; fileNameStr =root:packages:binaryReader:fileNameStr
	&lt;span class=&quot;kw2&quot;&gt;NVAR&lt;/span&gt; BRrefNum = root:packages:BinaryReader:BRrefNum
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; localRefNum = BRrefNum
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;T&lt;/span&gt; fileListWave = root:packages:BinaryReader:FileListWave
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt; FileListSelWave = root:packages:BinaryReader:FileListSelWave
	&lt;span class=&quot;kw2&quot;&gt;WAVE&lt;/span&gt; tempwave = root:packages:BinaryReader:tempwave
	popnum -= &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//should be 0 based&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//check that the file reference is valid&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;fstatus&lt;/span&gt; localRefNum
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_Flag&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;doAlert&lt;/span&gt; 0, &lt;span class=&quot;st0&quot;&gt;&amp;quot;The file, &amp;quot;&lt;/span&gt; + fileNameStr + &lt;span class=&quot;st0&quot;&gt;&amp;quot; is not open.&amp;quot;&lt;/span&gt;
		FileNameStr = &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//load the segment into the temp wave. If it is last segment, only load to the end of the file&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_logEOF &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;popNum+&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;redimension&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;n = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_logEOF-&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;popNum &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; tempwave
		&lt;span class=&quot;kw4&quot;&gt;redimension&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;n = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;V_logEOF-&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;popNum &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; fileListWave, fileListSelWave
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		&lt;span class=&quot;kw4&quot;&gt;redimension&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;n = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; tempwave
		&lt;span class=&quot;kw4&quot;&gt;redimension&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;n = &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; fileListWave, fileListSelWave
	&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;FSetPos&lt;/span&gt; localRefNum, &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;popNum &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw4&quot;&gt;FBinRead&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;f=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;u localRefNum, tempwave
	&lt;span class=&quot;co1&quot;&gt;//show the loaded segment in the fileListBox in char format. Print out the most common escape codes&lt;/span&gt;
	&lt;span class=&quot;kw2&quot;&gt;variable&lt;/span&gt; ii, points = &lt;span class=&quot;kw3&quot;&gt;numpnts&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;tempwave&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ii=0;ii&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; points;ii+=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;switch&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;tempWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; 0:
				fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&amp;quot;NUL&amp;quot;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;:
				fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&amp;quot;HorTab&amp;quot;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;:
				fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&amp;quot;LineFeed&amp;quot;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;:
				fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&amp;quot;VerTab&amp;quot;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;:
				fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&amp;quot;FormFeed&amp;quot;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;13&lt;/span&gt;:
				fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&amp;quot;Return&amp;quot;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
			default:
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;tempwave  &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;  &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;st0&quot;&gt;&amp;quot;Other Control&amp;quot;&lt;/span&gt; 
				&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
					fileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; =&lt;span class=&quot;kw3&quot;&gt;num2char&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; tempwave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ii&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;endif&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;endswitch&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;endfor&lt;/span&gt;
	FileListWave &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;0&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; = &lt;span class=&quot;kw3&quot;&gt;num2Str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;popNum &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; kSegmentSize&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;+ &lt;span class=&quot;kw3&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;End&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/838#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/74">File Input/Output</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/80">Utilities</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/21">5.05.x</category>
 <pubDate>Thu, 13 Nov 2008 17:56:21 -0600</pubDate>
 <dc:creator>jamie</dc:creator>
 <guid isPermaLink="false">838 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Fitting Multiple Curves With Multiple Functions</title>
 <link>http://www.igorexchange.com/node/831</link>
 <description>&lt;p&gt;Here&#039;s my problem in principle:&lt;/p&gt;
&lt;p&gt;I wish to fit one set of data Energy(x) with the equation a*x+b. At the same time I wish to fit a completely different set of data Charge(x) with the curve a*x^2+b, where a and b are the same in both fits. Is Igor able to fit both of these curves simultaneously by minimizing the summed error from each fit?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/831#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Sun, 09 Nov 2008 22:42:42 -0600</pubDate>
 <dc:creator>maxxcw</dc:creator>
 <guid isPermaLink="false">831 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Multipeak Fit with original negative peaks?</title>
 <link>http://www.igorexchange.com/node/833</link>
 <description>&lt;p&gt;Dear all,&lt;/p&gt;
&lt;p&gt;I am new to Igor Pro and but found it is powerful for signal process. I would like to decompose some characteristic peaks from an experimental measurement. I think the MultiPeak Fit function of Igor Pro should do the job. After several days of trying, I still can&#039;t get it works correctly. For example, although it could fit the total curve nicely, but the decomposition, ie. the individual peaks, is not correct.&lt;/p&gt;
&lt;p&gt;The experimental data is attached. Could any expert please advice how to utilize MultiPeak Fit and solve the current fit that I can use it an an example to solve many of other measurements.&lt;/p&gt;
&lt;p&gt;Thank you very much for your kind help.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/833#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <enclosure url="http://www.igorexchange.com/files/025 xyz.xls" length="395264" type="application/vnd.ms-excel" />
 <enclosure url="http://www.igorexchange.com/image/view/832/preview" length="34059" type="image/jpeg" />
 <pubDate>Mon, 10 Nov 2008 03:54:30 -0600</pubDate>
 <dc:creator>garrison</dc:creator>
 <guid isPermaLink="false">833 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Run Igor.exe in a VBA Shell to analyze a datafile with a Procedure</title>
 <link>http://www.igorexchange.com/node/836</link>
 <description>&lt;p&gt;I want to automate data processing and plotting with VBA code in an Access App.&lt;br /&gt;
I will use an existing Procedure with many datafile (exp.xls)&lt;br /&gt;
I am new to Igor....my collegue wrote the procedure.&lt;br /&gt;
The following code opens Igor just fine with the procedure loaded, but I need to know how to modify the procedure to get the it to find, load and process the data in exp.xls:&lt;br /&gt;
VBA.Shell &quot;&quot;&quot;C:\Program FIles\WaveMetrics\Igor Pro Folder\Igor.exe&quot;&quot;&quot; &amp;amp; Chr(34) &amp;amp; &quot;&quot;&quot;C:\exp.xls&quot;&quot;&quot;  &amp;amp; Chr(34), vbNormalFocus&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/836#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 12 Nov 2008 01:25:07 -0600</pubDate>
 <dc:creator>kstrieb</dc:creator>
 <guid isPermaLink="false">836 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>The equations for ExpGauss and ExpConvExp</title>
 <link>http://www.igorexchange.com/node/837</link>
 <description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;Does anyone know what&#039;s the explicit equations for the fitting function ExpGauss and ExpConvExp used in Igor Pro?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/837#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 12 Nov 2008 02:07:56 -0600</pubDate>
 <dc:creator>garrison</dc:creator>
 <guid isPermaLink="false">837 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Sum of two Gaussians</title>
 <link>http://www.igorexchange.com/node/835</link>
 <description>&lt;p&gt;I wrote a program that will open up a file and fit the data to a gaussian peak. Some of the new data we&#039;re collecting has 2 peaks and I would like to know how to fit a gaussian to each peak. Each of these files contains a large amount of frames, so I want it to be automatic. I already have the code in place to fit a gaussian to each frame and load the coefficients into a separate wave for storage. I just need to know how to code for the 2 gaussian fits. Thanks.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/835#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Tue, 11 Nov 2008 09:22:44 -0600</pubDate>
 <dc:creator>English_Lab</dc:creator>
 <guid isPermaLink="false">835 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>The fitting result of my trial.</title>
 <link>http://www.igorexchange.com/node/832</link>
 <description></description>
 <pubDate>Mon, 10 Nov 2008 03:53:00 -0600</pubDate>
 <dc:creator>garrison</dc:creator>
 <guid isPermaLink="false">832 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>FuncFit Error Flag?</title>
 <link>http://www.igorexchange.com/node/662</link>
 <description>&lt;p&gt;I am writing a macro that runs through a number of files and fits them to a number of user-defined functions. This all works great except when the function returns an error of&lt;/p&gt;
&lt;p&gt;**** Singular matrix error during curve fitting ****&lt;/p&gt;
&lt;p&gt;which I know means that the equation has too many parameters and one is ill defined. (I&#039;m fitting single exponentials versus double exponentials).&lt;/p&gt;
&lt;p&gt;Unfortunately, this singular matrix error crashes my whole macro, when what I&#039;d really like it to do is to generate an error message (that I can redirect somewhere), and continue with the next fit in the macro. It seems like there should be a flag whose status I can check before the macro crashes so that I can skip over the crash part.&lt;br /&gt;
Is this making sense?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
-Karen f.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/662#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Mon, 02 Jun 2008 13:12:38 -0500</pubDate>
 <dc:creator>leandract</dc:creator>
 <guid isPermaLink="false">662 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Creating waves of arbitrary data</title>
 <link>http://www.igorexchange.com/node/830</link>
 <description>&lt;p&gt;I know how to import data, but I cannot figure out how to create waves of arbitrary data inside Igor using command line functions.  For example, if I want to make a wave with the values 0 5 3 -2, how do I do this? Is there a way to create a wave like this, where the values are not a function of the index?  I know how to do this by using the GUI to edit the values in a table, but I want to implement this via command line functions, so I can do it in my procedures.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/830#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 05 Nov 2008 17:49:07 -0600</pubDate>
 <dc:creator>lizhb</dc:creator>
 <guid isPermaLink="false">830 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Defining a Graph using XML</title>
 <link>http://www.igorexchange.com/node/304</link>
 <description>&lt;p&gt;I am curious about what would be best to define a graph in XML. I am not talking about SVG, which is a way to draw a graph. I am instead talking about an XML database that defines the characteristics of the graph, for example ...&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/p&gt;
&lt;p&gt;plain&lt;/p&gt;
&lt;p&gt;    1pt&lt;br /&gt;
    black&lt;br /&gt;
    off&lt;br /&gt;
    off&lt;br /&gt;
    ...&lt;/p&gt;
&lt;p&gt;    ...&lt;/p&gt;
&lt;p&gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Before I invent something like this for SpXZeigR as a &quot;preference&quot; type file format that thereafter has only limited use, I thought I would try to find an equivalent that is already in use. I&#039;ve found &lt;a href=&quot;http://www.maani.us/xml_charts/&quot;&gt;this reference&lt;/a&gt; as a start. Does anyone have any other suggestions or references?&lt;/p&gt;
</description>
 <pubDate>Mon, 20 Aug 2007 19:55:15 -0500</pubDate>
 <dc:creator>jjweimer</dc:creator>
 <guid isPermaLink="false">304 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Layout- Arrange window order</title>
 <link>http://www.igorexchange.com/node/829</link>
 <description>&lt;p&gt;Whenever I want to arrange graphs on a layout, I first create the layout and then arrange.  I don&#039;t use the dialog by itself; instead I send the command to the clipboard where I manually rearrange my graphs so that they appear in the order I desire on the layout.  Is there a way to do this within the dialog?  Or is my way the only viable workaround?&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/829#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 05 Nov 2008 13:56:26 -0600</pubDate>
 <dc:creator>patarroyo</dc:creator>
 <guid isPermaLink="false">829 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Killing Graphs From Command Line</title>
 <link>http://www.igorexchange.com/node/827</link>
 <description>&lt;p&gt;I have searched the Web, the Help files, and everywhere in between.  I cannot find a way to kill graphs from the command line.  It&#039;s easy to kill waves, but what about graphs, or even tables?  Is there a way to kill these objects from the command line?&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/827#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Thu, 30 Oct 2008 11:07:32 -0500</pubDate>
 <dc:creator>patarroyo</dc:creator>
 <guid isPermaLink="false">827 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Transform Axes Canned Transformations</title>
 <link>http://www.igorexchange.com/node/824</link>
 <description>&lt;p&gt;In a different forum was posted thoughts about Transform Axes as ...&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;johnweeks&lt;/em&gt; wrote:&lt;/div&gt; ...Perhaps I should add some canned Arrhenius transformation function.&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;I think the following two canned transformations for temperature would be useful:&lt;/p&gt;
&lt;p&gt;a) oC -&amp;gt; 1/K:    1/(x +273.15)&lt;br /&gt;
b) 1/K -&amp;gt; oC:    (1/x) - 273.15&lt;/p&gt;
&lt;p&gt;BTW, a factor of 1000 is used to adjust the 1/K scale to be in inverse milli-Kelvin (which can also be done using the proper escape codes in the axis label).&lt;/p&gt;
&lt;p&gt;(and I meant to append this to the Wish List rather than start a new topic --- my apologies)&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/824#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Wed, 29 Oct 2008 15:47:49 -0500</pubDate>
 <dc:creator>jjweimer</dc:creator>
 <guid isPermaLink="false">824 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Looking for an IGOR Programmer</title>
 <link>http://www.igorexchange.com/node/828</link>
 <description>&lt;p&gt;I am looking for someone to make slight minor modifications to a Procedure written by Jeremy Bergsman a few years ago.   The purpose of the procedure is detection of epileptiform activity (although it could also be used to detect other kinds of activity).   We need to add a moving baseline to the detection using filtered data.  I know programmers prefer to start from scratch with their own program, but this is already a very nice module.  It just needs this one thing - and then there are a couple more things that would be optionally added.&lt;br /&gt;
The procedure currently has FFT as an optional detection method.  The calculation of the FFT slows down the automated mode, so we would like the option to turn off the calculation/display of the FFT when we are not using it for detection.&lt;/p&gt;
&lt;p&gt;Finally, we would like - perhaps even as a separate procedure/module - so this could be started from scratch - a way to output FFT data.  We have to thing a little bit more about this - how we would like the output, etc.&lt;/p&gt;
&lt;p&gt;I have the means to pay someone to do this programming.&lt;/p&gt;
&lt;p&gt;If for some reason you would prefer to view it as a collaboration in order to get your name on a publication, that is also an option.&lt;/p&gt;
&lt;p&gt;Please email me at &lt;a href=&quot;mailto:kmjacobs@vcu.edu&quot;&gt;kmjacobs@vcu.edu&lt;/a&gt; if you are interested.&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/828#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <pubDate>Thu, 30 Oct 2008 12:40:31 -0500</pubDate>
 <dc:creator>kmjacobs</dc:creator>
 <guid isPermaLink="false">828 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Clementine, package for modeling decay kinetics using MEM and Least square fitting IGOR.6.03.x-1.1</title>
 <link>http://www.igorexchange.com/node/826</link>
 <description>&lt;p&gt;First public release of the package. Contains current version of MEM package, all necessary files to run as well as Igor experiment with example of modeling data.&lt;/p&gt;
</description>
 <category domain="http://www.igorexchange.com/taxonomy/term/83">6.03.x</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/3">Windows</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/2">Mac-Intel</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/13">Mac-PPC</category>
 <pubDate>Thu, 30 Oct 2008 10:35:43 -0500</pubDate>
 <dc:creator>ilavsky</dc:creator>
 <guid isPermaLink="false">826 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Clementine, package for modeling decay kinetics using MEM and Least square fitting</title>
 <link>http://www.igorexchange.com/project/Clementine</link>
 <description>&lt;p&gt;Clementine was developed to model decay kinetics processes using either maximum entropy (MEM, included) or least square fitting. The math of analysis (decay times are &quot;tau&quot;) is :&lt;br /&gt;
MEM:		signal(time) = FlatOffset + sum (P(Tau) * exp(- time/tau))&lt;br /&gt;
LSQF:		signal(time) = FlatOffset + sum (P(Tau) * exp(- (time+TimeShift)/tau))&lt;br /&gt;
The package will :&lt;br /&gt;
	MEM :  Generate the distribution of P(Tau) values using Maximum Entropy method over user defined number of bins in tau (log-spaced)&lt;br /&gt;
	LSQF :  Model (and least square fit) sum of for up to 5 different P(tau), TimeShift, and tau combinations. Both P(tau) and tau can be fitted. &lt;/p&gt;
&lt;p&gt;The code loosely follows following manuscripts:&lt;br /&gt;
Zs. Ablonczy , A. Lukacs , E. Papp, Application of the maximum entropy method to absorption kinetic rate processes, Biophysical Chemistry 104 (2003) 249–258&lt;br /&gt;
	and&lt;br /&gt;
A. K. LIVESEY AND J. C. BROCHON , ANALYZING THE DISTRIBUTION OF DECAY CONSTANTS IN PULSE-FLUORIMETRY USING THE MAXIMUM ENTROPY METHOD, BIOPHYSICAL JOURNAL VOLUME 52 (1987), pg. 693-706.&lt;/p&gt;
&lt;p&gt;The package consists of :&lt;br /&gt;
Load_Clementine.ipf        &amp;gt;   this file should be in (or linked to) &quot;Igor Procedures&quot;&lt;br /&gt;
DecayModeling_Load.ipf   &amp;gt;   this file should be in (or linked to)&quot;User Procedures/Clementine&quot;&lt;br /&gt;
DecayModeling_GUI.ipf    &amp;gt;   this file should be in (or linked to) &quot;User Procedures/Clementine&quot;&lt;br /&gt;
DecayModeling_1.ipf       &amp;gt;   this file should be in (or linked to) &quot;User Procedures/Clementine&quot;&lt;br /&gt;
DecayModeling_2.ipf       &amp;gt;   this file should be in (or linked to) &quot;User Procedures/Clementine&quot;&lt;br /&gt;
DecayModeling.ifh	    &amp;gt;    the  help file, should be in  (or linked to) &quot;Igor help files&quot;&lt;br /&gt;
you also need&lt;br /&gt;
MaxEntPackage.ipf          &amp;gt;    this file should be in (or linked to) &quot;User Procedures/Maximum Entropy&quot;&lt;/p&gt;
&lt;p&gt;Loading the package : select &quot;Load Clementine MEM modeling&quot; in the macro menu.&lt;br /&gt;
This will load the necessary procedure files in Igor, compile them and add in the &quot;Macros&quot; menu command &quot;MEM Decay fitting&quot;.&lt;br /&gt;
Selecting command &quot;MEM Decay fitting&quot; from macros menu will open main control window.&lt;br /&gt;
For more details, please, read included help file (accessible by button from main control window).&lt;br /&gt;
*********************************************************&lt;br /&gt;
Data input&lt;br /&gt;
There are various data types Clementine can use:&lt;/p&gt;
&lt;p&gt;a. one signal wave with x-scaling in seconds - with or without errors wave.&lt;br /&gt;
This is raw data from instrument which measures in fixed data intervals the signal. Such data are not properly spaced for MEM analysis. They need to be rebinned to log-time scaling. Check the check box &quot;Rebin the data&quot;.  If you have these data, you can also use Instrument response function.&lt;/p&gt;
&lt;p&gt;b. two waves (signal/time)&lt;br /&gt;
In this case you have signal and associated time for each point. If you need to, you can still rebin the data on log scale. But you cannot use instrument response function... &lt;/p&gt;
&lt;p&gt;c. Three waves (signal/time/errors)&lt;br /&gt;
In this case you have three waves - signal, error for signal, and times. You cannot use instrument response function, but you can rebin the data, if necessary.&lt;/p&gt;
</description>
 <category domain="http://www.igorexchange.com/taxonomy/term/67">Analysis</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/23">Packages</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/3">Windows</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/2">Mac-Intel</category>
 <category domain="http://www.igorexchange.com/taxonomy/term/13">Mac-PPC</category>
 <pubDate>Thu, 30 Oct 2008 10:27:57 -0500</pubDate>
 <dc:creator>ilavsky</dc:creator>
 <guid isPermaLink="false">825 at http://www.igorexchange.com</guid>
</item>
<item>
 <title>Modify mirror axis</title>
 <link>http://www.igorexchange.com/node/817</link>
 <description>&lt;p&gt;Hej!&lt;/p&gt;
&lt;p&gt;I have a problem with my mirror axis. So normally it displays the same range and values as the original axis. But I want to display the mirrored x-axis computed as:  mirrored x-axis = 1000/(X-axis)-273.15&lt;/p&gt;
&lt;p&gt;So, I want to put diverse temperature back to T(°C) on the mirrored x-axis without having T(°C) data.&lt;br /&gt;
Is there a simple way to do this in Igor?&lt;br /&gt;
An example of a plot with the normal mirror axis is attached.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
Jan&lt;/p&gt;
</description>
 <comments>http://www.igorexchange.com/node/817#comments</comments>
 <category domain="http://www.igorexchange.com/taxonomy/term/5">General</category>
 <enclosure url="http://www.igorexchange.com/image/view/816/preview" length="48945" type="image/png" />
 <pubDate>Thu, 23 Oct 2008 06:18:37 -0500</pubDate>
 <dc:creator>warakurna</dc:creator>
 <guid isPermaLink="false">817 at http://www.igorexchange.com</guid>
</item>
</channel>
</rss>
