Basicmicro Motion Studio freezes when moving motor 1 forward

General discussion of using Roboclaw motor controllers
Post Reply
mouritsen
Posts: 1
Joined: Tue May 12, 2020 3:06 pm

Basicmicro Motion Studio freezes when moving motor 1 forward

Post by mouritsen » Tue May 12, 2020 3:34 pm

I have the 2x30A board. Hardware V5E. Firmware is updated as of yesterday 4.1.34. Basicmicro motion studio is downloaded and installed 2 days ago, version 1.0.0.64. I'm following this tutorial, https://resources.basicmicro.com/robocl ... ive-setup/. At step 9 it says to slide the slider for the motors and verify the motors move. Here's where it gets weird. Motor 2 works forward and backward. Motor 1 works backward. If I try to move motor 1 forward by sliding the motor 1 slider up, I get this error message and the application freezes and I have to power off and power on the board to recover. My OS is Windows 7 32bit. Any ideas?

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at BasicmicroMotionStudio.Form1.PWMTrackM1_ValueChanged(Object sender, EventArgs e)
at System.Windows.Forms.TrackBar.OnValueChanged(EventArgs e)
at System.Windows.Forms.TrackBar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Basicmicro Motion Studio
Assembly Version: 1.7.0.22527
Win32 Version: 1.7.0
CodeBase: file:///C:/Users/CNC%20User/AppData/Local/Apps/2.0/DMJ8P9ZY.GC4/7AQMQCQG.QGQ/basi..tion_0000000000000000_0001.0000_adbc433a087218b0/Basicmicro%20Motion%20Studio.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.Windows.Forms.DataVisualization
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
----------------------------------------
FastColoredTextBox
Assembly Version: 2.16.25.0
Win32 Version: 2.16.25.0
CodeBase: file:///C:/Users/CNC%20User/AppData/Local/Apps/2.0/DMJ8P9ZY.GC4/7AQMQCQG.QGQ/basi..tion_0000000000000000_0001.0000_adbc433a087218b0/FastColoredTextBox.DLL
----------------------------------------
RoboclawClassLib
Assembly Version: 1.2.7267.20970
Win32 Version: 1.2
CodeBase: file:///C:/Users/CNC%20User/AppData/Local/Apps/2.0/DMJ8P9ZY.GC4/7AQMQCQG.QGQ/basi..tion_0000000000000000_0001.0000_adbc433a087218b0/RoboclawClassLib.DLL
----------------------------------------
TabStrip
Assembly Version: 2.0.2523.29272
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Users/CNC%20User/AppData/Local/Apps/2.0/DMJ8P9ZY.GC4/7AQMQCQG.QGQ/basi..tion_0000000000000000_0001.0000_adbc433a087218b0/TabStrip.DLL
----------------------------------------
System.DirectoryServices
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.DirectoryServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll
----------------------------------------
System.ServiceProcess
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ServiceProcess/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Deployment
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

User avatar
Basicmicro Support
Posts: 1365
Joined: Thu Feb 26, 2015 9:45 pm

Re: Basicmicro Motion Studio freezes when moving motor 1 forward

Post by Basicmicro Support » Wed May 13, 2020 8:04 am

First re-update the firmware, then uynder device menu click restore defaults. Retest. If the problem persists swap motor 1 with motor 2.

Another possibility is the motor caused a USB glitch. USB on Windows is sensitive to noise. Some motors are worse than others. You may need to use a USB isolation adapter to run the motor. Fast changes in speed are more likely to cause problems. Does the problem happen with the motor removed from the channel?

If the problem doesn't go away after removing the motor then there may be something wrong with that channel direction. In that case you can send the controller in and we will determine what is wrong and repair or replace it.

Post Reply