<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to extract specified data from a JSL hexadecimal file to a decimal file? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332824#M58115</link>
    <description>&lt;P&gt;Thank Craige!&lt;/P&gt;&lt;P&gt;Thank you for your careful guidance and your help in making me understand more.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also found a lot of problems when I processed more numbered data the same way.&lt;/P&gt;&lt;P&gt;I switched to VBA to control the mouse to realize automatic use that documentation get data, reduce manual operation.What is more important is to reduce the chance of making mistakes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again to the experts.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Nov 2020 13:58:29 GMT</pubDate>
    <dc:creator>lwx228</dc:creator>
    <dc:date>2020-11-12T13:58:29Z</dc:date>
    <item>
      <title>How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332133#M58082</link>
      <description>&lt;P&gt;"Min1.dat" is a hexadecimal file.I have saved the data of the two tables in this DAT file.&lt;BR /&gt;For example, the original data of the file encoded as "113027" looks like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-11-11_13-42-32.png" style="width: 587px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28225iDF5E634A7E9FDCC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-11_13-42-32.png" alt="2020-11-11_13-42-32.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:42:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332133#M58082</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2023-06-09T23:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332153#M58083</link>
      <description>&lt;P&gt;Open "min1.dat" with "HxD x64.Exe to see the specific hexadecimal symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JSL scripts written with Craige can also see this and display the same content.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;b = Load Text File( "D:\0\Min1.dat", blob() ); // load your file

hex = Hex( b ); &lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-11-11_13-47-41.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28226i40BF996EE9E0899D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-11_13-47-41.png" alt="2020-11-11_13-47-41.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:40:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332153#M58083</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-11T07:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332155#M58084</link>
      <description>&lt;P&gt;I have found the hexadecimal symbol shown in the first line of the file "113027" in HxD.exe.&lt;BR /&gt;The hexadecimal number for data 2010090931 is "B38DCF77" and the hexadecimal number for data 2010090932 is "B48DCF77"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-11-11_14-27-09.png" style="width: 731px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28229iD2FDF62CB8E3F388/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-11_14-27-09.png" alt="2020-11-11_14-27-09.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:54:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332155#M58084</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-11T07:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332156#M58085</link>
      <description>&lt;P&gt;How can use JSL to efficiently locate data, restore floating point data, and extract only the specified data?&lt;BR /&gt;How to extract all the data encoded "113027" directly from a hexadecimal file using JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 07:47:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332156#M58085</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-11T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332160#M58086</link>
      <description>&lt;P&gt;I used "Contains" to determine the location of the time data, but found it inefficient.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;b = Load Text File( "D:\0\Min1.dat", blob() ); // load your file

hex = Hex( b ); 
last4hex = Right( hex, 8 ); 
num = Length( b );
last4blob = Blob Peek( b, Length( b ) - 4, 4 ); 

da1 = "B38DCF77";//B3~8D~CF~77
da2 = "B48DCF77";
off1 = Contains( hex, da1 );
off2 = Contains( hex, da2, -1 );
If( off1,
	hex = Substr( hex, off1, Length( hex ) )
);
If( off2,
	hex = Substr( hex, 1, off2 + 1 )
);


mat = Blob To Matrix( b, "int", 4, "big" ); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-11-11_15-58-11.png" style="width: 917px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28230i5DC009722C6B4EA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-11_15-58-11.png" alt="2020-11-11_15-58-11.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 08:00:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332160#M58086</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-11T08:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332312#M58087</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/12538"&gt;@lwx228&lt;/a&gt;&amp;nbsp; when I'm trying to extract information from a binary file without proper documentation, I have to think about what might happen next: the file format might change; I might not be around to support my hack; I might not actually understand the format. If the vendor that creates the file supplies tools for manipulating the file, you should use them. If the vendor documents the file format, you should use that documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DangerZone.png" style="width: 777px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28233i3100307FA24A653E/image-size/large?v=v2&amp;amp;px=999" role="button" title="DangerZone.png" alt="DangerZone.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 13:46:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332312#M58087</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-11-11T13:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332320#M58088</link>
      <description>&lt;P&gt;Thanks for Craige's rigorous attitude.&lt;BR /&gt;My DAT data is free software data, in the window interface operation of the software can directly export TXT format data,&lt;BR /&gt;such as these two codes "113027" 、"123029"s data is derived in the software.&lt;BR /&gt;I just want to know how to make JMP directly read the data in the DAT file in this software,&lt;BR /&gt;so that there is no need to manually export the data in the software interface to save the TXT file to the hard disk, and then dual-use JMP to import the TXT file to the hard disk.&lt;BR /&gt;Thanks to the experts for their help.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 14:25:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332320#M58088</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-11T14:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332470#M58094</link>
      <description>&lt;P&gt;Do you know if the software has command line options for doing that task?&amp;nbsp; I've seen some programs have CLI versions of some of their functions.&lt;/P&gt;
