Skip to content

Conversation

@austin2118ace
Copy link
Contributor

Hi @JSNeuroDev and @ogeesan

I ran into an issue where launching the emulator caused the startup to crash. It seems the root of this came from two places:

  1. In Bpod.m if there is no Bpod , BpodSystem is cleared so the two BpodLib calls fail. I moved the two calls inside of bpod_setup where we can guarantee BpodSystem already exists
  2. If in emulator mode BpodSystem.SerialPort does not exist. isempty will error out if a field doesn't exist, ~isfield accomplishes the same check without an error.

@ogeesan
Copy link
Contributor

ogeesan commented Oct 12, 2025

Do you have any steps to reproduce this problem? I've experienced some funkyness from executing Bpod when BpodSystem is half-initialised but it's never been a recurring problem.

@sanworks sanworks merged commit c5e7ab0 into sanworks:develop Oct 17, 2025
0 of 2 checks passed
@ogeesan ogeesan mentioned this pull request Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants