bicarlsen / easy-biologic

Python library for communicating with Biologic devices.
GNU General Public License v3.0
18 stars 11 forks source link

uncontinuous channels sequence and xlx file #25

Open Cdriko opened 1 year ago

Cdriko commented 1 year ago

Hello My VSP-300 as the channel number 1 out of order. We removed it to send it for fix.

Unfortunaly the lib use the method "NumberOfChannels" to populate a list at connection, to initialise channels. Because the channel number 1 is not here (so there are 5 channels) The connection fail.

I wonder if it's possible to give the exect list of active channels in the mysterious XLX file that you tlk about. In the documentation you talk about :

"+ connect( bin_file, xlx_file ): Connects to the device, loading the bin and xlx file if provided."

wath is the content of this xlx file ?

thnaks

bicarlsen commented 1 year ago

Unfortunately I don't know the details of how this works, and just ported the library over. If you play around with it though and find something interesting, I would welcome a PR for the code or documentation to help others with a similar issue in the future.

You may want to look at the BiologicDevice.set_channel_configuration method, or perhaps just not loading a technique on that channel would suffice.