pl2bin README / cheat sheet
3/8/23 LFS

PL2 to interleaved binary file conversion utility
(command line version of PL2IL)

\\FS\Users\Larry\Shared\pl2bin


Examples of usage (note that options may also be combined):



pl2bin myfile.pl2 

Converts and outputs the wideband channels of myfile.pl2 to a headerless sample-interleaved file myfile.bin, in the same folder as myfile.pl2



pl2bin myfile.pl2 -o E:\PlexonData\mybinfiles

The -o option can be used to specify the folder to which the output file should be written.



pl2bin myfile.pl2 -h ddt

The -h option can be used to specify the header type. Currently only ddt is supported. Default is no header.



pl2bin myfile.pl2 -v 0

The -v option specifies the verbosity of the command line output. Default is -v 2, which is the most verbose, e.g. displays progress dots during processing, while -v 0 is the least verbose.



Note that besides pl2bin.exe, you must also have PL2FileReader.dll.

Wildcard input (e.g. "pl2bin *.pl2") should be supported if pl2bin is run from PowerShell instead of the old Windows command line, but I haven't tested that yet.

Example session shown below.



C:\Users\larry>e:

E:\>cd PlexonData

E:\PlexonData>pl2bin sinaps-256ch-wb.pl2
Plexon PL2Bin PL2 to raw binary file conversion utility v0.5 03-08-2023
PL2Bin: Converting sinaps-256ch-wb.pl2 to sinaps-256ch-wb.bin .............
Done (1242.8 MB read, 1247.7 MB written, processed in 8.5 secs)

E:\PlexonData>pl2bin sinaps-256ch-wb.pl2 -h ddt
Plexon PL2Bin PL2 to raw binary file conversion utility v0.5 03-08-2023
PL2Bin: Converting sinaps-256ch-wb.pl2 to sinaps-256ch-wb.ddt .............
Done (1242.8 MB read, 1247.7 MB written, processed in 8.8 secs)

E:\PlexonData>