blob: 87aab5967a9e8e07b119834d369dcf8f4c301549 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Settings;
namespace Tango.MachineStudio.Technician.Helpers
{
public static class GraphsMaxPointsHelper
{
public static int GetMaxPoints(double arrLength)
{
try
{
double seconds = SettingsManager.Default.MachineStudio.TechnicianModule.GraphsDuration;
double pullRate = SettingsManager.Default.MachineStudio.TechnicianModule.GraphsPullingInterval;
return (int)(((pullRate * arrLength * 10 * seconds) * (10 / pullRate)) * 0.65);
}
catch (Exception)
{
return 300;
}
}
}
}
|