No appropriate method, property, or field 'MOTORS' for class 'BpodObject'

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
No appropriate method, property, or field 'MOTORS' for class 'BpodObject'

I have the following error: " No appropriate method, property, or field 'MOTORS' for class 'BpodObject' " after calling BpodSystem.MOTORS

The system I am using is suppose to controle both the valves delivering the water to the mouse, and motors that control the platform on which the needles delivering the water are.
Motors are controlled by an additional arduino that is directly connected on the computer.  

The code used to work, and after some problems with the system I had to reset everything so I think I forgot to install something again but I am not sure and above all I don't find what... 

Do you have any idea of what the problem might be? 

Thank you for your help, 

Hi Flore,

In ancient versions of Bpod, the global variable BpodSystem was a struct - so any field could be added to it.
In more recent versions (from the past 2-3 years), BpodSystem is an object, so arbitrary fields (e.g. MOTORS) are not permitted.
If you want to add a struct to BpodSystem (e.g. for motor control), you can safely make it a subfield of BpodSystem.PluginObjects


Forum Jump:

Users browsing this thread: 1 Guest(s)