&lt;P&gt;If you're lucky you might be able to do something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);
RP = Run Program(
	Executable( "DatFileCreator.exe" ),
	Options( { // all of these options are made up but I've seen programs have them before. 
		"-export 1" 
		, "-filepath 'C:\Fake\somefile.dat'"
		, "-exportpath 'C:\Fake\sometxtfile.txt"
	} ),
	ReadFunction( Function( {this}, Write( this &amp;lt;&amp;lt; read ) ) )
);

dt = open("C:\Fake\sometxtfile.txt");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would look through their command line arguments first.&amp;nbsp; Plus if they update their file format, they **should** update their export functionality and you won't have to rewrite it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 20:05:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332470#M58094</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2020-11-11T20:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332548#M58097</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class="src"&gt;Thank you very much!&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class="src"&gt;I didn't find&lt;/P&gt;&lt;PRE class="language-jsl"&gt;&lt;CODE&gt;"DatFileCreator.exe"&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="src"&gt;file in my search.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I used to use similar software, but now the DAT data has changed and the software is no longer available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-11-12_08-14-28.png" style="width: 350px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28269i0C627D10A8DEC5D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-12_08-14-28.png" alt="2020-11-12_08-14-28.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 00:18:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332548#M58097</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-12T00:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332652#M58098</link>
      <description>That's not a real software. I meant whatever software is outputting this data file.</description>
      <pubDate>Thu, 12 Nov 2020 02:29:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332652#M58098</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2020-11-12T02:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332743#M58102</link>
      <description>&lt;P&gt;&lt;SPAN class="transSent"&gt;I see, if the tools are available, I can use this code to do it in one step.&lt;/SPAN&gt;&lt;SPAN class="transSent"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 09:16:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332743#M58102</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-12T09:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332745#M58103</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Now only the numerical value of the date can be used to locate and calculate the data of the period.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-11-12_14-29-26.png" style="width: 630px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/28277iA93AD4948145D32E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-12_14-29-26.png" alt="2020-11-12_14-29-26.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 09:18:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332745#M58103</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-12T09:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332746#M58104</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This calculation has to reverse the hexadecimal result to get the correct result.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 09:19:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332746#M58104</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-12T09:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332801#M58109</link>
      <description>&lt;P&gt;Your file might have &lt;A href="https://en.wikipedia.org/wiki/Endianness" target="_self"&gt;Little Endian&lt;/A&gt; numbers. But without documentation of the file format, you can't be sure there is not another bit in the file that chooses Big vs Little representation. There can be a lot of bits that determine the shape of the binary data, and they can change if the program that generates the data runs with different options/data/environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fun fact about Little Endian numbers: the &lt;A href="https://en.wikipedia.org/wiki/MOS_Technology_6502" target="_self"&gt;6502&lt;/A&gt; processor in the ancient Apple II computer used Little Endian because it was faster to add two 2-byte numbers. The add of the low-order byte could be done in parallel with fetching the high-order byte that followed. The carry could then be propagated to the high order byte.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 11:35:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332801#M58109</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-11-12T11:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract specified data from a JSL hexadecimal file to a decimal file?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332824#M58115</link>
      <description>&lt;P&gt;Thank Craige!&lt;/P&gt;&lt;P&gt;Thank you for your careful guidance and your help in making me understand more.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I also found a lot of problems when I processed more numbered data the same way.&lt;/P&gt;&lt;P&gt;I switched to VBA to control the mouse to realize automatic use that documentation get data, reduce manual operation.What is more important is to reduce the chance of making mistakes.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks again to the experts.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 13:58:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-specified-data-from-a-JSL-hexadecimal-file-to-a/m-p/332824#M58115</guid>
      <dc:creator>lwx228</dc:creator>
      <dc:date>2020-11-12T13:58:29Z</dc:date>
    </item>
  </channel>
</rss>

