Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions TigerStopSDKExample/TigerStopSDKTest/Program.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using System;
using System.Collections.Generic;
using System.Threading;
using TigerStopAPI;

namespace TigerStopSDKExample
{
class Program
{
static TigerStop_IO io;
static TigerStopAPI.TigerStop_IO io;

static void Main(string[] args)
{
Expand All @@ -33,7 +34,7 @@ static void Main(string[] args)

Console.WriteLine("Connecting to " + comport + "....");

io = new TigerStop_IO(baud, comport);
io = new TigerStopAPI.TigerStop_IO(comport, baud);

if (io.IsOpen)
{
Expand All @@ -50,7 +51,7 @@ static void Main(string[] args)
Console.WriteLine("Searching....");

List<KeyValuePair<string, int>> con = new List<KeyValuePair<string, int>>();
con = TigerStop_IO.Connections();
con = TigerStopAPI.TigerStop_IO.Connections();

if (con.Count > 0)
{
Expand Down Expand Up @@ -170,6 +171,9 @@ public static bool InputHandler()
"Home : Homes the machine, returning to the home position.\n" +
" - Home | home | HOME | hm | HM \n" +
"\n" +
"Min-max : Finds end sensors to determine working length.\n" +
" - FEL | fel | MIN-MAX | min-max | MINMAX | minmax | mm | MM \n" +
"\n" +
"Sleep : Sets the drive to sleep.\n" +
" - Sleep | sleep | SLEEP | sl | SL \n" +
"\n" +
Expand Down Expand Up @@ -333,6 +337,25 @@ public static bool InputHandler()

exit = false;

break;
case "FEL":
case "fel":
case "Fel":
case "Minmax":
case "Min-Max":
case "Min-max":
case "minmax":
case "min-max":
case "MINMAX":
case "MIN-MAX":
case "mm":
case "MM":
io.FindEndLimits();

Console.WriteLine("Min-max complete");

exit = false;

break;
case "Sleep":
case "SLEEP":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@
<Reference Include="System.Xml" />
<Reference Include="TigerStopAPI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\TigerStopAPI\TigerStopAPI\bin\Release\TigerStopAPI.dll</HintPath>
<HintPath>..\..\..\TigerStopSDK\TigerStopAPI\TigerStopAPI\bin\Release\TigerStopAPI.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="MessageEvent.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="TigerStop_Com.cs" />
<Compile Include="TigerStop_IO.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
Expand Down
Loading