aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DB/App.xaml
blob: 477f21727d2bc1189163a5080ece209a5fc68af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<Application x:Class="Tango.MachineStudio.DB.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/Tango.MachineStudio.Common;component/Resources/MaterialDesign.xaml" />
                <ResourceDictionary Source="pack://application:,,,/Tango.MachineStudio.Common;component/Themes/LightThemeColors.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
pan class="k">using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Tango.PMR.Stubs; using Tango.Stubs.UI; public void OnExecute(StubManager stubManager) { // Request ---- // UInt32 : MotorID // UInt32 : MicroSteps // Boolean : SetMicroSteps // UInt32 : ACC // Boolean : SetACC // UInt32 : DEC // Boolean : SetDec // UInt32 : MaxSpeed // Boolean : SetMaxSpeed // Response ---- // UInt32 : MotorID // UInt32 : Status stubManager.Run<StubMotorInitResponse>("StubMotorInitRequest" ,0, 0, false, 0, false, 0, false, 0, false);// Request ---- // UInt32 : MotorID // Boolean : Direction // UInt32 : Position // Response ---- // UInt32 : MotorID // UInt32 : Position // UInt32 : StatusReg // Boolean : Direction // UInt32 : MotStatus // Boolean : STEPLOSSA // Boolean : STEPLOSSB stubManager.Run<StubMotorMovResponse>("StubMotorMovRequest" ,0, false, 10000); }