This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,978 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{EFAB771C-7AA7-4715-8AC3-9A1B6194FCC2}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DatabaseMigrationScripts</RootNamespace>
<AssemblyName>DatabaseMigrationScripts</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="EmbeddedResource.cs" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Add_sp_DASGet_100_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Alter_sp_DASGet_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Alter_sp_DASGet_95_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Alter_sp_DASGet_99_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Alter_SensorCalibrations_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Alter_sp_SensorCalibrationsGet_98.sql" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version64\SensorsDigitalIn_AddFilterClassField.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version62\sp_TestSetupsDelete.sql" />
<EmbeddedResource Include="MigrationScripts\Version63\SensorsDigitalIn_AddMeasurementUnitField.sql" />
<EmbeddedResource Include="MigrationScripts\Version63\sp_DBImportSensorsDigitalInput.sql" />
<EmbeddedResource Include="MigrationScripts\Version63\sp_SensorsDigitalInGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version63\sp_SensorsDigitalInInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version63\sp_SensorsDigitalInUpdate.sql" />
<EmbeddedResource Include="MigrationScripts\Version63\sp_SensorsDigitalInUpdateAll.sql" />
<EmbeddedResource Include="MigrationScripts\Version63\sp_SensorsDigitalInUpdateInsert.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version64\sp_DBImportSensorsDigitalInput_64.sql" />
<EmbeddedResource Include="MigrationScripts\Version64\sp_SensorsDigitalInGet_64.sql" />
<EmbeddedResource Include="MigrationScripts\Version64\sp_SensorsDigitalInInsert_64.sql" />
<EmbeddedResource Include="MigrationScripts\Version64\sp_SensorsDigitalInUpdateAll_64.sql" />
<EmbeddedResource Include="MigrationScripts\Version64\sp_SensorsDigitalInUpdateInsert_64.sql" />
<EmbeddedResource Include="MigrationScripts\Version64\sp_SensorsDigitalInUpdate_64.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version65\sp_TestChannelSettingsInsert_65.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version66\ALTERTestSetupObjects_66.sql" />
<EmbeddedResource Include="MigrationScripts\Version66\sp_TestSetupObjectsGet_66.sql" />
<EmbeddedResource Include="MigrationScripts\Version66\sp_TestSetupObjectsInsert_66.sql" />
<EmbeddedResource Include="MigrationScripts\Version66\sp_TestSetupObjectsUpdateInsert_66.sql" />
<EmbeddedResource Include="MigrationScripts\Version66\sp_TestSetupObjectsUpdate_66.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version62\sp_TemplateChannelsDeleteOne_62.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version68\sp_TestSetupLockUpdate.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version70\sp_DBImportSensorModel.StoredProcedure_70.sql" />
<EmbeddedResource Include="MigrationScripts\Version70\sp_SensorModelsInsert.StoredProcedure_70.sql" />
<EmbeddedResource Include="MigrationScripts\Version70\sp_SensorModelsUpdate.StoredProcedure_70.sql" />
<EmbeddedResource Include="MigrationScripts\Version70\sp_SensorModelsUpdateInsert.StoredProcedure_70.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\sp_TestSetupGroupsGet.StoredProcedure_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.foo_GetIdenticalChannelCount_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.foo_GetIdenticalGroupChannelSettingsCount_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.foo_GetTotalChannelCount_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.foo_GetTotalGroupChannelSettingsCount_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.sp_CompareGroupChannelSettings.StoredProcedure_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.sp_CompareGroups.StoredProcedure_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\sp_LockFree_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\sp_LockGet_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\sp_LockUpdate_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.sp_CompareGroupHardware.StoredProcedure_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\ChannelSettings_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\sp_ChannelSettingsUpdate.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_TestSetupHardware.Table_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.sp_TestSetupHardwareGet.StoredProcedure_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.sp_TestSetupHardwareInsert.StoredProcedure_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.sp_TestSetupHardwareUpdate.StoredProcedure_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_TestSetups_Table_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Insert_DefaultProperties_CalibrationBehavior_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_TestSetupsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_TestSetupsInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_TestSetupsInsertUpdate.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_TestSetupsUpdate.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_TestSetupsUpdateInsert.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version71\sp_SensorCalibrationsDelete.StoredProcedure_71.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_LabratoryDetailsDelete_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_TestEngineerDetailsDelete_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_TestSetupsUpdate_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_CustomerDetailsDelete_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\DASChannels_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_GroupsDelete_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_foo_GetIdenticalChannelCount_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_CompareGroups_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_GroupsGet_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_GroupsInsert_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_GroupsUpdateInsert_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\Alter_tbl_Groups_StaticGroupId_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_CHANNELCODES1_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_GroupsUpdate_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_GroupChannelSettingsDelete_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_CHANNELCODES2_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_CHANNELCODES3_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_CHANNELS1_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_CHANNELS2_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_CHANNELS3_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_SENSORCALIBRATIONS1_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_SENSORSANALOG1_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\INDEX_TESTSETUP1_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_foo_GetIdenticalGroupChannelSettingsCount_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_foo_GetTotalChannelCount_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_foo_GetTotalGroupChannelSettingsCount_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_ChannelsDelete_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportSensorsAnalog_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportSensorsAnalog_Pre20_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportSensorsDigitalInput_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportSensorsDigitalInput_Pre20_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportSensorsDigitalOut_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportSensorsDigitalOut_Pre20_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportSensorsSquib_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportSensorsSquib_Pre20_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportTestSetups_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_DBImportTestSetups_Pre20_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_SensorCalibrationsInsert_72.sql" />
<EmbeddedResource Include="MigrationScripts\Version72\dbo.Alter_sp_SensorCalibrationsInsert_Pre20_72.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Alter_sp_TestSetupsGet_73.sql" />
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Alter_TestSetups_Table.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Add_SLICE6AIR_HardwareAndSettings.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Add_TSDigitalInput.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Alter_sp_TestSetupsInsertUpdate_73.sql" />
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Alter_sp_TestSetupsInsert_73.sql" />
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Alter_sp_TestSetupsUpdateInsert_73.sql" />
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Alter_sp_TestSetupsUpdate_73.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Alter_sp_TestSetupGroupsUpdate_73.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version73\dbo.Alter_sp_UsersDelete.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version74\dbo.Alter_CalculatedChannels_Table74.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version74\dbo.Update_CalculatedChannels_74.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version74\dbo.Alter_sp_CalculatedChannelsUpdateInsert_74.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version74\dbo.Alter_sp_CalculatedChannelsUpdate_74.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version74\dbo.Alter_sp_CalculatedChannelsInsert_74.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version74\dbo.Alter_sp_CalculatedChannelsGet_74.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version75\dbo.Alter_sp_SensorsAnalogUpdateInsert_75.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version76\dbo.Alter_SensorsSquib_Table_76.sql" />
<EmbeddedResource Include="MigrationScripts\Version76\dbo.Alter_sp_SensorsSquibGet_76.sql" />
<EmbeddedResource Include="MigrationScripts\Version76\dbo.Alter_sp_SensorsSquibUpdateInsert_76.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version78\dbo.Add_ZeroMethod_ChannelSettings.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version77\dbo.Alter_SensorsSquib_Table_77.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Migrate_InitialOffset.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Migrate_UserValue123.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version79\dbo.Migrate_ZeroMethod_Values.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Add_ClockSource_Settings.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Add_IDList_Type.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Add_PowerPro.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Add_PowerPro_Settings.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Add_SensorDefaultSettings.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Add_sp_GroupsWithSensorsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Add_sp_TestSetupsWithSensorsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SensorCalibrationsInsert_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_TestSetupHardware_Get_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_TestSetupHardware_Insert_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_TestSetupHardware_Update_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_TestSetups_Get_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_TestSetups_InsertUpdate_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_TestSetups_Insert_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_TestSetups_UpdateInsert_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_TestSetups_Update_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_TestSetupHardware_Table78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_TestSetups_Table78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Delete_From_TagObjectType_Table.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Update_ChannelSettings.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Update_SensorCalibrations_78.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Update_SensorCalibrations_78_2.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Update_TagObjectType_Table.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Update_UIItems_78.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Create_sp_SensorsAnalogZMODbGet.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_SoftwareFilters_Table.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SoftwareFiltersGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SoftwareFiltersInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SoftwareFiltersUpdate.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.UpdateData_FilterClass.sql" />
<EmbeddedResource Include="MigrationScripts\Version80\dbo.UpdateData_SoftwareFilters.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Create_SensorChangeType.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Create_SensorChangeHistory.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.InsertIntoSensorChangeType_78.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SensorsDelete_78.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SensorsAnalogDelete_78.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SensorsDeleteAll_78.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SensorsDigitalInDelete_78.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SensorsDigitalOutDelete_78.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Alter_sp_SensorsSquibDelete_78.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Create_sp_SensorsChangeHistoryGet.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Create_sp_SensorsChangeHistoryInsert.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Create_sp_SensorsChangeHistoryDelete.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.Create_sp_SensorChangeTypesGet.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version80\dbo.DeleteData_ChannelSettings.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version81\dbo.Create_sp_GroupAndTestGet81.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_TestSetupHardware_Table81.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_DAS_Table81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_Groups_Table81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_SensorsAnalog_Table81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_DASGet81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_DASInsert81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_DASUpdate81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_DASUpdateInsert81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_GroupsGet81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_GroupsInsert81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_GroupsUpdate81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_GroupsUpdateInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_GroupsUpdateInsert81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_SensorCalibrationsGet81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_SensorCalibrationsInsert81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_SensorsAnalogGet81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_SensorsAnalogInsert81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_SensorsAnalogInsertUpdate81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_SensorsAnalogUpdate81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupsDelete81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupsGet81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupsInsert81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupsInsertUpdate81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupsUpdate81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupsUpdateInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupsUpdateInsert81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_TestSetups_Table81.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Create_sp_DASFirstUseSet.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Create_sp_SensorsAnalogFirstUseSet.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Create_sp_SensorsAnalogUpdateCalibrationId.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupHardwareGet81.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupHardwareInsert81.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupHardwareUpdate81.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Create_sp_TestSetupsDeleteManyByDate.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Create_sp_TestSetupsDeleteManyById.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Create_sp_TestSetupsDeleteManyByName.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_DASChannelsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupGroupsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version83\dbo.Alter_sp_TestSetupHardwareGet.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version82\dbo.Alter_sp_GroupAndTestGet82.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version84\dbo.Alter_sp_DASInsert_85.sql" />
<EmbeddedResource Include="MigrationScripts\Version84\dbo.Alter_sp_TestSetupsDeleteManyByName_85.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version84\dbo.Alter_sp_TestSetupsDeleteManyById_85.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version85\dbo.Update_PowerPro_Settings.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_DIR.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_DKR.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_SPM.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.AlterTestSetupsTSRAir.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_sp_TestSetupsDelete86.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_tbl_TestSetups_TestSetupUniqueId.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_TestSetups_Table86.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Update_Settings_Table84.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_MeasureSquibResistances_TSD.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_TSA_Embedded_Sensor.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_TSRAIR_DefaultProperties.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version86\dbo.Add_S6DB3.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_SensorTestHistory.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_TestHistory.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.SensorTestHistoryDelete.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.SensorTestHistoryGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.SensorTestHistoryUpdateInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.TestHistoryDelete.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.TestHistoryGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.TestHistoryUpdateInsert.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_TSR_Air.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_TSR_Air_RevB.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_TSC_Embedded_Clock.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_AllowStreaming_DefaultProperty.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_sp_DefaultPropertiesUpdateByName.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Add_S6DB.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_sp_DASDelete87.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_spTestSetupsGet87.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_spTestSetupsInsert87.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_spTestSetupsUpdate87.sql" />
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_spTestSetupsUpdateInsert87.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.AlterTestSetupsWakeup.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version88\dbo.Add_TSRAIR_Settings.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version88\dbo.Add_DIRDKR_Settings.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.Alter_spSensorsAnalogBridgeRes87.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version88\dbo.Modify_foo_GetIdenticalChannelCount.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_S6A_Prototype_UART_Channel.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_UART_ChannelSettings.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_UART_SensorType.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsUARTUpdateInsert_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsUARTUpdate_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsUARTInsert_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsUARTDelete_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsUARTGet_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_Table_UART_Sensors_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Update_DAS_S6AplusUARTandStreamOutput.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version89\dbo.Add_MaxAAFRate.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_DASGet_MaxAAFRate.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_DASInsert_MaxAAFRate.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_DASUpdateInsert_MaxAAFRate.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_DASUpdate_MaxAAFRate.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version89\dbo.Add_OBRDDR_89.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version87\dbo.DeleteTDASRackModules.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_S6A_Prototype_StreamOutput_Channel.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_StreamOutput_ChannelSettings.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_StreamOutput_SensorType.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamOutputDelete_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamOutputGet_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamOutputInsert_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamOutputUpdateInsert_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamOutputUpdate_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_Table_StreamOutput_Sensors_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_UART_TestSpecificSensor.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_StreamOutput_TestSpecificSensor.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_SensorsDeleteAll_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_SensorsAnalog_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_SensorsAnalogGet_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_SensorsAnalogInsert_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_SensorsAnalogUpdate_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_SensorsAnalogUpdateInsert_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_TestSetupsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_TestSetupsInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_TestSetupsInsertUpdate.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_TestSetupsUpdate.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_TestSetupsUpdateInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.sp_TestSetups_DeleteLevelTriggers.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_TagsDelete_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version89\dbo.Alter_sp_TestSetupsGet_TSRAIR.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.Alter_sp_TestSetupsInsert_TSRAIR.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.Alter_sp_TestSetupsUpdateInsert_TSRAIR.sql" />
<EmbeddedResource Include="MigrationScripts\Version89\dbo.Alter_sp_TestSetupsUpdate_TSRAIR.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version89\Alter_TestSetups_TSRAIR_40.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_DASUpdateInsert_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_DASInsert_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version89\Update_TSRAIR_PowerSettings.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_sp_ChannelsDelete_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_SLICE_PRO_Distributor_Prototype.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_SLICE_PRO_Distributor_PowerSettings.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_TSRAIR_Prototype_StreamOutput_Channel.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Update_DAS_TSRAIRplusStreamOutput.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.LTS_Create_sp_StoredProcedureVersionsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.LTS_Create_Table_StoredProcedureVersions.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Update_DAS_S6AERplusStreamInput.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_S6A_ER_Prototype_StreamInput_Channel.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_Table_StreamInput_Sensors_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamInputDelete_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamInputGet_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamInputInsert_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamInputUpdate_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Create_sp_SensorsStreamInputUpdateInsert_90.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_StreamInput_SensorType.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_StreamInput_ChannelSettings.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_StreamInput_TestSpecificSensor.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_foo_GetIdenticalChannelCount.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Update_DefaultUDPStreamProfile.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Update_Table_Settings_90.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_Falcon_PowerSettings.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_Falcon_Prototype.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Add_Falcon_Prototype_DAS_Channels.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version91\Add_sp_TestSetupsGet_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\Add_sp_TestSetupsInsertUpdate_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\Add_sp_TestSetupsInsert_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\Add_sp_TestSetupsUpdateInsert_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\Add_sp_TestSetupsUpdate_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\Alter_sp_TestSetupsGet_1PPSOut.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\Alter_sp_TestSetupsInsert_1PPSOut.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\Alter_sp_TestSetupsUpdate_1PPSOut.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\dbo.Update_DAS_TSRAIR_MinMaxSampleRate.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\Insert_StoredProcedureVersions_TestSetups_92.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version91\dbo.Add_S6A_StreamOutput_Channel.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\dbo.Add_S6A_UART_Channel.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\dbo.Update_DAS_S6A_ChannelTypes.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version91\EnableRepeat\Alter_sp_TestSetupsGet_92_EnableRepeat.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\EnableRepeat\Alter_sp_TestSetupsInsertUpdate_92_EnableRepeat.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\EnableRepeat\Alter_sp_TestSetupsInsert_92_EnableRepeat.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\EnableRepeat\Alter_sp_TestSetupsUpdateInsert_92_EnableRepeat.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\EnableRepeat\Alter_sp_TestSetupsUpdate_92_EnableRepeat.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\EnableRepeat\Alter_TestSetups_Add_RepeatAutoArmOrStreaming.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Add_dbo.foo_RegionsOfInterestString.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Add_dbo.foo_ROIStringToValueString.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Add_dbo.sp_StringToRegionsOfInterestTables.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Add_sp_ROIPeriodChannelsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Add_sp_ROIPeriodChannelsInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Add_sp_TestSetupROIsDelete.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Add_sp_TestSetupROIsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Add_sp_TestSetupROIsInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsAndGroupsDeleteAll_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsDeleteManyByDate_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsDeleteManyById_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsDeleteManyByName_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsDelete_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsGet_92_ROI.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsInsertUpdate_92_ROI.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsInsert_92_ROI.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsUpdateInsert_92_ROI.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsUpdate_92_ROI.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_TestSetups_RemoveRegionsOfInterest.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\ROIPeriodChannels.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\TestSetupROIs.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version91\IgnoreShorted\Alter_sp_TestSetupsGet_92_IgnoreShorted.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\IgnoreShorted\Alter_sp_TestSetupsInsertUpdate_92_IgnoreShorted.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\IgnoreShorted\Alter_sp_TestSetupsInsert_92_IgnoreShorted.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\IgnoreShorted\Alter_sp_TestSetupsUpdateInsert_92_IgnoreShorted.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\IgnoreShorted\Alter_sp_TestSetupsUpdate_92_IgnoreShorted.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\IgnoreShorted\Alter_TestSetups_Add_IgnoreShortedStartAndTrigger.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsGet_ROI.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsInsert_ROI.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ROIStringToTables\Alter_sp_TestSetupsUpdate_ROI.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version91\IgnoreShorted\Add_sp_DefaultPropertiesInsert.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version91\ACCoupling\Add_sp_ChannelSettingsGet_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ACCoupling\Alter_sp_ChannelSettingsGet_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ACCoupling\Insert_ChannelSetting_ACCoupling_92.sql" />
<EmbeddedResource Include="MigrationScripts\Version91\ACCoupling\Update_StoredProcedureVersions_ACCoupling_92.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\SensorStreamOutput\Add_sp_SensorsStreamOutputGet_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\SensorStreamOutput\Add_sp_SensorsStreamOutputInsert_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\SensorStreamOutput\Add_sp_SensorsStreamOutputUpdate_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\SensorStreamOutput\Add_sp_SensorsStreamOutputUpdateInsert_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\ChannelSettings\Add_sp_ChannelSettingsGet_93_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\ChannelSettings\Alter_sp_ChannelSettingsGet_92_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\ChannelSettings\Alter_sp_ChannelSettingsGet_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\ChannelSettings\Insert_ChannelSettings_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\SensorStreamOutput\Alter_sp_SensorsStreamOutput_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\Update_StoredProcecures_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\SensorStreamOutput\Alter_sp_SensorsStreamOutputGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version92\SensorStreamOutput\Alter_sp_SensorsStreamOutputInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version92\SensorStreamOutput\Alter_sp_SensorsStreamOutputUpdate.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\GroupChannelSettings\Add_sp_GroupChannelSettingsGet_93.sql" />
<EmbeddedResource Include="MigrationScripts\Version92\GroupChannelSettings\Add_sp_GroupChannelSettingsInsert_93.sql" />
<EmbeddedResource Include="MigrationScripts\Version92\GroupChannelSettings\Add_sp_GroupChannelSettingsUpdate_93.sql" />
<EmbeddedResource Include="MigrationScripts\Version92\GroupChannelSettings\Alter_sp_GroupChannelSettingsGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version92\GroupChannelSettings\Alter_sp_GroupChannelSettingsInsert.sql" />
<EmbeddedResource Include="MigrationScripts\Version92\GroupChannelSettings\Alter_sp_GroupChannelSettingsUpdate.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\GroupChannelSettings\Add_sp_GroupChannelSettingsUpdateInsert_93.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version93\Update_TSRAIR_PowerSettings_94.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\S6Falcon\Add_sp_DASGet_95_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\S6Falcon\Add_sp_TestSetupHardwareGet_95_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\S6Falcon\Alter_sp_DASGet_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\S6Falcon\Alter_sp_TestSetupHardwareGet_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\S6Falcon\Delete_DASChannels_S6Falcon_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\S6Falcon\Update_DASChannels_S6Falcon_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\S6Falcon\Update_DAS_S6Falcon_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\Update_StoredProcedures_95.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\TSRAIR_UART\Add_DASChannels_TSRAIR_Prototype_UART_95.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\TSRAIR_UART\Update_DASChannels_TSRAIR_Prototype_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\TSRAIR_UART\Update_DAS_TSRAIR_Prototype_UART_95.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version93\Update_TSRAIR_WakeUpMotionTimeout_94.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_Settings_90_Add_ID.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_Settings_90_Set_ID_PrimaryKey.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_LastUsedHardware_90_Add_ID.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_LastUsedHardware_90_Set_ID_PrimaryKey.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_UIItemSettings_90_Add_ID.sql" />
<EmbeddedResource Include="MigrationScripts\Version90\dbo.Alter_UIItemSettings_90_Set_ID_PrimaryKey.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version93\ConditionalAddIDColumns\dbo.Conditionally_Alter_LastUsedHardware_90_Add_ID.sql" />
<EmbeddedResource Include="MigrationScripts\Version93\ConditionalAddIDColumns\dbo.Conditionally_Alter_LastUsedHardware_90_Set_ID_PrimaryKey.sql" />
<EmbeddedResource Include="MigrationScripts\Version93\ConditionalAddIDColumns\dbo.Conditionally_Alter_Settings_90_Add_ID.sql" />
<EmbeddedResource Include="MigrationScripts\Version93\ConditionalAddIDColumns\dbo.Conditionally_Alter_Settings_90_Set_ID_PrimaryKey.sql" />
<EmbeddedResource Include="MigrationScripts\Version93\ConditionalAddIDColumns\dbo.Conditionally_Alter_UIItemSettings_90_Add_ID.sql" />
<EmbeddedResource Include="MigrationScripts\Version93\ConditionalAddIDColumns\dbo.Conditionally_Alter_UIItemSettings_90_Set_ID_PrimaryKey.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\PTP_Domain_ID\Alter_tbl_TestSetupsHardware_Add_PTPDomainID_95.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\PTP_Domain_ID\Add_sp_TestSetupHardwareInsert_95_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\PTP_Domain_ID\Add_sp_TestSetupHardwareUpdate_95_95.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\ChannelSettings\Alter_sp_ChannelSettingsGet_92_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\ChannelSettings\Alter_sp_ChannelSettingsGet_93_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\ChannelSettings\Alter_sp_ChannelSettingsGet_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\ChannelSettings\Create_sp_ChannelSettingsGet_93_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\GroupChannelSettings\Alter_sp_GroupChannelSettingsGet_93_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\GroupChannelSettings\Alter_sp_GroupChannelSettingsGet_95_BridgeType.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\GroupChannelSettings\Add_StringList_Type_95.sql" />
<EmbeddedResource Include="MigrationScripts\Version94\GroupChannelSettings\Alter_sp_GroupChannelSettingsGet_95.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\ChannelSettings\Insert_BridgeType_ChannelSetting_95.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version95\TSRAIRUserDefaults\dbo.UserProperties_DownloadAll.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\TSRAIRUserDefaults\dbo.UserProperties_Export.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\TSRAIRUserDefaults\dbo.UserProperties_ExportCSVUnfiltered.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\TSRAIRUserDefaults\dbo.UserProperties_ViewAll.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Alter_sp_TestSetupsGet_92_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Alter_sp_TestSetupsGet_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Alter_sp_TestSetupsInsert_92_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Alter_sp_TestSetupsInsert_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Alter_sp_TestSetupsUpdate_92_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Alter_sp_TestSetupsUpdate_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Create_sp_TestSetupsGet_96_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Create_sp_TestSetupsInsertUpdate_96_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Create_sp_TestSetupsUpdateInsert_96_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Create_sp_TestSetupsUpdate_96_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Multiple_event_UART\Create_sp_TestSetupsInsert_96_96.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Update_StoredProcedures_96.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\ImportCreateDynamicGroups\Alter_sp_SettingsUpdateInsert_ImportCreateDynamicGroups.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\ImportCreateDynamicGroups\Alter_sp_SettingsUpdateInsert_ImportCreateDynamicGroups.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version93\ImportCreateDynamicGroups\Alter_sp_SettingsUpdateInsert_ImportCreateDynamicGroups.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version92\ImportCreateDynamicGroups\Alter_sp_SettingsUpdateInsert_ImportCreateDynamicGroups.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version94\Set_DefaultUseAdvancedUDPStreamProfilesToTrue.sql" />
<EmbeddedResource Include="MigrationScripts\Version95\Set_DefaultUseAdvancedUDPStreamProfilesToTrue.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version95\Update_S6A_BR_Power\Update_S6A-BR_Power_Settings.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version96\Update_StoredProcedures_97.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version96\Alter_sp_TestSetupsGet96_97.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version96\Create_sp_TestSetupsGet97_97.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version96\Alter_sp_TestSetupsGet_97.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version96\Alter_sp_TestSetupsGet92_97.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\CreateDiagnosticRuns_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\CreateAnalogDiagnostics_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Create_spAnalogDiagUpdateInsert.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Create_spDiagRunUpdateInsert.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Create_spDiagnosticRunsGet.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Create_spAnalogDiagGet.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\ROIPeriodChannels\Add_sp_ChannelsDelete_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\ROIPeriodChannels\Add_sp_ROIPeriodChannelsGet_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\ROIPeriodChannels\Add_sp_ROIPeriodChannelsInsert_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\ROIPeriodChannels\Conditionally_Alter_ROIPeriodChannels_Add_ChannelId_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\ROIPeriodChannels\Conditionally_Alter_ROIPeriodChannels_Add_Constraint_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\ROIPeriodChannels\Conditionally_Alter_ROIPeriodChannels_Check_Constraint_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Alter_SensorsAnalog_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Alter_sp_SensorsAnalogGet_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorsAnalogAssemblyUsageCountUpdate_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorsAnalogInsert_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorsAnalogUpdateInsert_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorsAnalogUpdate_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorsAnalogUsageCountUpdate_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Update_StoredProcedures_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorCalibrationsInsert_98.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorCalibrationsSensitivityInspectionSet.sql" />
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorCalibrationsUpdate_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\ALTER_TesetSetups_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Create_spTestSetupsGet_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\RemoveUnusedSP.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Create_spTestSetupsInsert_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Create_spTestSetupsUpdate_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\Create_spTestSetupsUpdateInsert_98.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\SensorAssembliesAndCalibration\Create_sp_SensorCalibrationsUsageCountUpdate.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version98\RepairFalconPrototype.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\dbo.Add_SLICETC_Prototype.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\dbo.Add_SLICETC_Prototype_DAS_Channels.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\dbo.Add_Thermocoupler_SensorType.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\dbo.Create_sp_ThermocouplerGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\dbo.Create_Table_SensorsThermocoupler.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\Add_sp_ChannelsGet_99_99.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\Add_sp_DASGet_99_99.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\Add_sp_TestSetupHardwareGet_99_99.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\Alter_sp_ChannelsGet_99.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\Alter_sp_DASGet_95_99.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\Alter_sp_DASGet_99.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\Alter_sp_TestSetupHardwareGet_95_99.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\SLICETC\Alter_sp_TestSetupHardwareGet_99.sql" />
<EmbeddedResource Include="MigrationScripts\Version99\Update_StoredProcedures_99.sql" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Add_CAN_SensorType.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Add_SLICE_PRO_CAN_FD_Prototype.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Add_SLICE_PRO_CAN_FD_Prototype_DAS_Channels.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Alter_sp_ChannelSettingsGet_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Alter_sp_ChannelSettingsGet_92_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Alter_sp_ChannelSettingsGet_93_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Alter_sp_ChannelSettingsGet_95_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Create_sp_ChannelSettingsGet_95_100.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Create_sp_SensorsCANGet.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Create_Table_SensorsCAN.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\SLICE_PRO_CAN_FD\Insert_Can_ChannelSettings.sql" />
<EmbeddedResource Include="MigrationScripts\Version100\Update_StoredProcedures_100.sql" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@@ -0,0 +1,3 @@
UPDATE [dbo].[CalculatedChannels] SET [ViewInRealtime]=1;

View File

@@ -0,0 +1,165 @@
INSERT INTO [dbo].[Settings]
([PropertyId]
,[PropertyType]
,[PropertyValue]
,[UserId])
VALUES
('SLICE6_AIR_PowerSetting'
,2
,'7.8,9,6.8,9,7.6,15.3,6.5,15.3,4,4,9,19,8.4,7.9,11.8,10.9'
,'SYSTEM'),
('UseFlatFolders'
,2
,'False'
,'SYSTEM');
UPDATE [dbo].[DAS]
SET MinSampleRate = 50, MaxSampleRate = 400000
WHERE SerialNumber = 'SLICE6 Prototype'
DECLARE @dasID int;
INSERT INTO [dbo].[DAS]
([SerialNumber]
,[Type]
,[MaxModules]
,[MaxMemory]
,[MaxSampleRate]
,[MinSampleRate]
,[FirmwareVersion]
,[CalDate]
,[ProtocolVersion]
,[LastModified]
,[LastModifiedBy]
,[Version]
,[LocalOnly]
,[LastUsed]
,[LastUsedBy]
,[Connection]
,[Channels]
,[Position]
,[ChannelTypes]
,[Reprogramable]
,[Reconfigurable]
,[IsModule]
,[PositionOnDistributor]
,[PositionOnChain]
,[Port]
,[ParentDAS])
VALUES
('SLICE6 AIR Prototype'
,36
,2
,1360003054
,400000
,50
,'00A1'
,'1970-01-01 00:00:00.000'
,1
,'2017-05-18 14:26:22.000'
,'DATAPRO_SYSTEM'
,1
,0
,'1753-01-01 00:00:00.000'
,''
,''
,6
,'Prototype'
,'0,0,0,0,0,0'
,0
,0
,0
,0
,0
,0
,'');
SET @dasID = CAST(SCOPE_IDENTITY() as int);
INSERT INTO [dbo].[DASChannels]
([DASId]
,[ChannelIdx]
,[SupportedBridges]
,[SupportedExcitations]
,[DASDisplayOrder]
,[LocalOnly]
,[SupportedDigitalInputModes]
,[SupportedSquibFireModes]
,[SupportedDigitalOutputModes]
,[ModuleSerialNumber]
,[SettingId]
,[ModuleArrayIndex])
VALUES
(@dasID
,0
,9
,50
,-1
,0
,30
,1
,10
,''
,0
,0),
(@dasID
,1
,9
,50
,-1
,0
,30
,1
,10
,''
,0
,0),
(@dasID
,2
,9
,50
,-1
,0
,30
,1
,10
,''
,0
,0),
(@dasID
,3
,9
,50
,-1
,0
,30
,1
,10
,''
,0
,0),
(@dasID
,4
,9
,50
,-1
,0
,30
,1
,10
,''
,0
,0),
(@dasID
,5
,9
,50
,-1
,0
,30
,1
,10
,''
,0
,0);

View File

@@ -0,0 +1,14 @@
CREATE PROCEDURE [dbo].[sp_TestSetupHardwareGet_99]
@TestSetupId INT = NULL
AS
BEGIN
SET NOCOUNT ON;
IF( @TestSetupId IS NULL)
BEGIN
SELECT TestSetupHardwareId, DASId, TestSetupId, AddOrRemove, SamplesPerSecond, IsClockMaster, AntiAliasFilterRate, PTPDomainId FROM [dbo].TestSetupHardware
END
ELSE
BEGIN
SELECT TestSetupHardwareId, DASId, TestSetupId, AddOrRemove, SamplesPerSecond, IsClockMaster, AntiAliasFilterRate, PTPDomainId FROM [dbo].TestSetupHardware WHERE [TestSetupId]=@TestSetupId
END
END

View File

@@ -0,0 +1,29 @@
ALTER PROCEDURE [dbo].[sp_SensorsSquibGet]
@ID INT = NULL,
@SerialNumber NVARCHAR (50) = null,
@EID NVARCHAR (50) = NULL
AS
BEGIN
IF(@ID IS NULL )
BEGIN
IF NULLIF(@SerialNumber, '') IS NULL
BEGIN
IF (@EID IS NULL )
BEGIN
SELECT B.id, B.SerialNumber, A.ArticleId, A.BypassCurrentFilter, A.BypassCurrentFilter, A.BypassVoltageFilter, A.DelayMS, A.DurationMS, A.FireMode, A.IsoChannelName, A.IsoCode, A.LastModified, A.LastModifiedBy, A.LimitDuration, A.DefineDelayInTest, A.MeasurementType, A.SquibOutputCurrent, A.SquibToleranceHigh, A.SquibToleranceLow, A.UserChannelName, A.UserCode, A.UserTags, A.UserValue1, A.UserValue2, A.UserValue3, A.Version, A.Broken, A.DoNotUse FROM SensorsSquib AS A INNER JOIN Sensors AS B ON A.SensorId = B.id INNER JOIN [dbo].[SensorsType] AS C ON B.SensorType=C.TypeId WHERE C.SensorType='Squib'
END
ELSE
BEGIN
SELECT B.id, B.SerialNumber, A.ArticleId, A.BypassCurrentFilter, A.BypassCurrentFilter, A.BypassVoltageFilter, A.DelayMS, A.DurationMS, A.FireMode, A.IsoChannelName, A.IsoCode, A.LastModified, A.LastModifiedBy, A.LimitDuration, A.DefineDelayInTest, A.MeasurementType, A.SquibOutputCurrent, A.SquibToleranceHigh, A.SquibToleranceLow, A.UserChannelName, A.UserCode, A.UserTags, A.UserValue1, A.UserValue2, A.UserValue3, A.Version, A.Broken, A.DoNotUse FROM SensorsSquib AS A INNER JOIN Sensors AS B ON A.SensorId = B.id INNER JOIN [dbo].[SensorsType] AS C ON B.SensorType=C.TypeId WHERE C.SensorType='Squib' AND A.ArticleId=@EID
END
END
ELSE
BEGIN
SELECT B.id, B.SerialNumber, A.ArticleId, A.BypassCurrentFilter, A.BypassCurrentFilter, A.BypassVoltageFilter, A.DelayMS, A.DurationMS, A.FireMode, A.IsoChannelName, A.IsoCode, A.LastModified, A.LastModifiedBy, A.LimitDuration, A.DefineDelayInTest, A.MeasurementType, A.SquibOutputCurrent, A.SquibToleranceHigh, A.SquibToleranceLow, A.UserChannelName, A.UserCode, A.UserTags, A.UserValue1, A.UserValue2, A.UserValue3, A.Version, A.Broken, A.DoNotUse FROM SensorsSquib AS A INNER JOIN Sensors AS B ON A.SensorId = B.id INNER JOIN [dbo].[SensorsType] AS C ON B.SensorType=C.TypeId WHERE C.SensorType='Squib' AND B.SerialNumber=@SerialNumber
END
END
ELSE
BEGIN
SELECT B.id, B.SerialNumber, A.ArticleId, A.BypassCurrentFilter, A.BypassCurrentFilter, A.BypassVoltageFilter, A.DelayMS, A.DurationMS, A.FireMode, A.IsoChannelName, A.IsoCode, A.LastModified, A.LastModifiedBy, A.LimitDuration, A.DefineDelayInTest, A.MeasurementType, A.SquibOutputCurrent, A.SquibToleranceHigh, A.SquibToleranceLow, A.UserChannelName, A.UserCode, A.UserTags, A.UserValue1, A.UserValue2, A.UserValue3, A.Version, A.Broken, A.DoNotUse FROM SensorsSquib AS A INNER JOIN Sensors AS B ON A.SensorId = B.id INNER JOIN [dbo].[SensorsType] AS C ON B.SensorType=C.TypeId WHERE C.SensorType='Squib' AND B.id=@ID
END
END

View File

@@ -0,0 +1 @@
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_TestSetupsGet', 97)

View File

@@ -0,0 +1,12 @@
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_SensorsStreamOutputUpdateInsert', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_SensorsStreamOutputUpdate', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_SensorsStreamOutputInsert', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_SensorsStreamOutputGet', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_ChannelSettingsGet', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_GroupChannelSettingsGet', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_GroupChannelSettingsInsert', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_GroupChannelSettingsUpdate', 93)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_GroupChannelSettingsUpdateInsert', 93)

View File

@@ -0,0 +1,123 @@
ALTER PROCEDURE [dbo].[sp_SensorsAnalogUpdate]
@Id INT,
@UserSerialNumber NVARCHAR (50),
@Model NVARCHAR (50),
@SensorModelId INT,
@Manufacturer NVARCHAR (50),
@Status NVARCHAR (50),
@MeasurementUnit NVARCHAR (50),
@OffsetToleranceLow FLOAT,
@OffsetToleranceHigh FLOAT,
@eId NVARCHAR (50),
@Capacity FLOAT,
@Comment NVARCHAR (50),
@BridgeType SMALLINT,
@BridgeLegMode SMALLINT,
@Shunt SMALLINT,
@Invert BIT,
@UserValue1 NVARCHAR (50),
@UserValue2 NVARCHAR (50),
@UserValue3 NVARCHAR (50),
@FilterClass NVARCHAR (50),
@BridgeResistance FLOAT,
@IsoCode NVARCHAR (50),
@IsoChannelName NVARCHAR (255),
@UserCode NVARCHAR (50),
@UserChannelName NVARCHAR (255),
@CheckOffset BIT,
@SupportedExcitation NVARCHAR (50),
@InitialEU FLOAT,
@CalInterval INT,
@CalibrationSignal BIT,
@InternalShuntResistance FLOAT,
@ExternalShuntResistance FLOAT,
@UniPolar BIT,
@RangeLow FLOAT,
@RangeAve FLOAT,
@RangeHigh FLOAT,
@Created DATETIME,
@TimesUsed BIGINT,
@SensorCategory INT,
@BypassFilter BIT,
@CouplingMode SMALLINT,
@Version INT,
@LastModified DATETIME,
@ModifiedBy NVARCHAR (50),
@LocalOnly BIT,
@AxisNumber SMALLINT,
@NumberOfAxes SMALLINT,
@UserTags VARBINARY (MAX),
@DoNotUse BIT,
@Broken BIT,
@DiagnosticsMode BIT,
@FirstUseDate DATETIME NULL,
@LatestCalibrationId INT NULL,
@SerialNumber NVARCHAR (255),
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET NOCOUNT ON
SET @errorNumber = 0
SET @errorMessage = ''
UPDATE [dbo].[SensorsAnalog] SET
[UserSerialNumber] = @UserSerialNumber,
[Model] = @Model,
[SensorModelId] = @SensorModelId,
[Manufacturer] = @Manufacturer,
[Status] = @Status,
[MeasurementUnit] = @MeasurementUnit,
[OffsetToleranceLow] = @OffsetToleranceLow,
[OffsetToleranceHigh] = @OffsetToleranceHigh,
[eId] = @eId,
[Capacity] = @Capacity,
[Comment] = @Comment,
[BridgeType] = @BridgeType,
[BridgeLegMode] = @BridgeLegMode,
[Shunt] = @Shunt,
[Invert] = @Invert,
[UserValue1] = @UserValue1,
[UserValue2] = @UserValue2,
[UserValue3] = @UserValue3,
[FilterClass] = @FilterClass,
[BridgeResistance] = @BridgeResistance,
[IsoCode] = @IsoCode,
[IsoChannelName] = @IsoChannelName,
[UserCode] = @UserCode,
[UserChannelName] = @UserChannelName,
[CheckOffset] = @CheckOffset,
[SupportedExcitation] = @SupportedExcitation,
[InitialEU] = @InitialEU,
[CalInterval] = @CalInterval,
[CalibrationSignal] = @CalibrationSignal,
[InternalShuntResistance] = @InternalShuntResistance,
[ExternalShuntResistance] = @ExternalShuntResistance,
[UniPolar] = @UniPolar,
[RangeLow] = @RangeLow,
[RangeAve] = @RangeAve,
[RangeHigh] = @RangeHigh,
[Created] = @Created,
[TimesUsed] = @TimesUsed,
[SensorCategory] = @SensorCategory,
[BypassFilter] = @BypassFilter,
[CouplingMode] = @CouplingMode,
[Version] = @Version,
[LastModified] = @LastModified,
[ModifiedBy] = @ModifiedBy,
[LocalOnly] = @LocalOnly,
[AxisNumber] = @AxisNumber,
[NumberOfAxes] = @NumberOfAxes,
[UserTags] = @UserTags,
[DoNotUse] = @DoNotUse,
[Broken] = @Broken,
[DiagnosticsMode] = @DiagnosticsMode,
[FirstUseDate] = @FirstUseDate,
[LatestCalibrationId] = @LatestCalibrationId WHERE [Id]=@Id
if(@@error != 0)
begin
set @errorNumber = error_number()
set @errorMessage = error_message()
end
END

View File

@@ -0,0 +1 @@
INSERT INTO dbo.StoredProcedureVersions VALUES('sp_ChannelSettingsGet', 92)

View File

@@ -0,0 +1,25 @@
CREATE PROCEDURE [dbo].[sp_SensorsStreamInputUpdate]
@Id INT,
@UDPAddress NVARCHAR (50),
@LastModified DATETIME,
@LastModifiedBy NVARCHAR (50),
@UserTags VARBINARY (MAX),
@Broken BIT,
@DoNotUse BIT,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET @errorNumber = 0
SET @errorMessage = ''
UPDATE [dbo].SensorsStreamInput SET [UDPAddress]=@UDPAddress, [LastModified]=@LastModified, [LastModifiedBy]=@LastModifiedBy, [UserTags]=@UserTags, [Broken]=@Broken, [DoNotUse]=@DoNotUse WHERE [SensorId] = @Id
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,219 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsUpdateInsert]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@RegionsOfInterest nvarchar(MAX)
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@TestSetup varbinary(MAX)
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
declare @TestSetupId int
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
if(exists(select TestSetupId from [dbo].[TestSetups] where TestSetupId = @TestSetupId))
begin
set @new_id = @TestSetupId
exec dbo.sp_TestSetupsUpdate @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@TestSetup
,@new_id output
,@errorNumber output
,@errorMessage output
end
else
begin
exec dbo.sp_TestSetupsInsert @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@TestSetup
,@new_id output
,@errorNumber output
,@errorMessage output
end
END

View File

@@ -0,0 +1,218 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsInsertUpdate]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@RegionsOfInterest nvarchar(MAX)
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@TestSetup varbinary(MAX)
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
declare @TestSetupId int
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
if(exists(select TestSetupId from [dbo].[TestSetups] where TestSetupId = @TestSetupId))
begin
set @new_id = @TestSetupId
exec dbo.sp_TestSetupsUpdate @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@TestSetup
,@new_id output
,@errorNumber output
,@errorMessage output
end
else
begin
exec dbo.sp_TestSetupsInsert @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@TestSetup
,@new_id output
,@errorNumber output
,@errorMessage output
end
END

View File

@@ -0,0 +1,119 @@
ALTER PROCEDURE [dbo].[sp_SensorModelsUpdateInsert]
@Model nvarchar(50)
,@Manufacturer nvarchar(50)
,@UserPartNumber nvarchar(50)
,@Capacity float
,@OffsetToleranceLow float
,@OffsetToleranceHigh float
,@MeasurementUnit nvarchar(50)
,@Bridge smallint
,@Shunt smallint
,@BridgeResistance float
,@FilterClass nvarchar(50)
,@UniPolar bit
,@IgnoreRange bit
,@CouplingMode smallint
,@Version int
,@RangeLow float
,@RangeAve float
,@RangeHigh float
,@LastModified datetime
,@ModifiedBy nvarchar(50)
,@LocalOnly bit
,@NumberOfAxes smallint
,@CalInterval int
,@AxisNumber smallint
,@Polarity nvarchar(10)
,@Invert bit
,@CheckOffset bit
,@CalibrationRecord nvarchar(MAX)
,@ISOCode nvarchar(20)
,@SupportedExcitation nvarchar(255)
,@InitialEU float
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
declare @SensorModelId int
select @SensorModelId = isnull([SensorModelId], 0) from [dbo].[SensorModels] where Model = @Model and Manufacturer = @Manufacturer
if(@SensorModelId != 0)
begin
exec dbo.sp_SensorModelsUpdate @Model
,@Manufacturer
,@UserPartNumber
,@Capacity
,@OffsetToleranceLow
,@OffsetToleranceHigh
,@MeasurementUnit
,@Bridge
,@Shunt
,@BridgeResistance
,@FilterClass
,@UniPolar
,@IgnoreRange
,@CouplingMode
,@Version
,@RangeLow
,@RangeAve
,@RangeHigh
,@LastModified
,@ModifiedBy
,@LocalOnly
,@NumberOfAxes
,@CalInterval
,@AxisNumber
,@Polarity
,@Invert
,@CheckOffset
,@CalibrationRecord
,@ISOCode
,@SupportedExcitation
,@InitialEU
,@errorNumber output
,@errorMessage output
end
else
begin
exec dbo.sp_SensorModelsInsert @Model
,@Manufacturer
,@UserPartNumber
,@Capacity
,@OffsetToleranceLow
,@OffsetToleranceHigh
,@MeasurementUnit
,@Bridge
,@Shunt
,@BridgeResistance
,@FilterClass
,@UniPolar
,@IgnoreRange
,@CouplingMode
,@Version
,@RangeLow
,@RangeAve
,@RangeHigh
,@LastModified
,@ModifiedBy
,@LocalOnly
,@NumberOfAxes
,@CalInterval
,@AxisNumber
,@Polarity
,@Invert
,@CheckOffset
,@CalibrationRecord
,@ISOCode
,@SupportedExcitation
,@InitialEU
,@new_id output
,@errorNumber output
,@errorMessage output
end
END

View File

@@ -0,0 +1,14 @@
ALTER PROCEDURE [dbo].[sp_TestSetupHardwareGet_95]
@TestSetupId INT = NULL
AS
BEGIN
SET NOCOUNT ON;
IF( @TestSetupId IS NULL)
BEGIN
SELECT TestSetupHardwareId, A.DASId, TestSetupId, AddOrRemove, SamplesPerSecond, IsClockMaster, AntiAliasFilterRate FROM [dbo].TestSetupHardware AS A INNER JOIN [dbo].DAS AS B ON A.DASId=B.DASId WHERE B.Type!=59
END
ELSE
BEGIN
SELECT TestSetupHardwareId, A.DASId, TestSetupId, AddOrRemove, SamplesPerSecond, IsClockMaster, AntiAliasFilterRate FROM [dbo].TestSetupHardware AS A INNER JOIN [dbo].DAS AS B ON A.DASId=B.DASId WHERE [TestSetupId]=@TestSetupId AND B.Type!=59
END
END

View File

@@ -0,0 +1,49 @@
ALTER PROCEDURE [dbo].[sp_DASGet]
@SerialNumber nvarchar(50) = null
,@position nvarchar(10) = null
AS
BEGIN
SET NOCOUNT ON;
SELECT [DASId]
,[SerialNumber]
,[Type]
,[MaxModules]
,[MaxMemory]
,[MaxSampleRate]
,[MinSampleRate]
,[FirmwareVersion]
,[CalDate]
,[ProtocolVersion]
,[LastModified]
,[LastModifiedBy]
,[Version]
,[LocalOnly]
,[LastUsed]
,[LastUsedBy]
,[Connection]
,[Channels]
,[Position]
,[ChannelTypes]
,[Reprogramable]
,[Reconfigurable]
,[IsModule]
,isnull([PositionOnDistributor], 0) as [PositionOnDistributor]
,isnull([PositionOnChain], 0) as [PositionOnChain]
,isnull([Port],0) as [Port]
,isnull([ParentDAS], space(0)) as [ParentDAS],
[FirstUseDate],
[TestId],
[GroupId],
[StandIn],
[MaxAAFRate]
FROM [dbo].[DAS] where
(@SerialNumber is null or DASId = dbo.foo_IdGetDAS(@SerialNumber))
and
Position = case when @position is null then space(0) else @position end
and
Type!=58
and
Type!=59
END

View File

@@ -0,0 +1,14 @@
ALTER PROCEDURE [dbo].[sp_TestSetupHardwareGet]
@TestSetupId INT = NULL
AS
BEGIN
SET NOCOUNT ON;
IF( @TestSetupId IS NULL)
BEGIN
SELECT TestSetupHardwareId, A.DASId, TestSetupId, AddOrRemove, SamplesPerSecond, IsClockMaster, AntiAliasFilterRate FROM [dbo].TestSetupHardware AS A INNER JOIN [dbo].DAS AS B ON A.DASId=B.DASId WHERE B.Type!=58
END
ELSE
BEGIN
SELECT TestSetupHardwareId, A.DASId, TestSetupId, AddOrRemove, SamplesPerSecond, IsClockMaster, AntiAliasFilterRate FROM [dbo].TestSetupHardware AS A INNER JOIN [dbo].DAS AS B ON A.DASId=B.DASId WHERE [TestSetupId]=@TestSetupId AND B.Type!=58
END
END

View File

@@ -0,0 +1,17 @@
--If any StreamOutput sensor already has an advanced Stream Profile, add (if non-existent)
--or update, DefaultUseAdvancedUDPStreamProfiles = True, in the DefaultProperties table.
--This will cause it to be set to True in the UserProperties table automatically, later when needed.
IF ((SELECT COUNT(*) FROM SensorsStreamOutput WHERE StreamProfile <> 'CH10_ANALOG_2HDR' AND StreamProfile <> 'CH10_PCM_128BIT_2HDR') > 0)
BEGIN
--Add to or Update DefaultProperties table
IF ((SELECT COUNT(*) FROM DefaultProperties WHERE PropertyName = 'DefaultUseAdvancedUDPStreamProfiles') = 0)
BEGIN
--Add to table
INSERT INTO DefaultProperties VALUES (492, 'DefaultUseAdvancedUDPStreamProfiles', 'True');
END
ELSE
BEGIN
--Update existing entry
UPDATE DefaultProperties SET DefaultValue = 'True' WHERE PropertyName = 'DefaultUseAdvancedUDPStreamProfiles';
END
END

View File

@@ -0,0 +1,429 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsInsert]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@NumberOfEvents int
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@RegionsOfInterest nvarchar(MAX)
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@DoStreaming bit
,@ClockSyncProfileMaster nvarchar(50)
,@ClockSyncProfileSlave nvarchar(50)
,@ExtraProperties nvarchar(max)
,@MeasureSquibResistancesStep bit
,@TestSetupUniqueId nvarchar(max)
,@TestSetup varbinary(MAX)
,@LowgLVLTrigOn bit
,@LowgLVLTrigOnX bit
,@LowgLVLTrigOnY bit
,@LowgLVLTrigOnZ bit
,@HighgLVLTrigOn bit
,@HighgLVLTrigOnX bit
,@HighgLVLTrigOnY bit
,@HighgLVLTrigOnZ bit
,@AngAccelLVLTrigOn bit
,@AngAccelLVLTrigOnX bit
,@AngAccelLVLTrigOnY bit
,@AngAccelLVLTrigOnZ bit
,@ARSLVLTrigOn bit
,@ARSLVLTrigOnX bit
,@ARSLVLTrigOnY bit
,@ARSLVLTrigOnZ bit
,@LowgLVLTrigX float
,@LowgLVLTrigY float
,@LowgLVLTrigZ float
,@HighgLVLTrigX float
,@HighgLVLTrigY float
,@HighgLVLTrigZ float
,@AngAccelLVLTrigX float
,@AngAccelLVLTrigY float
,@AngAccelLVLTrigZ float
,@ARSLVLTrigX float
,@ARSLVLTrigY float
,@ARSLVLTrigZ float
,@HumidityLVLTrigOn bit
,@PressureLVLTrigOn bit
,@TemperatureLVLTrigOn bit
,@HumidityLVLTrigBelow float
,@HumidityLVLTrigAbove float
,@PressureLVLTrigBelow float
,@PressureLVLTrigAbove float
,@TemperatureLVLTrigBelow float
,@TemperatureLVLTrigAbove float
,@LowgRate int
,@HighgRate int
,@AngularRate int
,@TempHumidPressRate int
,@BatterySaverModeOn bit
,@WakeupAndTriggerOn bit
,@WakeupTrigger bit
,@TimedIntervalTrigOn bit
,@TimedIntervalDuration int
,@TimedIntervalEvents int
,@TimedIntervalFrequency int
,@TimedIntervalUnits smallint
,@RTCScheduleTrigOn bit
,@RTCScheduleStartDateTime datetime
,@RTCScheduleDuration bigint
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
/* Table (and stored procedure) is too big... */
begin try
if(@TestSetupName is null)
begin
set @errorMessage = 'An invalid parameter or option was specified for procedure'
set @errorNumber = 15600
end
else
begin
SET NOCOUNT ON;
declare @TestEngineerId int
declare @LabratoryId int
declare @CustomerId int
set @CustomerId = dbo.foo_IdGetCustomer(@CustomerDetails)
IF @CustomerId <= 0
BEGIN
SET @CustomerId = null
END
set @LabratoryId = dbo.foo_IdGetLabratory(@LabDetails)
IF @LabratoryId <= 0
BEGIN
SET @LabratoryId = null
END
set @TestEngineerId = dbo.foo_IdGetEngineer(@TestEngineerDetails);
IF @TestEngineerId <= 0
BEGIN
SET @TestEngineerId = null
END
insert into [dbo].[TestSetups]
([TestSetupName]
,[SetupDescription]
,[AutomaticTestProgression]
,[AutomaticProgressionDelayMS]
,[InvertTrigger]
,[InvertStart]
,[ViewDiagnostics]
,[VerifyChannels]
,[AutoVerifyChannels]
,[VerifyChannelsDelayMS]
,[RecordingMode]
,[SamplesPerSecond]
,[PreTriggerSeconds]
,[PostTriggerSeconds]
,[NumberOfEvents]
,[StrictDiagnostics]
,[RequireConfirmationOnErrors]
,[ROIDownload]
,[ViewROIDownload]
,[DownloadAll]
,[ViewRealtime]
,[RealtimePlotCount]
,[RegionsOfInterest]
,[ROIStart]
,[ROIEnd]
,[ViewDownloadAll]
,[Export]
,[ExportFormat]
,[CustomerId]
,[LabratoryId]
,[TestEngineerId]
,[LabDetails]
,[UseLabDetails]
,[CustomerDetails]
,[UseCustomerDetails]
,[TestEngineerDetails]
,[UseTestEngineerDetails]
,[AllowMissingSensors]
,[AllowSensorIdToBlankChannel]
,[CalibrationBehavior]
,[LocalOnly]
,[LastModified]
,[LastModifiedBy]
,[TurnOffExcitation]
,[TriggerCheckRealtime]
,[TriggerCheckStep]
,[PostTestDiagnostics]
,[ExportFolder]
,[DownloadFolder]
,[CommonStatusLine]
,[SameAsDownloadFolder]
,[UploadData]
,[UploadDataFolder]
,[UploadExportsOnly]
,[Settings]
,[WarnOnBatteryFail]
,[Dirty]
,[Complete]
,[ErrorMessage]
,[UserTags]
,[DoAutoArm]
,[CheckoutMode]
,[ISFFile]
,[QuitTestWithoutWarning]
,[NotAllChannelsRealTime]
,[NotAllChannelsViewer]
,[SuppressMissingSensorsWarning]
,[DoStreaming]
,[ClockSyncProfileMaster]
,[ClockSyncProfileSlave]
,[ExtraProperties]
,[MeasureSquibResistancesStep]
,[TestSetupUniqueId]
,[TestSetup]
,[LowgLVLTrigOn]
,[LowgLVLTrigOnX]
,[LowgLVLTrigOnY]
,[LowgLVLTrigOnZ]
,[HighgLVLTrigOn]
,[HighgLVLTrigOnX]
,[HighgLVLTrigOnY]
,[HighgLVLTrigOnZ]
,[AngAccelLVLTrigOn]
,[AngAccelLVLTrigOnX]
,[AngAccelLVLTrigOnY]
,[AngAccelLVLTrigOnZ]
,[ARSLVLTrigOn]
,[ARSLVLTrigOnX]
,[ARSLVLTrigOnY]
,[ARSLVLTrigOnZ]
,[LowgLVLTrigX]
,[LowgLVLTrigY]
,[LowgLVLTrigZ]
,[HighgLVLTrigX]
,[HighgLVLTrigY]
,[HighgLVLTrigZ]
,[AngAccelLVLTrigX]
,[AngAccelLVLTrigY]
,[AngAccelLVLTrigZ]
,[ARSLVLTrigX]
,[ARSLVLTrigY]
,[ARSLVLTrigZ]
,[HumidityLVLTrigOn]
,[PressureLVLTrigOn]
,[TemperatureLVLTrigOn]
,[HumidityLVLTrigBelow]
,[HumidityLVLTrigAbove]
,[PressureLVLTrigBelow]
,[PressureLVLTrigAbove]
,[TemperatureLVLTrigBelow]
,[TemperatureLVLTrigAbove]
,[LowgRate]
,[HighgRate]
,[AngularRate]
,[TempHumidPressRate]
,[BatterySaverModeOn]
,[WakeupAndTriggerOn]
,[WakeupTrigger]
,[TimedIntervalTrigOn]
,[TimedIntervalDuration]
,[TimedIntervalEvents]
,[TimedIntervalFrequency]
,[TimedIntervalUnits]
,[RTCScheduleTrigOn]
,[RTCScheduleStartDateTime]
,[RTCScheduleDuration])
VALUES
( @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@CustomerId
,@LabratoryId
,@TestEngineerId
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@TestEngineerDetails
,@UseTestEngineerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,@ClockSyncProfileMaster
,@ClockSyncProfileSlave
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@LowgLVLTrigOn
,@LowgLVLTrigOnX
,@LowgLVLTrigOnY
,@LowgLVLTrigOnZ
,@HighgLVLTrigOn
,@HighgLVLTrigOnX
,@HighgLVLTrigOnY
,@HighgLVLTrigOnZ
,@AngAccelLVLTrigOn
,@AngAccelLVLTrigOnX
,@AngAccelLVLTrigOnY
,@AngAccelLVLTrigOnZ
,@ARSLVLTrigOn
,@ARSLVLTrigOnX
,@ARSLVLTrigOnY
,@ARSLVLTrigOnZ
,@LowgLVLTrigX
,@LowgLVLTrigY
,@LowgLVLTrigZ
,@HighgLVLTrigX
,@HighgLVLTrigY
,@HighgLVLTrigZ
,@AngAccelLVLTrigX
,@AngAccelLVLTrigY
,@AngAccelLVLTrigZ
,@ARSLVLTrigX
,@ARSLVLTrigY
,@ARSLVLTrigZ
,@HumidityLVLTrigOn
,@PressureLVLTrigOn
,@TemperatureLVLTrigOn
,@HumidityLVLTrigBelow
,@HumidityLVLTrigAbove
,@PressureLVLTrigBelow
,@PressureLVLTrigAbove
,@TemperatureLVLTrigBelow
,@TemperatureLVLTrigAbove
,@LowgRate
,@HighgRate
,@AngularRate
,@TempHumidPressRate
,@BatterySaverModeOn
,@WakeupAndTriggerOn
,@WakeupTrigger
,@TimedIntervalTrigOn
,@TimedIntervalDuration
,@TimedIntervalEvents
,@TimedIntervalFrequency
,@TimedIntervalUnits
,@RTCScheduleTrigOn
,@RTCScheduleStartDateTime
,@RTCScheduleDuration)
set @new_id = scope_identity()
end
end try
begin catch
set @errorMessage = error_message()
set @errorNumber = error_number()
end catch;
END

View File

@@ -0,0 +1,143 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsGet]
@TestSetupId int = null,
@TestSetupName nvarchar(50) = null
AS
BEGIN
SET NOCOUNT ON;
if(@TestSetupName is not null)
begin
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
end
SELECT [TestSetupId]
,[TestSetupName] as 'SetupName'
,[SetupDescription]
,[AutomaticTestProgression]
,[AutomaticProgressionDelayMS]
,[InvertTrigger]
,[InvertStart]
,[ViewDiagnostics]
,[VerifyChannels]
,[AutoVerifyChannels]
,[VerifyChannelsDelayMS]
,[RecordingMode]
,[SamplesPerSecond]
,[PreTriggerSeconds]
,[PostTriggerSeconds]
,[NumberOfEvents]
,[StrictDiagnostics]
,[RequireConfirmationOnErrors]
,[ROIDownload]
,[ViewROIDownload]
,[DownloadAll]
,[ViewRealtime]
,[RealtimePlotCount]
,[RegionsOfInterest]
,[ROIStart]
,[ROIEnd]
,[ViewDownloadAll]
,[Export]
,[ExportFormat]
,[LabDetails]
,[UseLabDetails]
,[CustomerDetails]
,[UseCustomerDetails]
,[AllowMissingSensors]
,[AllowSensorIdToBlankChannel]
,[CalibrationBehavior]
,[LocalOnly]
,[LastModified]
,[LastModifiedBy]
,[TurnOffExcitation]
,[TriggerCheckRealtime]
,[TriggerCheckStep]
,[PostTestDiagnostics]
,[ExportFolder]
,[DownloadFolder]
,[CommonStatusLine]
,[SameAsDownloadFolder]
,[UploadData]
,[UploadDataFolder]
,[UploadExportsOnly]
,[Settings]
,[WarnOnBatteryFail]
,[Dirty]
,[Complete]
,[ErrorMessage]
,[TestEngineerDetails]
,[UseTestEngineerDetails]
,[UserTags]
,isnull([DoAutoArm], 0) as [DoAutoArm]
,isnull([CheckoutMode], 0) as [CheckoutMode]
,isnull([ISFFile], 0) as [ISFFile]
,isnull([QuitTestWithoutWarning], 0) as [QuitTestWithoutWarning]
,isnull([NotAllChannelsRealTime], 0) as [NotAllChannelsRealTime]
,isnull([NotAllChannelsViewer], 0) as [NotAllChannelsViewer]
,isnull([SuppressMissingSensorsWarning], 0) as [SuppressMissingSensorsWarning]
,isnull([DoStreaming], 0) as [DoStreaming]
,[ClockSyncProfileMaster]
,[ClockSyncProfileSlave]
,[ExtraProperties]
,isnull([MeasureSquibResistancesStep], 0) as [MeasureSquibResistancesStep]
,[TestSetupUniqueId]
,[TestSetup]
,[LowgLVLTrigOn]
,[LowgLVLTrigOnX]
,[LowgLVLTrigOnY]
,[LowgLVLTrigOnZ]
,[HighgLVLTrigOn]
,[HighgLVLTrigOnX]
,[HighgLVLTrigOnY]
,[HighgLVLTrigOnZ]
,[AngAccelLVLTrigOn]
,[AngAccelLVLTrigOnX]
,[AngAccelLVLTrigOnY]
,[AngAccelLVLTrigOnZ]
,[ARSLVLTrigOn]
,[ARSLVLTrigOnX]
,[ARSLVLTrigOnY]
,[ARSLVLTrigOnZ]
,[LowgLVLTrigX]
,[LowgLVLTrigY]
,[LowgLVLTrigZ]
,[HighgLVLTrigX]
,[HighgLVLTrigY]
,[HighgLVLTrigZ]
,[AngAccelLVLTrigX]
,[AngAccelLVLTrigY]
,[AngAccelLVLTrigZ]
,[ARSLVLTrigX]
,[ARSLVLTrigY]
,[ARSLVLTrigZ]
,[HumidityLVLTrigOn]
,[PressureLVLTrigOn]
,[TemperatureLVLTrigOn]
,[HumidityLVLTrigBelow]
,[HumidityLVLTrigAbove]
,[PressureLVLTrigBelow]
,[PressureLVLTrigAbove]
,[TemperatureLVLTrigBelow]
,[TemperatureLVLTrigAbove]
,[LowgRate]
,[HighgRate]
,[AngularRate]
,[TempHumidPressRate]
,[BatterySaverModeOn]
,[WakeupAndTriggerOn]
,[WakeupTrigger]
,[WakeUpMotionTimeout]
,[WakeUpMagnetTimeout]
,[WakeUpTimeSessionStart]
,[WakeUpTimeDuration]
,[TimedIntervalTrigOn]
,[TimedIntervalDuration]
,[TimedIntervalEvents]
,[TimedIntervalFrequency]
,[TimedIntervalUnits]
,[RTCScheduleTrigOn]
,[RTCScheduleStartDateTime]
,[RTCScheduleDuration]
from [dbo].[TestSetups]
where ((@TestSetupId is null or @TestSetupId= 0) or TestSetupId = @TestSetupId)
and (@TestSetupName is null or TestSetupName = @TestSetupName);
END

View File

@@ -0,0 +1,5 @@
-- We check for ChannelTypes = '0,0,0,0,0,0' because that's the case where a SLICE6Air
-- has not already been rediscovered in 4.0 (which would result in '0,0,0,0,0,0,5,6').
INSERT INTO [dbo].[DASChannels]
([DASId], [ChannelIdx], [SupportedBridges], [SupportedExcitations], [DASDisplayOrder], [LocalOnly], [SupportedDigitalInputModes], [SupportedSquibFireModes], [SupportedDigitalOutputModes], [ModuleSerialNumber], [ModuleArrayIndex])
(SELECT DASId, 7, 1024, 1, -1, 0, 0, 0, 0, 'S6A-StreamOut1', 3 FROM [dbo].[DAS] WHERE Type = '36' AND Position <> 'Prototype' AND ChannelTypes = '0,0,0,0,0,0' GROUP BY DASId)

View File

@@ -0,0 +1,45 @@
INSERT INTO [dbo].[DefaultProperties] (
[PropertyId],
[PropertyName],
[DefaultValue])
VALUES
(435, 'DefaultEmbeddedLowGLinearAccelerometerSampleRate', '6400'),
(436, 'DefaultEmbeddedHighGLinearAccelerometerSampleRate', '5120'),
(437, 'DefaultEmbeddedAngularAccelerometerSampleRate', '1600'),
(438, 'DefaultEmbeddedAngularAccelerometerAndRateSensorSampleRate', '5120'),
(439, 'DefaultEmbeddedAtmosphericSensorSampleRate', '157'),
(440, 'DefaultBatterySaverMode', 'False'),
(441, 'DefaultWakeMethod', 'None'),
(442, 'DefaultMotionDetectDelayMs', '100'),
(443, 'DefaultMotionQualificationPeriodMs', '100'),
(444, 'DefaultMotionDetectInactivityS', '10'),
(447, 'DefaultTimeSessionDuration', '0'),
(449, 'DefaultMagnetDetectDelayMs', '100'),
(450, 'DefaultMagnetTimeoutS', '1'),
(451, 'DefaultEmbeddedLowGLinearAccelerometerTrigger', 'False'),
(452, 'DefaultEmbeddedLowGLinearAccelerometerTriggerAboveAndBelow', '5'),
(453, 'DefaultEmbeddedHighGLinearAccelerometerTrigger', 'False'),
(454, 'DefaultEmbeddedHighGLinearAccelerometerTriggerAboveAndBelow', '100'),
(455, 'DefaultEmbeddedAngularAccelerometerTrigger', 'False'),
(456, 'DefaultEmbeddedAngularAccelerometerTriggerAboveAndBelow', '100'),
(457, 'DefaultEmbeddedAngularRateSensorTrigger', 'False'),
(458, 'DefaultEmbeddedAngularRateSensorTriggerAboveAndBelow', '100'),
(459, 'DefaultEmbeddedTemperatureTrigger', 'False'),
(460, 'DefaultEmbeddedTemperatureTriggerAbove', '37'),
(461, 'DefaultEmbeddedTemperatureTriggerBelow', '100'),
(462, 'DefaultEmbeddedHumidityTrigger', 'False'),
(463, 'DefaultEmbeddedHumidityTriggerAbove', '25'),
(464, 'DefaultEmbeddedHumidityTriggerBelow', '50'),
(465, 'DefaultEmbeddedPressureTrigger', 'False'),
(466, 'DefaultEmbeddedPressureTriggerAbove', '5'),
(467, 'DefaultEmbeddedPressureTriggerBelow', '10'),
(468, 'DefaultTimedIntervalTrigger', 'False'),
(469, 'DefaultTimedIntervalFrequency', '100'),
(470, 'DefaultTimedIntervalUnit', 'Seconds'),
(471, 'DefaultTimedIntervalEventDurationMs', '1000'),
(472, 'DefaultTimedIntervalNumberOfEvents', '100'),
(473, 'DefaultRTCScheduleTrigger', 'False'),
(474, 'DefaultRTCScheduleStartTime', ''),
(475, 'DefaultRTCScheduleDuration', '0')

View File

@@ -0,0 +1,330 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsInsert]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@NumberOfEvents int
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@RegionsOfInterest nvarchar(MAX)
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@DoStreaming bit
,@ClockSyncProfileMaster nvarchar(50)
,@ClockSyncProfileSlave nvarchar(50)
,@ExtraProperties nvarchar(max)
,@MeasureSquibResistancesStep bit
,@TestSetupUniqueId nvarchar(max)
,@TestSetup varbinary(MAX)
,@WakeupAndTriggerOn bit
,@WakeupTrigger smallint
,@WakeUpMotionTimeout int
,@TimedIntervalFrequency int
,@RTCScheduleStartDateTime datetime
,@RTCScheduleDuration bigint
,@StartWithEvent bit
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
/* Table (and stored procedure) is too big... */
begin try
if(@TestSetupName is null)
begin
set @errorMessage = 'An invalid parameter or option was specified for procedure'
set @errorNumber = 15600
end
else
begin
SET NOCOUNT ON;
declare @TestEngineerId int
declare @LabratoryId int
declare @CustomerId int
set @CustomerId = dbo.foo_IdGetCustomer(@CustomerDetails)
IF @CustomerId <= 0
BEGIN
SET @CustomerId = null
END
set @LabratoryId = dbo.foo_IdGetLabratory(@LabDetails)
IF @LabratoryId <= 0
BEGIN
SET @LabratoryId = null
END
set @TestEngineerId = dbo.foo_IdGetEngineer(@TestEngineerDetails);
IF @TestEngineerId <= 0
BEGIN
SET @TestEngineerId = null
END
insert into [dbo].[TestSetups]
([TestSetupName]
,[SetupDescription]
,[AutomaticTestProgression]
,[AutomaticProgressionDelayMS]
,[InvertTrigger]
,[InvertStart]
,[ViewDiagnostics]
,[VerifyChannels]
,[AutoVerifyChannels]
,[VerifyChannelsDelayMS]
,[RecordingMode]
,[SamplesPerSecond]
,[PreTriggerSeconds]
,[PostTriggerSeconds]
,[NumberOfEvents]
,[StrictDiagnostics]
,[RequireConfirmationOnErrors]
,[ROIDownload]
,[ViewROIDownload]
,[DownloadAll]
,[ViewRealtime]
,[RealtimePlotCount]
,[ROIStart]
,[ROIEnd]
,[ViewDownloadAll]
,[Export]
,[ExportFormat]
,[CustomerId]
,[LabratoryId]
,[TestEngineerId]
,[LabDetails]
,[UseLabDetails]
,[CustomerDetails]
,[UseCustomerDetails]
,[TestEngineerDetails]
,[UseTestEngineerDetails]
,[AllowMissingSensors]
,[AllowSensorIdToBlankChannel]
,[CalibrationBehavior]
,[LocalOnly]
,[LastModified]
,[LastModifiedBy]
,[TurnOffExcitation]
,[TriggerCheckRealtime]
,[TriggerCheckStep]
,[PostTestDiagnostics]
,[ExportFolder]
,[DownloadFolder]
,[CommonStatusLine]
,[SameAsDownloadFolder]
,[UploadData]
,[UploadDataFolder]
,[UploadExportsOnly]
,[Settings]
,[WarnOnBatteryFail]
,[Dirty]
,[Complete]
,[ErrorMessage]
,[UserTags]
,[DoAutoArm]
,[CheckoutMode]
,[ISFFile]
,[QuitTestWithoutWarning]
,[NotAllChannelsRealTime]
,[NotAllChannelsViewer]
,[SuppressMissingSensorsWarning]
,[DoStreaming]
,[ClockSyncProfileMaster]
,[ClockSyncProfileSlave]
,[ExtraProperties]
,[MeasureSquibResistancesStep]
,[TestSetupUniqueId]
,[TestSetup]
,[WakeupAndTriggerOn]
,[WakeupTrigger]
,[WakeUpMotionTimeout]
,[TimedIntervalFrequency]
,[RTCScheduleStartDateTime]
,[RTCScheduleDuration]
,[StartWithEvent])
VALUES
( @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@CustomerId
,@LabratoryId
,@TestEngineerId
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@TestEngineerDetails
,@UseTestEngineerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,CASE WHEN
@ClockSyncProfileMaster='None' OR
@ClockSyncProfileMaster='Manual' OR
@ClockSyncProfileMaster='Slave_E2E' OR
@ClockSyncProfileMaster='Master_E2E' OR
@ClockSyncProfileMaster='Auto_E2E' OR
@ClockSyncProfileMaster='Master_E2E_IRIG' OR
@ClockSyncProfileMaster='Master_E2E_IRIG_EXT_PPS' OR
@ClockSyncProfileMaster='Master_E2E_GPS' OR
@ClockSyncProfileMaster='Master_E2E_GPS_EXT_PPS' OR
@ClockSyncProfileMaster='IRIG' OR
@ClockSyncProfileMaster='IRIG_EXT_PPS' OR
@ClockSyncProfileMaster='GPS' OR
@ClockSyncProfileMaster='GPS_EXT_PPS' OR
@ClockSyncProfileMaster='EXT_PPS'
THEN
@ClockSyncProfileMaster
ELSE
'None'
END
,CASE WHEN
@ClockSyncProfileSlave='None' OR
@ClockSyncProfileSlave='Manual' OR
@ClockSyncProfileSlave='Slave_E2E' OR
@ClockSyncProfileSlave='Master_E2E' OR
@ClockSyncProfileSlave='Auto_E2E' OR
@ClockSyncProfileSlave='Master_E2E_IRIG' OR
@ClockSyncProfileSlave='Master_E2E_IRIG_EXT_PPS' OR
@ClockSyncProfileSlave='Master_E2E_GPS' OR
@ClockSyncProfileSlave='Master_E2E_GPS_EXT_PPS' OR
@ClockSyncProfileSlave='IRIG' OR
@ClockSyncProfileSlave='IRIG_EXT_PPS' OR
@ClockSyncProfileSlave='GPS' OR
@ClockSyncProfileSlave='GPS_EXT_PPS' OR
@ClockSyncProfileSlave='EXT_PPS'
THEN
@ClockSyncProfileSlave
ELSE
'None'
END
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@WakeupAndTriggerOn
,@WakeupTrigger
,@WakeUpMotionTimeout
,@TimedIntervalFrequency
,@RTCScheduleStartDateTime
,@RTCScheduleDuration
,@StartWithEvent)
set @new_id = scope_identity()
end
end try
begin catch
set @errorMessage = error_message()
set @errorNumber = error_number()
end catch;
END

View File

@@ -0,0 +1,224 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsUpdate_92]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@NumberOfEvents int
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@DoStreaming bit
,@ClockSyncProfileMaster nvarchar(50)
,@ClockSyncProfileSlave nvarchar(50)
,@ExtraProperties nvarchar(max)
,@MeasureSquibResistancesStep bit
,@TestSetupUniqueId nvarchar(max)
,@TestSetup varbinary(MAX)
,@WakeupAndTriggerOn bit
,@WakeupTrigger smallint
,@WakeUpMotionTimeout int
,@TimedIntervalFrequency int
,@RTCScheduleStartDateTime datetime
,@RTCScheduleDuration bigint
,@StartWithEvent bit
,@RepeatAutoArmOrStreaming bit
,@IgnoreShortedStart bit
,@IgnoreShortedTrigger bit
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0); set @new_id = 0;
/* Table (ans stored procedure) is too big... */
begin try
if(@TestSetupName is null)
begin
set @errorMessage = 'An invalid parameter or option was specified for procedure'
set @errorNumber = 15600
end
else
begin
declare @TestSetupId int
declare @TestEngineerId int
declare @LabratoryId int
declare @CustomerId int
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
set @CustomerId = dbo.foo_IdGetCustomer(@CustomerDetails)
IF @CustomerId <= 0
BEGIN
SET @CustomerId = null
END
set @LabratoryId = dbo.foo_IdGetLabratory(@LabDetails)
IF @LabratoryId <= 0
BEGIN
SET @LabratoryId = null
END
set @TestEngineerId = dbo.foo_IdGetEngineer(@TestEngineerDetails);
IF @TestEngineerId <= 0
BEGIN
SET @TestEngineerId = null
END
set @new_id = @TestSetupId
UPDATE [dbo].[TestSetups]
SET [SetupDescription] = @SetupDescription
,[AutomaticTestProgression] = @AutomaticTestProgression
,[AutomaticProgressionDelayMS] = @AutomaticProgressionDelayMS
,[InvertTrigger] = @InvertTrigger
,[InvertStart] = @InvertStart
,[ViewDiagnostics] = @ViewDiagnostics
,[VerifyChannels] = @VerifyChannels
,[AutoVerifyChannels] = @AutoVerifyChannels
,[VerifyChannelsDelayMS] = @VerifyChannelsDelayMS
,[RecordingMode] = CASE @RecordingMode
WHEN 17 THEN 4 -- Multiple-event CircBuff w/UART to Single-event CircBuff w/UART
WHEN 18 THEN 5 -- Multiple-event Recorder w/UART to Single-event Recorder w/UART
WHEN 19 THEN 8 -- Continuous Mode w/UART to Continuous Mode
ELSE @RecordingMode
END
,[SamplesPerSecond] = @SamplesPerSecond
,[PreTriggerSeconds] = @PreTriggerSeconds
,[PostTriggerSeconds] = @PostTriggerSeconds
,[NumberOfEvents] = CASE @RecordingMode
WHEN 17 THEN 1 -- Multiple-event CircBuff w/UART to Single-event CircBuff w/UART
WHEN 18 THEN 1 -- Multiple-event Recorder w/UART to Single-event Recorder w/UART
ELSE @NumberOfEvents
END
,[StrictDiagnostics] = @StrictDiagnostics
,[RequireConfirmationOnErrors] = @RequireConfirmationOnErrors
,[ROIDownload] = @ROIDownload
,[ViewROIDownload] = @ViewROIDownload
,[DownloadAll] = @DownloadAll
,[ViewRealtime] = @ViewRealtime
,[RealtimePlotCount] = @RealtimePlotCount
,[ROIStart] = @ROIStart
,[ROIEnd] = @ROIEnd
,[ViewDownloadAll] = @ViewDownloadAll
,[Export] = @Export
,[ExportFormat] = @ExportFormat
,[CustomerId] = @CustomerId
,[LabratoryId] = @LabratoryId
,[TestEngineerId] = @TestEngineerId
,[LabDetails] = @LabDetails
,[UseLabDetails] = @UseLabDetails
,[CustomerDetails] = @CustomerDetails
,[UseCustomerDetails] = @UseCustomerDetails
,[AllowMissingSensors] = @AllowMissingSensors
,[AllowSensorIdToBlankChannel] = @AllowSensorIdToBlankChannel
,[CalibrationBehavior] = @CalibrationBehavior
,[LocalOnly] = @LocalOnly
,[LastModified] = @LastModified
,[LastModifiedBy] = @LastModifiedBy
,[TurnOffExcitation] = @TurnOffExcitation
,[TriggerCheckRealtime] = @TriggerCheckRealtime
,[TriggerCheckStep] = @TriggerCheckStep
,[PostTestDiagnostics] = @PostTestDiagnostics
,[ExportFolder] = @ExportFolder
,[DownloadFolder] = @DownloadFolder
,[CommonStatusLine] = @CommonStatusLine
,[SameAsDownloadFolder] = @SameAsDownloadFolder
,[UploadData] = @UploadData
,[UploadDataFolder] = @UploadDataFolder
,[UploadExportsOnly] = @UploadExportsOnly
,[Settings] = @Settings
,[WarnOnBatteryFail] = @WarnOnBatteryFail
,[Dirty] = @Dirty
,[Complete] = @Complete
,[ErrorMessage] = @Error
,[TestEngineerDetails] = @TestEngineerDetails
,[UseTestEngineerDetails] = @UseTestEngineerDetails
,[UserTags] = @UserTags
,[DoAutoArm] = @DoAutoArm
,[CheckoutMode] = @CheckoutMode
,[ISFFile] = @ISFFile
,[QuitTestWithoutWarning] = @QuitTestWithoutWarning
,[NotAllChannelsRealTime] = @NotAllChannelsRealTime
,[NotAllChannelsViewer] = @NotAllChannelsViewer
,[SuppressMissingSensorsWarning] = @SuppressMissingSensorsWarning
,[DoStreaming] = @DoStreaming
,[ClockSyncProfileMaster] = @ClockSyncProfileMaster
,[ClockSyncProfileSlave] = @ClockSyncProfileSlave
,[ExtraProperties] = @ExtraProperties
,[MeasureSquibResistancesStep] = @MeasureSquibResistancesStep
,[TestSetupUniqueId] = @TestSetupUniqueId
,[TestSetup] = @TestSetup
,[WakeupAndTriggerOn] = @WakeupAndTriggerOn
,[WakeupTrigger] = @WakeupTrigger
,[WakeUpMotionTimeout] = @WakeUpMotionTimeout
,[TimedIntervalFrequency] = @TimedIntervalFrequency
,[RTCScheduleStartDateTime] = @RTCScheduleStartDateTime
,[RTCScheduleDuration] = @RTCScheduleDuration
,[StartWithEvent] = @StartWithEvent
,[RepeatAutoArmOrStreaming] = @RepeatAutoArmOrStreaming
,[IgnoreShortedStart] = @IgnoreShortedStart
,[IgnoreShortedTrigger] = @IgnoreShortedTrigger
WHERE [TestSetupId] = @TestSetupId
end
end try
begin catch
set @errorMessage = error_message()
set @errorNumber = error_number()
end catch;
END

View File

@@ -0,0 +1,22 @@
ALTER PROCEDURE [dbo].[sp_ChannelSettingsGet_93]
@Id int = NULL,
@SettingName NVARCHAR (255) = NULL
AS
BEGIN
SET NOCOUNT ON;
IF (@Id IS NOT NULL) OR (@SettingName IS NOT NULL)
BEGIN
IF (@Id IS NULL)
BEGIN
SELECT [Id], [DefaultValue] FROM [dbo].[ChannelSettings] where (SettingName = @SettingName) AND (SettingName <>'BridgeType' AND SettingName <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
END
ELSE
BEGIN
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id) AND (SettingName <>'BridgeType' AND SettingName <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
END
END
ELSE
BEGIN
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings] WHERE (SettingName <>'BridgeType' AND SettingName <> 'CanIsFD' AND SettingName <> 'CanArbBaseBitrate' AND SettingName <> 'CanArbBaseSJW' AND SettingName <> 'CanDataBitrate' AND SettingName <> 'CanDataSJW' AND SettingName <> 'CanFileType')
END
END

View File

@@ -0,0 +1,265 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsUpdateInsert_92]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@NumberOfEvents int
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@DoStreaming bit
,@ClockSyncProfileMaster nvarchar(50)
,@ClockSyncProfileSlave nvarchar(50)
,@ExtraProperties nvarchar(max)
,@MeasureSquibResistancesStep bit
,@TestSetupUniqueId nvarchar(max)
,@TestSetup varbinary(MAX)
,@WakeupAndTriggerOn bit
,@WakeupTrigger smallint
,@WakeUpMotionTimeout int
,@TimedIntervalFrequency int
,@RTCScheduleStartDateTime datetime
,@RTCScheduleDuration bigint
,@StartWithEvent bit
,@RepeatAutoArmOrStreaming bit
,@IgnoreShortedStart bit
,@IgnoreShortedTrigger bit
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
declare @TestSetupId int
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
if(exists(select TestSetupId from [dbo].[TestSetups] where TestSetupId = @TestSetupId))
begin
set @new_id = @TestSetupId
exec dbo.sp_TestSetupsUpdate_92 @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,@ClockSyncProfileMaster
,@ClockSyncProfileSlave
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@WakeupAndTriggerOn
,@WakeupTrigger
,@WakeUpMotionTimeout
,@TimedIntervalFrequency
,@RTCScheduleStartDateTime
,@RTCScheduleDuration
,@StartWithEvent
,@RepeatAutoArmOrStreaming
,@IgnoreShortedStart
,@IgnoreShortedTrigger
,@new_id output
,@errorNumber output
,@errorMessage output
end
else
begin
exec dbo.sp_TestSetupsInsert_92 @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,@ClockSyncProfileMaster
,@ClockSyncProfileSlave
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@WakeupAndTriggerOn
,@WakeupTrigger
,@WakeUpMotionTimeout
,@TimedIntervalFrequency
,@RTCScheduleStartDateTime
,@RTCScheduleDuration
,@StartWithEvent
,@RepeatAutoArmOrStreaming
,@IgnoreShortedStart
,@IgnoreShortedTrigger
,@new_id output
,@errorNumber output
,@errorMessage output
end;
END

View File

@@ -0,0 +1,2 @@
IF ((SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'ROIPeriodChannels' AND COLUMN_NAME = 'ChannelID') = 0)
ALTER TABLE [dbo].[ROIPeriodChannels] ADD ChannelId [bigint] NOT NULL DEFAULT 0;

View File

@@ -0,0 +1,22 @@
ALTER PROCEDURE [dbo].[sp_ChannelSettingsGet_93]
@Id int = NULL,
@SettingName NVARCHAR (255) = NULL
AS
BEGIN
SET NOCOUNT ON;
IF (@Id IS NOT NULL) OR (@SettingName IS NOT NULL)
BEGIN
IF (@Id IS NULL)
BEGIN
SELECT [Id], [DefaultValue] FROM [dbo].[ChannelSettings] where (SettingName = @SettingName) AND (SettingName <>'BridgeType')
END
ELSE
BEGIN
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id) AND (SettingName <>'BridgeType')
END
END
ELSE
BEGIN
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings] WHERE (SettingName <>'BridgeType')
END
END

View File

@@ -0,0 +1,23 @@
CREATE PROCEDURE [dbo].[sp_TestSetupHardwareUpdate_95]
@DASId INT,
@TestSetupId INT,
@AddOrRemove BIT,
@SamplesPerSecond FLOAT,
@IsClockMaster BIT,
@AntiAliasFilterRate FLOAT,
@PTPDomainId INT,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR(255) OUTPUT
AS
BEGIN
SET @errorNumber = 0;
SET @errorMessage = space(0);
UPDATE [dbo].[TestSetupHardware] SET [AddOrRemove]=@AddOrRemove, [SamplesPerSecond]=@SamplesPerSecond, [IsClockMaster]=@IsClockMaster, [AntiAliasFilterRate]=@AntiAliasFilterRate, [PTPDomainId]=@PTPDomainId WHERE [DASId]=@DASId AND [TestSetupId]=@TestSetupId
IF(@@error != 0)
BEGIN
SET @errorNumber = ERROR_NUMBER()
SET @errorMessage = ERROR_MESSAGE()
END
END

View File

@@ -0,0 +1,24 @@
CREATE PROCEDURE [dbo].[sp_SensorsStreamOutputGet_93]
@Id INT = null,
@SerialNumber NVARCHAR (50) = null
AS
BEGIN
SET NOCOUNT ON;
IF( @Id IS NULL)
BEGIN
IF NULLIF(@SerialNumber, '') IS NULL
BEGIN
SELECT A.id, A.SerialNumber, B.StreamProfile, B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse, B.TMATS_IntervalMS FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput'
END
ELSE
BEGIN
SELECT A.id, A.SerialNumber, B.StreamProfile, B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse, B.TMATS_IntervalMS FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput' AND A.SerialNumber=@SerialNumber
END
END
ELSE
BEGIN
SELECT A.id, A.SerialNumber, B.StreamProfile, B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse, B.TMATS_IntervalMS FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput' AND A.id=@Id
END
END

View File

@@ -0,0 +1,8 @@
INSERT INTO [dbo].[DefaultProperties]
([PropertyId]
,[PropertyName]
,[DefaultValue])
VALUES
(423
,'DefaultMeasureSquibResistancesStep'
,'False')

View File

@@ -0,0 +1,7 @@
ALTER TABLE dbo.TestSetups
ADD MeasureSquibResistancesStep bit NULL;
ALTER TABLE [dbo].[TestSetups]
ADD [NumberOfEvents] Int NOT NULL
CONSTRAINT [DF_TestSetups_NumberOfEvents]
DEFAULT (100)

View File

@@ -0,0 +1,304 @@
CREATE PROCEDURE [dbo].[sp_TestSetupsInsert_98]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@NumberOfEvents int
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@DoStreaming bit
,@ClockSyncProfileMaster nvarchar(50)
,@ClockSyncProfileSlave nvarchar(50)
,@ExtraProperties nvarchar(max)
,@MeasureSquibResistancesStep bit
,@TestSetupUniqueId nvarchar(max)
,@TestSetup varbinary(MAX)
,@WakeupAndTriggerOn bit
,@WakeupTrigger smallint
,@WakeUpMotionTimeout int
,@TimedIntervalFrequency int
,@RTCScheduleStartDateTime datetime
,@RTCScheduleDuration bigint
,@StartWithEvent bit
,@RepeatAutoArmOrStreaming bit
,@IgnoreShortedStart bit
,@IgnoreShortedTrigger bit
,@AlignUDPToPPS bit
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
/* Table (and stored procedure) is too big... */
begin try
if(@TestSetupName is null)
begin
set @errorMessage = 'An invalid parameter or option was specified for procedure'
set @errorNumber = 15600
end
else
begin
SET NOCOUNT ON;
declare @TestEngineerId int
declare @LabratoryId int
declare @CustomerId int
set @CustomerId = dbo.foo_IdGetCustomer(@CustomerDetails)
IF @CustomerId <= 0
BEGIN
SET @CustomerId = null
END
set @LabratoryId = dbo.foo_IdGetLabratory(@LabDetails)
IF @LabratoryId <= 0
BEGIN
SET @LabratoryId = null
END
set @TestEngineerId = dbo.foo_IdGetEngineer(@TestEngineerDetails);
IF @TestEngineerId <= 0
BEGIN
SET @TestEngineerId = null
END
insert into [dbo].[TestSetups]
([TestSetupName]
,[SetupDescription]
,[AutomaticTestProgression]
,[AutomaticProgressionDelayMS]
,[InvertTrigger]
,[InvertStart]
,[ViewDiagnostics]
,[VerifyChannels]
,[AutoVerifyChannels]
,[VerifyChannelsDelayMS]
,[RecordingMode]
,[SamplesPerSecond]
,[PreTriggerSeconds]
,[PostTriggerSeconds]
,[NumberOfEvents]
,[StrictDiagnostics]
,[RequireConfirmationOnErrors]
,[ROIDownload]
,[ViewROIDownload]
,[DownloadAll]
,[ViewRealtime]
,[RealtimePlotCount]
,[ROIStart]
,[ROIEnd]
,[ViewDownloadAll]
,[Export]
,[ExportFormat]
,[CustomerId]
,[LabratoryId]
,[TestEngineerId]
,[LabDetails]
,[UseLabDetails]
,[CustomerDetails]
,[UseCustomerDetails]
,[TestEngineerDetails]
,[UseTestEngineerDetails]
,[AllowMissingSensors]
,[AllowSensorIdToBlankChannel]
,[CalibrationBehavior]
,[LocalOnly]
,[LastModified]
,[LastModifiedBy]
,[TurnOffExcitation]
,[TriggerCheckRealtime]
,[TriggerCheckStep]
,[PostTestDiagnostics]
,[ExportFolder]
,[DownloadFolder]
,[CommonStatusLine]
,[SameAsDownloadFolder]
,[UploadData]
,[UploadDataFolder]
,[UploadExportsOnly]
,[Settings]
,[WarnOnBatteryFail]
,[Dirty]
,[Complete]
,[ErrorMessage]
,[UserTags]
,[DoAutoArm]
,[CheckoutMode]
,[ISFFile]
,[QuitTestWithoutWarning]
,[NotAllChannelsRealTime]
,[NotAllChannelsViewer]
,[SuppressMissingSensorsWarning]
,[DoStreaming]
,[ClockSyncProfileMaster]
,[ClockSyncProfileSlave]
,[ExtraProperties]
,[MeasureSquibResistancesStep]
,[TestSetupUniqueId]
,[TestSetup]
,[WakeupAndTriggerOn]
,[WakeupTrigger]
,[WakeUpMotionTimeout]
,[TimedIntervalFrequency]
,[RTCScheduleStartDateTime]
,[RTCScheduleDuration]
,[StartWithEvent]
,[RepeatAutoArmOrStreaming]
,[IgnoreShortedStart]
,[IgnoreShortedTrigger]
,[AlignUDPToPPS])
VALUES
( @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@CustomerId
,@LabratoryId
,@TestEngineerId
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@TestEngineerDetails
,@UseTestEngineerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,@ClockSyncProfileMaster
,@ClockSyncProfileSlave
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@WakeupAndTriggerOn
,@WakeupTrigger
,@WakeUpMotionTimeout
,@TimedIntervalFrequency
,@RTCScheduleStartDateTime
,@RTCScheduleDuration
,@StartWithEvent
,@RepeatAutoArmOrStreaming
,@IgnoreShortedStart
,@IgnoreShortedTrigger
,@AlignUDPToPPS)
set @new_id = scope_identity()
end
end try
begin catch
set @errorMessage = error_message()
set @errorNumber = error_number()
end catch;
END

View File

@@ -0,0 +1,4 @@
INSERT INTO [dbo].[DASChannels]
([DASId], [ChannelIdx], [SupportedBridges], [SupportedExcitations], [DASDisplayOrder], [LocalOnly], [SupportedDigitalInputModes], [SupportedSquibFireModes], [SupportedDigitalOutputModes], [ModuleSerialNumber], [ModuleArrayIndex])
VALUES
((SELECT DASId FROM [dbo].[DAS] WHERE SerialNumber = 'SLICE6 AIR Prototype'), 6, 512, 1, -1, 0, 0, 0, 0, '', 2)

View File

@@ -0,0 +1,34 @@
CREATE PROCEDURE [dbo].[sp_LockFree]
@UserId INT = NULL
,@UserName NVARCHAR(50) = NULL
,@ItemId BIGINT = NULL
,@CategoryId INT
,@errorNumber INT OUTPUT
,@errorMessage NVARCHAR(250) OUTPUT
AS
BEGIN
SET @errorNumber = 0
SET @errorMessage = space(0)
IF(@UserId) IS NULL
BEGIN
IF NOT EXISTS( SELECT ID FROM Users WHERE UserName=@UserName)
BEGIN
SET @errorNumber = 2
SET @errorMessage = 'User not found'
return -1
END
END
IF NOT EXISTS( SELECT LockId FROM LockedItems WHERE CategoryId=@CategoryId AND ItemId=@ItemId)
BEGIN
SET @errorNumber = 3
SET @errorMessage = 'No lock to free'
return -1
END
ELSE
BEGIN
DECLARE @UpdateTime DateTime
DELETE from LockedItems WHERE CategoryId=@CategoryId AND ItemId=@ItemId
END
END

View File

@@ -0,0 +1,107 @@
ALTER PROCEDURE [dbo].[sp_DASInsert]
@SerialNumber nvarchar(50) = null
,@Type int
,@MaxModules int
,@MaxMemory bigint
,@MaxSampleRate decimal(18,0)
,@MinSampleRate decimal(18,0)
,@FirmwareVersion nvarchar(50)
,@CalDate datetime
,@ProtocolVersion int
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@Version int
,@LocalOnly bit
,@LastUsed datetime
,@LastUsedBy nvarchar(50)
,@Connection nvarchar(50)
,@Channels int
,@Position nvarchar(50)
,@ChannelTypes nvarchar(255)
,@Reprogramable bit
,@Reconfigurable bit
,@IsModule bit
,@PositionOnDistributor smallint
,@PositionOnChain smallint
,@Port smallint
,@ParentDAS nvarchar(50)
,@FirstUseDate datetime null
,@TestId int null
,@GroupId int null
,@StandIn bit null
,@new_id int OUTPUT
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
SET NOCOUNT ON;
if(@SerialNumber is null)
begin
RAISERROR(15600,-1,-1, 'sp_DASInsert') /* Error 1560 - An invalid parameter or option was specified for procedure*/
end
else
begin
INSERT INTO [dbo].[DAS]
([SerialNumber]
,[Type]
,[MaxModules]
,[MaxMemory]
,[MaxSampleRate]
,[MinSampleRate]
,[FirmwareVersion]
,[CalDate]
,[ProtocolVersion]
,[LastModified]
,[LastModifiedBy]
,[Version]
,[LocalOnly]
,[LastUsed]
,[LastUsedBy]
,[Connection]
,[Channels]
,[Position]
,[ChannelTypes]
,[Reprogramable]
,[Reconfigurable]
,[IsModule]
,[PositionOnDistributor]
,[PositionOnChain]
,[Port]
,[ParentDAS]
,[FirstUseDate])
VALUES
( @SerialNumber
,@Type
,@MaxModules
,@MaxMemory
,@MaxSampleRate
,@MinSampleRate
,@FirmwareVersion
,@CalDate
,@ProtocolVersion
,@LastModified
,@LastModifiedBy
,@Version
,@LocalOnly
,@LastUsed
,@LastUsedBy
,@Connection
,@Channels
,@Position
,@ChannelTypes
,@Reprogramable
,@Reconfigurable
,@IsModule
,@PositionOnDistributor
,@PositionOnChain
,@Port
,@ParentDAS
,@FirstUseDate)
set @new_id = scope_identity();
end
END

View File

@@ -0,0 +1 @@
UPDATE Settings SET PropertyValue = '10.0,13.0,10.0,13.0,17.7,36.3,17.7,36.3,8.5,10.0,14.0,39.0,10.8,10.8,20.0,20.0' WHERE PropertyId = 'PowerPRO_PowerSetting'

View File

@@ -0,0 +1 @@
UPDATE [dbo].[Settings] SET PropertyValue = '7,8.4,7,8.4,10,30,10,30,4,9,9,35,8.4,7.9,11.8,10.9' WHERE PropertyId = 'SLICE6_AIR_BR_PowerSetting'

View File

@@ -0,0 +1,394 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsUpdateInsert]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@NumberOfEvents int
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@RegionsOfInterest nvarchar(MAX)
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@DoStreaming bit
,@ClockSyncProfileMaster nvarchar(50)
,@ClockSyncProfileSlave nvarchar(50)
,@ExtraProperties nvarchar(max)
,@MeasureSquibResistancesStep bit
,@TestSetupUniqueId nvarchar(max)
,@TestSetup varbinary(MAX)
,@LowgLVLTrigOn bit
,@LowgLVLTrigOnX bit
,@LowgLVLTrigOnY bit
,@LowgLVLTrigOnZ bit
,@HighgLVLTrigOn bit
,@HighgLVLTrigOnX bit
,@HighgLVLTrigOnY bit
,@HighgLVLTrigOnZ bit
,@AngAccelLVLTrigOn bit
,@AngAccelLVLTrigOnX bit
,@AngAccelLVLTrigOnY bit
,@AngAccelLVLTrigOnZ bit
,@ARSLVLTrigOn bit
,@ARSLVLTrigOnX bit
,@ARSLVLTrigOnY bit
,@ARSLVLTrigOnZ bit
,@LowgLVLTrigX float
,@LowgLVLTrigY float
,@LowgLVLTrigZ float
,@HighgLVLTrigX float
,@HighgLVLTrigY float
,@HighgLVLTrigZ float
,@AngAccelLVLTrigX float
,@AngAccelLVLTrigY float
,@AngAccelLVLTrigZ float
,@ARSLVLTrigX float
,@ARSLVLTrigY float
,@ARSLVLTrigZ float
,@HumidityLVLTrigOn bit
,@PressureLVLTrigOn bit
,@TemperatureLVLTrigOn bit
,@HumidityLVLTrigBelow float
,@HumidityLVLTrigAbove float
,@PressureLVLTrigBelow float
,@PressureLVLTrigAbove float
,@TemperatureLVLTrigBelow float
,@TemperatureLVLTrigAbove float
,@LowgRate int
,@HighgRate int
,@AngularRate int
,@TempHumidPressRate int
,@BatterySaverModeOn bit
,@WakeupAndTriggerOn bit
,@WakeupTrigger smallint
,@TimedIntervalTrigOn bit
,@TimedIntervalDuration int
,@TimedIntervalEvents int
,@TimedIntervalFrequency int
,@TimedIntervalUnits smallint
,@RTCScheduleTrigOn bit
,@RTCScheduleStartDateTime datetime
,@RTCScheduleDuration bigint
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
declare @TestSetupId int
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
if(exists(select TestSetupId from [dbo].[TestSetups] where TestSetupId = @TestSetupId))
begin
set @new_id = @TestSetupId
exec dbo.sp_TestSetupsUpdate @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,@ClockSyncProfileMaster
,@ClockSyncProfileSlave
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@LowgLVLTrigOn
,@LowgLVLTrigOnX
,@LowgLVLTrigOnY
,@LowgLVLTrigOnZ
,@HighgLVLTrigOn
,@HighgLVLTrigOnX
,@HighgLVLTrigOnY
,@HighgLVLTrigOnZ
,@AngAccelLVLTrigOn
,@AngAccelLVLTrigOnX
,@AngAccelLVLTrigOnY
,@AngAccelLVLTrigOnZ
,@ARSLVLTrigOn
,@ARSLVLTrigOnX
,@ARSLVLTrigOnY
,@ARSLVLTrigOnZ
,@LowgLVLTrigX
,@LowgLVLTrigY
,@LowgLVLTrigZ
,@HighgLVLTrigX
,@HighgLVLTrigY
,@HighgLVLTrigZ
,@AngAccelLVLTrigX
,@AngAccelLVLTrigY
,@AngAccelLVLTrigZ
,@ARSLVLTrigX
,@ARSLVLTrigY
,@ARSLVLTrigZ
,@HumidityLVLTrigOn
,@PressureLVLTrigOn
,@TemperatureLVLTrigOn
,@HumidityLVLTrigBelow
,@HumidityLVLTrigAbove
,@PressureLVLTrigBelow
,@PressureLVLTrigAbove
,@TemperatureLVLTrigBelow
,@TemperatureLVLTrigAbove
,@LowgRate
,@HighgRate
,@AngularRate
,@TempHumidPressRate
,@BatterySaverModeOn
,@WakeupAndTriggerOn
,@WakeupTrigger
,@TimedIntervalTrigOn
,@TimedIntervalDuration
,@TimedIntervalEvents
,@TimedIntervalFrequency
,@TimedIntervalUnits
,@RTCScheduleTrigOn
,@RTCScheduleStartDateTime
,@RTCScheduleDuration
,@new_id output
,@errorNumber output
,@errorMessage output
end
else
begin
exec dbo.sp_TestSetupsInsert @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,@ClockSyncProfileMaster
,@ClockSyncProfileSlave
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@LowgLVLTrigOn
,@LowgLVLTrigOnX
,@LowgLVLTrigOnY
,@LowgLVLTrigOnZ
,@HighgLVLTrigOn
,@HighgLVLTrigOnX
,@HighgLVLTrigOnY
,@HighgLVLTrigOnZ
,@AngAccelLVLTrigOn
,@AngAccelLVLTrigOnX
,@AngAccelLVLTrigOnY
,@AngAccelLVLTrigOnZ
,@ARSLVLTrigOn
,@ARSLVLTrigOnX
,@ARSLVLTrigOnY
,@ARSLVLTrigOnZ
,@LowgLVLTrigX
,@LowgLVLTrigY
,@LowgLVLTrigZ
,@HighgLVLTrigX
,@HighgLVLTrigY
,@HighgLVLTrigZ
,@AngAccelLVLTrigX
,@AngAccelLVLTrigY
,@AngAccelLVLTrigZ
,@ARSLVLTrigX
,@ARSLVLTrigY
,@ARSLVLTrigZ
,@HumidityLVLTrigOn
,@PressureLVLTrigOn
,@TemperatureLVLTrigOn
,@HumidityLVLTrigBelow
,@HumidityLVLTrigAbove
,@PressureLVLTrigBelow
,@PressureLVLTrigAbove
,@TemperatureLVLTrigBelow
,@TemperatureLVLTrigAbove
,@LowgRate
,@HighgRate
,@AngularRate
,@TempHumidPressRate
,@BatterySaverModeOn
,@WakeupAndTriggerOn
,@WakeupTrigger
,@TimedIntervalTrigOn
,@TimedIntervalDuration
,@TimedIntervalEvents
,@TimedIntervalFrequency
,@TimedIntervalUnits
,@RTCScheduleTrigOn
,@RTCScheduleStartDateTime
,@RTCScheduleDuration
,@new_id output
,@errorNumber output
,@errorMessage output
end;
END

View File

@@ -0,0 +1,23 @@
ALTER PROCEDURE [dbo].[sp_SensorsStreamOutputGet]
@Id INT = null,
@SerialNumber NVARCHAR (50) = null
AS
BEGIN
SET NOCOUNT ON;
IF( @Id IS NULL)
BEGIN
IF NULLIF(@SerialNumber, '') IS NULL
BEGIN
SELECT A.id, A.SerialNumber, CASE WHEN B.StreamProfile='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE B.StreamProfile END as [StreamProfile], B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput'
END
ELSE
BEGIN
SELECT A.id, A.SerialNumber, CASE WHEN B.StreamProfile='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE B.StreamProfile END as [StreamProfile], B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput' AND A.SerialNumber=@SerialNumber
END
END
ELSE
BEGIN
SELECT A.id, A.SerialNumber, CASE WHEN B.StreamProfile='UART_STREAM' THEN 'CH10_ANALOG_2HDR' ELSE B.StreamProfile END as [StreamProfile], B.UDPAddress, B.TimeChannelId, B.DataChannelId, B.TmNSConfig, B.IRIGTimeDataPacketIntervalMs, B.LastModified, B.LastModifiedBy, B.UserTags, B.Broken, B.DoNotUse FROM [dbo].[Sensors] AS A INNER JOIN [dbo].[SensorsStreamOutput] AS B ON A.id=B.SensorId INNER JOIN [dbo].SensorsType AS C ON A.SensorType=C.TypeId WHERE C.SensorType='StreamOutput' AND A.id=@Id
END
END

View File

@@ -0,0 +1,28 @@
ALTER PROCEDURE [dbo].[sp_GroupsInsert]
@SerialNumber NVARCHAR (255),
@Picture NVARCHAR (255) = NULL,
@DisplayName NVARCHAR (255),
@Embedded BIT,
@Description NVARCHAR (255),
@LastModified DATETIME,
@LastModifiedBy NVARCHAR (255),
@StaticGroupId int = NULL,
@ExtraProperties NVARCHAR (MAX),
@errorNumber int OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT,
@new_id int OUTPUT
AS
BEGIN
SET NOCOUNT ON;
SET @errorNumber=0
SET @errorMessage=''
INSERT INTO Groups (SerialNumber, [Picture], DisplayName, [Description], Embedded, LastModified, LastModifiedBy, StaticGroupId, ExtraProperties)
VALUES (@SerialNumber, @Picture, @DisplayName, @Description, @Embedded, @LastModified, @LastModifiedBy, @StaticGroupId, @ExtraProperties)
SET @new_id = scope_identity();
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,48 @@
CREATE PROCEDURE [dbo].[sp_SensorTestHistoryUpdateInsert]
@SensorTestHistoryId bigint=NULL,
@TestHistoryId bigint,
@SensorId int = NULL,
@SerialNumber nvarchar(MAX),
@Capacity float=NULL,
@Range float=NULL,
@CalibrationDate datetime=NULL,
@HardwareChannelName nvarchar(MAX)=NULL,
@ISOChannelName nvarchar(MAX)=NULL,
@ISOCode nvarchar(50)=NULL,
@UserChannelName nvarchar(MAX)=NULL,
@UserCode nvarchar(50)=NULL,
@Sensitivity nvarchar(MAX)=NULL,
@FilterClass nvarchar(50)=NULL,
@IsProportional bit=NULL,
@LinearizationFormula nvarchar(MAX)=NULL,
@EID nvarchar(50)=NULL,
@MeasuredExcitation decimal(18,0)=NULL,
@MeasurementUnit nvarchar(MAX)=NULL,
@SamplesPerSecond int=NULL,
@AAF int=NULL,
@new_id int output,
@errorNumber int output,
@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0;
set @errorMessage = space(0);
begin try
IF @SensorTestHistoryId is NOT NULL
BEGIN
UPDATE [dbo].[SensorTestHistory] SET [TestHistoryId]=@TestHistoryId,[SensorId]=@SensorId,[SerialNumber]=@SerialNumber,[Capacity]=@Capacity,[Range]=@Range,[CalibrationDate]=@CalibrationDate,[HardwareChannelName]=@HardwareChannelName,[ISOChannelName]=@ISOChannelName,[ISOCode]=@ISOCode,[UserChannelName]=@UserChannelName,[UserCode]=@UserCode,[Sensitivity]=@Sensitivity,[FilterClass]=@FilterClass,[IsProportional]=@IsProportional,[LinearizationFormula]=@LinearizationFormula,[EID]=@EID,[MeasuredExcitation]=@MeasuredExcitation,[MeasurementUnit]=@MeasurementUnit,[SamplesPerSecond]=@SamplesPerSecond,[AAF]=@AAF WHERE [SensorTestHistoryId]=@SensorTestHistoryId
SET @new_id=@SensorTestHistoryId
END
ELSE
BEGIN
INSERT INTO [dbo].[SensorTestHistory] ([TestHistoryId],[SensorId],[SerialNumber],[Capacity],[Range],[CalibrationDate],[HardwareChannelName],[ISOChannelName],[ISOCode],[UserChannelName],[UserCode],[Sensitivity],[FilterClass],[IsProportional],[LinearizationFormula],[EID],[MeasuredExcitation],[MeasurementUnit],[SamplesPerSecond],[AAF])
VALUES
(@TestHistoryId,@SensorId,@SerialNumber,@Capacity,@Range,@CalibrationDate,@HardwareChannelName,@ISOChannelName,@ISOCode,@UserChannelName,@UserCode,@Sensitivity,@FilterClass,@IsProportional,@LinearizationFormula,@EID,@MeasuredExcitation,@MeasurementUnit,@SamplesPerSecond,@AAF)
set @new_id = scope_identity();
END
end try
begin catch
set @errorMessage = error_message()
set @errorNumber = error_number()
end catch;
END

View File

@@ -0,0 +1,51 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsDeleteManyById]
@TestSetupIdList VARCHAR(MAX) = NULL,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR(255) OUTPUT
AS
BEGIN
SET @errorNumber = 0;
SET @errorMessage = SPACE(0);
DECLARE @TempIdTable TABLE (Element NVARCHAR(4000), Processed BIT)
INSERT INTO @TempIdTable SELECT * FROM dbo.foo_SplitDelimitedString(@TestSetupIdList, ',')
BEGIN TRY
BEGIN TRANSACTION [tDeleteTestSetups]
DELETE FROM [dbo].[TestSetupObjectMetaData] WHERE TestSetupId IN ( SELECT Element FROM @TempIdTable)
DELETE FROM [dbo].[TestSetupHardware] WHERE TestSetupId IN ( SELECT Element FROM @TempIdTable)
DELETE FROM [dbo].[LevelTriggers] WHERE TestSetupId IN ( SELECT Element FROM @TempIdTable)
DELETE FROM [dbo].[CalculatedChannels] WHERE TestSetupId IN ( SELECT Element FROM @TempIdTable)
DELETE FROM [dbo].[TestGraphs] WHERE TestSetupId IN ( SELECT Element FROM @TempIdTable)
/*Delete group channel settings*/
DELETE A FROM [dbo].[GroupChannelSettings] AS A INNER JOIN [dbo].[Channels] AS B ON A.ChannelId=B.Id
INNER JOIN [dbo].[Groups] AS C ON B.GroupId=C.Id INNER JOIN [dbo].TestSetupGroups AS D ON C.Id=D.GroupId WHERE D.TestSetupId IN ( SELECT Element FROM @TempIdTable)
/*Delete group hardware*/
DELETE A FROM [dbo].[GroupHardware] AS A INNER JOIN [dbo].[TestSetupGroups] AS B ON A.GroupId=B.GroupId WHERE B.TestSetupId IN ( SELECT Element FROM @TempIdTable)
/*Delete group channels*/
DELETE A FROM [dbo].[Channels] AS A INNER JOIN [dbo].[TestSetupGroups] AS B ON A.GroupId = B.GroupId WHERE B.TestSetupId IN ( SELECT Element FROM @TempIdTable)
/*grab a copy of all groups associated with test so we can delete them*/
SELECT [GroupId] INTO #temptable FROM [dbo].[TestSetupGroups] WHERE [TestSetupId] IN ( SELECT Element FROM @TempIdTable)
/*unassociate the group from the test setup*/
DELETE FROM [dbo].[TestSetupGroups] WHERE [TestSetupId] IN ( SELECT Element FROM @TempIdTable)
/*delete the groups*/
DELETE FROM [dbo].[Groups] WHERE [Id] IN (SELECT [GroupId] FROM #tempTable)
/*delete test specific hardware */
/*UPDATE [dbo].[Channels] SET [DASId] = 0, [DASChannelIndex]=0 FROM [dbo].[Channels] AS A INNER JOIN [dbo].[DAS] AS B ON A.DASId=B.DASId WHERE B.TestId IN ( SELECT Element FROM @TempIdTable)*/
DELETE A FROM [dbo].[TestSetupHardware] AS A INNER JOIN [dbo].[DAS] as B ON A.DASId=B.DASId WHERE B.TestId IN ( SELECT Element FROM @TempIdTable)
DELETE A FROM [dbo].[GroupHardware] AS A INNER JOIN [dbo].[DAS] as B on A.DASId=B.DASId WHERE B.TestId IN ( SELECT Element FROM @TempIdTable)
DELETE A FROM [dbo].[DASChannels] AS A INNER JOIN [dbo].[DAS] AS B on A.DASId=B.DASId WHERE B.TestId IN ( SELECT Element FROM @TempIdTable)
DELETE [dbo].[DAS] WHERE [TestId] IN ( SELECT Element FROM @TempIdTable)
/*finally delete the test setup*/
DELETE FROM [dbo].[TestSetups] where TestSetupId IN ( SELECT Element FROM @TempIdTable)
COMMIT TRANSACTION [tDeleteTestSetups]
END TRY
BEGIN CATCH
SET @errorNumber = error_number()
SET @errorMessage = error_message()
ROLLBACK TRANSACTION [tDeleteTestSetups]
END CATCH
END

View File

@@ -0,0 +1,22 @@
ALTER PROCEDURE [dbo].[sp_ChannelSettingsGet_92]
@Id int = NULL,
@SettingName NVARCHAR (255) = NULL
AS
BEGIN
SET NOCOUNT ON;
IF (@Id IS NOT NULL) OR (@SettingName IS NOT NULL)
BEGIN
IF (@Id IS NULL)
BEGIN
SELECT [Id], [DefaultValue] FROM [dbo].[ChannelSettings] where (SettingName = @SettingName) AND (SettingName <>'StreamOutTMATSIntervalMs' AND SettingName <>'BridgeType')
END
ELSE
BEGIN
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id) AND (SettingName <>'StreamOutTMATSIntervalMs' AND SettingName <>'BridgeType')
END
END
ELSE
BEGIN
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings] WHERE (SettingName <>'StreamOutTMATSIntervalMs' AND SettingName <>'BridgeType')
END
END

View File

@@ -0,0 +1,27 @@
DECLARE @UserId INT
DECLARE @PropertyId INT
DECLARE @PropertyValue [NVARCHAR] (MAX)
SELECT @UserId = ID FROM Users WHERE UserName = 'TSRAIRUser'
IF (@UserId IS NOT NULL)
BEGIN
SELECT @PropertyId = PropertyId FROM [dbo].[DefaultProperties] WHERE PropertyName = 'DefaultExport'
IF (@PropertyId IS NULL)
BEGIN
INSERT INTO [dbo].[DefaultProperties] (PropertyName, DefaultValue) VALUES ('DefaultExport', 'False')
SELECT @PropertyId = PropertyId FROM [dbo].[DefaultProperties] WHERE PropertyName = 'DefaultExport'
END
IF (@PropertyId IS NOT NULL)
BEGIN
SELECT @PropertyValue = PropertyValue FROM [dbo].[UserProperties] WHERE UserId = @UserId AND PropertyId = @PropertyId
IF (@PropertyValue IS NULL)
BEGIN
INSERT INTO [dbo].[UserProperties] VALUES (@UserId, @PropertyId, 'True')
END
ELSE
BEGIN
UPDATE [dbo].[UserProperties] SET PropertyValue = 'True' WHERE UserId = @UserId AND PropertyId = @PropertyId;
END
END
END

View File

@@ -0,0 +1,39 @@
ALTER PROCEDURE [dbo].[sp_ChannelsDelete]
@Id BIGINT = NULL,
@GroupId INT = NULL,
@DASId INT = NULL,
@SensorId INT = NULL,
@TestSetupId INT = NULL,
@TestSetupName [NVARCHAR] (255) = NULL,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET NOCOUNT ON;
SET @errorNumber=0
SET @errorMessage=''
exec sp_GroupChannelSettingsDelete
@Id,
NULL -- Remove all settings
,@errorNumber output, @errorMessage output
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
ELSE
BEGIN
DELETE FROM [dbo].[LevelTriggers] WHERE [ChannelId]=@Id
DELETE FROM [dbo].[Channels] WHERE [Id]=@Id
END
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,60 @@
INSERT INTO [dbo].[Sensors] VALUES(0, 'TSA_Embedded');
DECLARE @sensorID int;
SET @sensorID = CAST(SCOPE_IDENTITY() as int);
INSERT INTO [dbo].[SensorsAnalog]
VALUES (@sensorId
,''
,''
,0
,''
,0
,'g'
,-100
,100
,''
,2400
,''
,3
,0
,1
,0
,''
,''
,''
,'1650 (CFC1000)'
,350
,'???????????????A'
,''
,''
,''
,1
,'Volt5'
,0
,365
,0
,0
,0
,0
,10
,100
,1000
,'1753-01-01'
,0
,0
,0
,0
,1
,'1753-01-01'
,'Admin'
,0
,0
,1
,0
,0
,0
,0
,NULL
,1);

View File

@@ -0,0 +1,406 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsUpdateInsert]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@NumberOfEvents int
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@RegionsOfInterest nvarchar(MAX)
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@DoStreaming bit
,@ClockSyncProfileMaster nvarchar(50)
,@ClockSyncProfileSlave nvarchar(50)
,@ExtraProperties nvarchar(max)
,@MeasureSquibResistancesStep bit
,@TestSetupUniqueId nvarchar(max)
,@TestSetup varbinary(MAX)
,@LowgLVLTrigOn bit
,@LowgLVLTrigOnX bit
,@LowgLVLTrigOnY bit
,@LowgLVLTrigOnZ bit
,@HighgLVLTrigOn bit
,@HighgLVLTrigOnX bit
,@HighgLVLTrigOnY bit
,@HighgLVLTrigOnZ bit
,@AngAccelLVLTrigOn bit
,@AngAccelLVLTrigOnX bit
,@AngAccelLVLTrigOnY bit
,@AngAccelLVLTrigOnZ bit
,@ARSLVLTrigOn bit
,@ARSLVLTrigOnX bit
,@ARSLVLTrigOnY bit
,@ARSLVLTrigOnZ bit
,@LowgLVLTrigX float
,@LowgLVLTrigY float
,@LowgLVLTrigZ float
,@HighgLVLTrigX float
,@HighgLVLTrigY float
,@HighgLVLTrigZ float
,@AngAccelLVLTrigX float
,@AngAccelLVLTrigY float
,@AngAccelLVLTrigZ float
,@ARSLVLTrigX float
,@ARSLVLTrigY float
,@ARSLVLTrigZ float
,@HumidityLVLTrigOn bit
,@PressureLVLTrigOn bit
,@TemperatureLVLTrigOn bit
,@HumidityLVLTrigBelow float
,@HumidityLVLTrigAbove float
,@PressureLVLTrigBelow float
,@PressureLVLTrigAbove float
,@TemperatureLVLTrigBelow float
,@TemperatureLVLTrigAbove float
,@LowgRate int
,@HighgRate int
,@AngularRate int
,@TempHumidPressRate int
,@BatterySaverModeOn bit
,@WakeupAndTriggerOn bit
,@WakeupTrigger smallint
,@WakeUpMotionTimeout int
,@WakeUpMagnetTimeout int
,@WakeUpTimeSessionStart datetime
,@WakeUpTimeDuration bigint
,@TimedIntervalTrigOn bit
,@TimedIntervalDuration int
,@TimedIntervalEvents int
,@TimedIntervalFrequency int
,@TimedIntervalUnits smallint
,@RTCScheduleTrigOn bit
,@RTCScheduleStartDateTime datetime
,@RTCScheduleDuration bigint
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0);
declare @TestSetupId int
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
if(exists(select TestSetupId from [dbo].[TestSetups] where TestSetupId = @TestSetupId))
begin
set @new_id = @TestSetupId
exec dbo.sp_TestSetupsUpdate @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,@ClockSyncProfileMaster
,@ClockSyncProfileSlave
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@LowgLVLTrigOn
,@LowgLVLTrigOnX
,@LowgLVLTrigOnY
,@LowgLVLTrigOnZ
,@HighgLVLTrigOn
,@HighgLVLTrigOnX
,@HighgLVLTrigOnY
,@HighgLVLTrigOnZ
,@AngAccelLVLTrigOn
,@AngAccelLVLTrigOnX
,@AngAccelLVLTrigOnY
,@AngAccelLVLTrigOnZ
,@ARSLVLTrigOn
,@ARSLVLTrigOnX
,@ARSLVLTrigOnY
,@ARSLVLTrigOnZ
,@LowgLVLTrigX
,@LowgLVLTrigY
,@LowgLVLTrigZ
,@HighgLVLTrigX
,@HighgLVLTrigY
,@HighgLVLTrigZ
,@AngAccelLVLTrigX
,@AngAccelLVLTrigY
,@AngAccelLVLTrigZ
,@ARSLVLTrigX
,@ARSLVLTrigY
,@ARSLVLTrigZ
,@HumidityLVLTrigOn
,@PressureLVLTrigOn
,@TemperatureLVLTrigOn
,@HumidityLVLTrigBelow
,@HumidityLVLTrigAbove
,@PressureLVLTrigBelow
,@PressureLVLTrigAbove
,@TemperatureLVLTrigBelow
,@TemperatureLVLTrigAbove
,@LowgRate
,@HighgRate
,@AngularRate
,@TempHumidPressRate
,@BatterySaverModeOn
,@WakeupAndTriggerOn
,@WakeupTrigger
,@WakeUpMotionTimeout
,@WakeUpMagnetTimeout
,@WakeUpTimeSessionStart
,@WakeUpTimeDuration
,@TimedIntervalTrigOn
,@TimedIntervalDuration
,@TimedIntervalEvents
,@TimedIntervalFrequency
,@TimedIntervalUnits
,@RTCScheduleTrigOn
,@RTCScheduleStartDateTime
,@RTCScheduleDuration
,@new_id output
,@errorNumber output
,@errorMessage output
end
else
begin
exec dbo.sp_TestSetupsInsert @TestSetupName
,@SetupDescription
,@AutomaticTestProgression
,@AutomaticProgressionDelayMS
,@InvertTrigger
,@InvertStart
,@ViewDiagnostics
,@VerifyChannels
,@AutoVerifyChannels
,@VerifyChannelsDelayMS
,@RecordingMode
,@SamplesPerSecond
,@PreTriggerSeconds
,@PostTriggerSeconds
,@NumberOfEvents
,@StrictDiagnostics
,@RequireConfirmationOnErrors
,@ROIDownload
,@ViewROIDownload
,@DownloadAll
,@ViewRealtime
,@RealtimePlotCount
,@RegionsOfInterest
,@ROIStart
,@ROIEnd
,@ViewDownloadAll
,@Export
,@ExportFormat
,@LabDetails
,@UseLabDetails
,@CustomerDetails
,@UseCustomerDetails
,@AllowMissingSensors
,@AllowSensorIdToBlankChannel
,@CalibrationBehavior
,@LocalOnly
,@LastModified
,@LastModifiedBy
,@TurnOffExcitation
,@TriggerCheckRealtime
,@TriggerCheckStep
,@PostTestDiagnostics
,@ExportFolder
,@DownloadFolder
,@CommonStatusLine
,@SameAsDownloadFolder
,@UploadData
,@UploadDataFolder
,@UploadExportsOnly
,@Settings
,@WarnOnBatteryFail
,@Dirty
,@Complete
,@Error
,@TestEngineerDetails
,@UseTestEngineerDetails
,@UserTags
,@DoAutoArm
,@CheckoutMode
,@ISFFile
,@QuitTestWithoutWarning
,@NotAllChannelsRealTime
,@NotAllChannelsViewer
,@SuppressMissingSensorsWarning
,@DoStreaming
,@ClockSyncProfileMaster
,@ClockSyncProfileSlave
,@ExtraProperties
,@MeasureSquibResistancesStep
,@TestSetupUniqueId
,@TestSetup
,@LowgLVLTrigOn
,@LowgLVLTrigOnX
,@LowgLVLTrigOnY
,@LowgLVLTrigOnZ
,@HighgLVLTrigOn
,@HighgLVLTrigOnX
,@HighgLVLTrigOnY
,@HighgLVLTrigOnZ
,@AngAccelLVLTrigOn
,@AngAccelLVLTrigOnX
,@AngAccelLVLTrigOnY
,@AngAccelLVLTrigOnZ
,@ARSLVLTrigOn
,@ARSLVLTrigOnX
,@ARSLVLTrigOnY
,@ARSLVLTrigOnZ
,@LowgLVLTrigX
,@LowgLVLTrigY
,@LowgLVLTrigZ
,@HighgLVLTrigX
,@HighgLVLTrigY
,@HighgLVLTrigZ
,@AngAccelLVLTrigX
,@AngAccelLVLTrigY
,@AngAccelLVLTrigZ
,@ARSLVLTrigX
,@ARSLVLTrigY
,@ARSLVLTrigZ
,@HumidityLVLTrigOn
,@PressureLVLTrigOn
,@TemperatureLVLTrigOn
,@HumidityLVLTrigBelow
,@HumidityLVLTrigAbove
,@PressureLVLTrigBelow
,@PressureLVLTrigAbove
,@TemperatureLVLTrigBelow
,@TemperatureLVLTrigAbove
,@LowgRate
,@HighgRate
,@AngularRate
,@TempHumidPressRate
,@BatterySaverModeOn
,@WakeupAndTriggerOn
,@WakeupTrigger
,@WakeUpMotionTimeout
,@WakeUpMagnetTimeout
,@WakeUpTimeSessionStart
,@WakeUpTimeDuration
,@TimedIntervalTrigOn
,@TimedIntervalDuration
,@TimedIntervalEvents
,@TimedIntervalFrequency
,@TimedIntervalUnits
,@RTCScheduleTrigOn
,@RTCScheduleStartDateTime
,@RTCScheduleDuration
,@new_id output
,@errorNumber output
,@errorMessage output
end;
END

View File

@@ -0,0 +1,120 @@
ALTER PROCEDURE [dbo].[sp_DASUpdateInsert]
@DASId int = 0
,@SerialNumber nvarchar(50) = null
,@Type int
,@MaxModules int
,@MaxMemory bigint
,@MaxSampleRate decimal(18,0)
,@MinSampleRate decimal(18,0)
,@FirmwareVersion nvarchar(50)
,@CalDate datetime
,@ProtocolVersion int
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@Version int
,@LocalOnly bit
,@LastUsed datetime
,@LastUsedBy nvarchar(50)
,@Connection nvarchar(50)
,@Channels int
,@Position nvarchar(50)
,@ChannelTypes nvarchar(255)
,@Reprogramable bit
,@Reconfigurable bit
,@IsModule bit
,@PositionOnDistributor smallint
,@PositionOnChain smallint
,@Port smallint
,@ParentDAS nvarchar(50)
,@FirstUseDate datetime null
,@TestId int null
,@GroupId int null
,@StandIn bit null
,@new_id int OUTPUT
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
SET NOCOUNT ON;
if(@DASId = 0)
begin
set @DASId = dbo.foo_IdGetDAS(@SerialNumber)
end
if(@DASId != 0)
begin
exec dbo.sp_DASUpdate @DASId
,@SerialNumber
,@Type
,@MaxModules
,@MaxMemory
,@MaxSampleRate
,@MinSampleRate
,@FirmwareVersion
,@CalDate
,@ProtocolVersion
,@LastModified
,@LastModifiedBy
,@Version
,@LocalOnly
,@LastUsed
,@LastUsedBy
,@Connection
,@Channels
,@Position
,@ChannelTypes
,@Reprogramable
,@Reconfigurable
,@IsModule
,@PositionOnDistributor
,@PositionOnChain
,@Port
,@ParentDAS
,@FirstUseDate
,@TestId
,@GroupId
,@StandIn
,@new_id
,@errorNumber output, @errorMessage output
SET @new_id = @DASId
end
else
begin
exec dbo.sp_DASInsert @SerialNumber
,@Type
,@MaxModules
,@MaxMemory
,@MaxSampleRate
,@MinSampleRate
,@FirmwareVersion
,@CalDate
,@ProtocolVersion
,@LastModified
,@LastModifiedBy
,@Version
,@LocalOnly
,@LastUsed
,@LastUsedBy
,@Connection
,@Channels
,@Position
,@ChannelTypes
,@Reprogramable
,@Reconfigurable
,@IsModule
,@PositionOnDistributor
,@PositionOnChain
,@Port
,@ParentDAS
,@FirstUseDate
,@TestId
,@GroupId
,@StandIn
,@new_id output
,@errorNumber output, @errorMessage output
end
END

View File

@@ -0,0 +1,22 @@
CREATE PROCEDURE [dbo].[sp_ChannelSettingsGet_92]
@Id int = NULL,
@SettingName NVARCHAR (255) = NULL
AS
BEGIN
SET NOCOUNT ON;
IF (@Id IS NOT NULL) OR (@SettingName IS NOT NULL)
BEGIN
IF (@Id IS NULL)
BEGIN
SELECT [Id], [DefaultValue] FROM [dbo].[ChannelSettings] where (SettingName = @SettingName)
END
ELSE
BEGIN
SELECT [SettingName] FROM [dbo].[ChannelSettings] where (Id = @Id)
END
END
ELSE
BEGIN
SELECT [Id], [SettingName], [DefaultValue] FROM [dbo].[ChannelSettings]
END
END

View File

@@ -0,0 +1,44 @@
CREATE PROCEDURE [dbo].[sp_SensorsStreamInputUpdateInsert]
@Id INT=NULL,
@SerialNumber NVARCHAR (255),
@UDPAddress NVARCHAR (50),
@LastModified DATETIME,
@LastModifiedBy NVARCHAR (50),
@UserTags VARBINARY (MAX),
@Broken BIT,
@DoNotUse BIT,
@new_id INT OUTPUT,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET NOCOUNT ON
SET @errorNumber = 0
SET @errorMessage = ''
DECLARE @SensorType AS TINYINT
DECLARE @SensorId AS INT
SELECT @SensorType = [TypeId] FROM [dbo].[SensorsType] WHERE [SensorType]='StreamInput'
SELECT @SensorId = A.[Id] from [dbo].[Sensors] AS A INNER JOIN [dbo].SensorsType AS B ON A.SensorType=B.TypeId WHERE B.TypeId=@SensorType AND A.SerialNumber=@SerialNumber
IF( @SensorId IS NULL)
BEGIN
INSERT INTO [dbo].[Sensors] ([SensorType], [SerialNumber]) VALUES (@SensorType, @SerialNumber)
SELECT @SensorId = SCOPE_IDENTITY()
SET @new_id = @SensorId
INSERT INTO [dbo].[SensorsStreamInput] ([SensorId], [UDPAddress], [LastModified], [LastModifiedBy], [UserTags], [Broken], [DoNotUse]) VALUES (@SensorId, @UDPAddress, @LastModified, @LastModifiedBy, @UserTags, @Broken, @DoNotUse)
END
ELSE
BEGIN
SET @new_id = @SensorId
UPDATE [dbo].SensorsStreamInput SET [UDPAddress]=@UDPAddress, [LastModified]=@LastModified, [LastModifiedBy]=@LastModifiedBy, [UserTags]=@UserTags, [Broken]=@Broken, [DoNotUse]=@DoNotUse WHERE [SensorId] = @SensorId
END
END
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END

View File

@@ -0,0 +1,5 @@
ALTER TABLE dbo.TestSetupHardware
ADD IsClockMaster bit NOT NULL
CONSTRAINT TestSetupHardwareIsClockMaster_Constraint
DEFAULT 0
WITH VALUES;

View File

@@ -0,0 +1,6 @@
INSERT INTO [dbo].[ChannelSettings]
([SettingName]
,[DefaultValue])
VALUES
('StreamOutTMATSIntervalMs'
,'1000')

View File

@@ -0,0 +1,97 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsGet_96]
@TestSetupId int = null,
@TestSetupName nvarchar(50) = null
AS
BEGIN
SET NOCOUNT ON;
if(@TestSetupName is not null)
begin
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
end
SELECT [TestSetupId]
,[TestSetupName] as 'SetupName'
,[SetupDescription]
,[AutomaticTestProgression]
,[AutomaticProgressionDelayMS]
,[InvertTrigger]
,[InvertStart]
,[ViewDiagnostics]
,[VerifyChannels]
,[AutoVerifyChannels]
,[VerifyChannelsDelayMS]
,[RecordingMode]
,[SamplesPerSecond]
,[PreTriggerSeconds]
,[PostTriggerSeconds]
,[NumberOfEvents]
,[StrictDiagnostics]
,[RequireConfirmationOnErrors]
,[ROIDownload]
,[ViewROIDownload]
,[DownloadAll]
,[ViewRealtime]
,[RealtimePlotCount]
,[ROIStart]
,[ROIEnd]
,[ViewDownloadAll]
,[Export]
,[ExportFormat]
,[LabDetails]
,[UseLabDetails]
,[CustomerDetails]
,[UseCustomerDetails]
,[AllowMissingSensors]
,[AllowSensorIdToBlankChannel]
,[CalibrationBehavior]
,[LocalOnly]
,[LastModified]
,[LastModifiedBy]
,[TurnOffExcitation]
,[TriggerCheckRealtime]
,[TriggerCheckStep]
,[PostTestDiagnostics]
,[ExportFolder]
,[DownloadFolder]
,[CommonStatusLine]
,[SameAsDownloadFolder]
,[UploadData]
,[UploadDataFolder]
,[UploadExportsOnly]
,[Settings]
,[WarnOnBatteryFail]
,[Dirty]
,[Complete]
,[ErrorMessage]
,[TestEngineerDetails]
,[UseTestEngineerDetails]
,[UserTags]
,isnull([DoAutoArm], 0) as [DoAutoArm]
,isnull([CheckoutMode], 0) as [CheckoutMode]
,isnull([ISFFile], 0) as [ISFFile]
,isnull([QuitTestWithoutWarning], 0) as [QuitTestWithoutWarning]
,isnull([NotAllChannelsRealTime], 0) as [NotAllChannelsRealTime]
,isnull([NotAllChannelsViewer], 0) as [NotAllChannelsViewer]
,isnull([SuppressMissingSensorsWarning], 0) as [SuppressMissingSensorsWarning]
,isnull([DoStreaming], 0) as [DoStreaming]
,[ClockSyncProfileMaster]
,[ClockSyncProfileSlave]
,[ExtraProperties]
,isnull([MeasureSquibResistancesStep], 0) as [MeasureSquibResistancesStep]
,[TestSetupUniqueId]
,[TestSetup]
,[WakeupAndTriggerOn]
,[WakeupTrigger]
,[WakeUpMotionTimeout]
,[TimedIntervalFrequency]
,[RTCScheduleStartDateTime]
,[RTCScheduleDuration]
,[StartWithEvent]
,isnull([RepeatAutoArmOrStreaming], 0) as [RepeatAutoArmOrStreaming]
,isnull([IgnoreShortedStart], 0) as [IgnoreShortedStart]
,isnull([IgnoreShortedTrigger], 0) as [IgnoreShortedTrigger]
from [dbo].[TestSetups]
where ((@TestSetupId is null or @TestSetupId= 0) or TestSetupId = @TestSetupId)
and (@TestSetupName is null or TestSetupName = @TestSetupName)
and TestSetupName <> 'TSRAIR_GO_TEST';
END

View File

@@ -0,0 +1,64 @@
INSERT INTO [dbo].[Settings]
([PropertyId]
,[PropertyType]
,[PropertyValue]
,[UserId])
VALUES
('EnableClockSourceSelect'
,2
,'False'
,'SYSTEM');
INSERT INTO [dbo].[DefaultProperties]
([PropertyId]
,[PropertyName]
,[DefaultValue])
VALUES
(407
,'DefaultCheckListClockSyncCheck'
,'True'),
(408
,'DefaultClockSyncProfileMaster'
,'None'),
(409
,'DefaultClockSyncProfileSlave'
,'None'),
(410
,'AllowUARTRecordingModes'
,'False'),
(411
,'DefaultUARTBaudRate'
,'57600'),
(412
,'DefaultUARTDataBits'
,'8'),
(413
,'DefaultUARTStopBits'
,'None'),
(414
,'DefaultUARTParity'
,'None'),
(415
,'DefaultUARTFlowControl'
,'None'),
(416
,'DefaultUDPStreamProfile'
,'CH10_MANUAL_CONFIG'),
(417
,'DefaultUDPStreamTimeChannelId'
,'1'),
(418
,'DefaultUDPStreamDataChannelId'
,'3'),
(419
,'DefaultUDPStreamTmNSConfig'
,'(1,6,60,0,0,0,0,0)'),
(420
,'DefaultIRIGTimeDataPacketIntervalMs'
,'500'),
(421
,'DefaultAutoArmRepeatEnable'
,'False'),
(422
,'DefaultAutoArmPreserveDiagnostics'
,'False');

View File

@@ -0,0 +1,19 @@
CREATE PROCEDURE [dbo].[sp_GroupChannelSettingsInsert_93]
@ChannelId BIGINT,
@SettingId INT,
@SettingValue NVARCHAR (255),
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
INSERT INTO [dbo].[GroupChannelSettings] ([ChannelId],[SettingId],[SettingValue]) VALUES (@ChannelId, @SettingId, @SettingValue)
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,17 @@
ALTER TABLE dbo.TestSetups
ADD InputClockSourceMaster nvarchar(50) NOT NULL
CONSTRAINT TestSetupsInputClockSourceMaster_Constraint
DEFAULT 'None'
WITH VALUES;
ALTER TABLE dbo.TestSetups
ADD OutputClockSourceMaster nvarchar(50) NOT NULL
CONSTRAINT TestSetupsOutputClockSourceMaster_Constraint
DEFAULT 'None'
WITH VALUES;
ALTER TABLE dbo.TestSetups
ADD InputClockSourceSlave nvarchar(50) NOT NULL
CONSTRAINT TestSetupsInputClockSourceSlave_Constraint
DEFAULT 'None'
WITH VALUES;

View File

@@ -0,0 +1,68 @@
ALTER PROCEDURE [dbo].[sp_DASDelete]
@Id INT = NULL,
@SerialNumber NVARCHAR (50) = NULL,
@Embedded BIT=0,
@errorNumber INT OUTPUT,
@errorMessage NVARCHAR (255) OUTPUT
AS
BEGIN
SET NOCOUNT ON;
SET @errorNumber=0
SET @errorMessage=''
ALTER TABLE [dbo].[Channels] NOCHECK CONSTRAINT [FK_Channels_DASId]
ALTER TABLE [dbo].[Channels] NOCHECK CONSTRAINT [FK_Channels_SensorId]
IF(@Id IS NULL)
BEGIN
IF NULLIF(@SerialNumber, '') IS NULL
BEGIN
SET @errorNumber = 1
SET @errorMessage = 'Serial number or Id required'
END
ELSE
BEGIN
SELECT @Id from [dbo].[DAS] WHERE [SerialNumber]=@SerialNumber
IF (@Embedded = 0 )
BEGIN
UPDATE [dbo].[Channels] SET [DASId] = NULL, [DASChannelIndex]=NULL WHERE [DASId]=@Id
END
ELSE
BEGIN
DELETE A FROM [dbo].[LevelTriggers] AS A INNER JOIN [dbo].[Channels] AS B on A.ChannelId = B.Id WHERE B.[DASId]=@Id
DELETE A FROM [dbo].[GroupChannelSettings] AS A INNER JOIN [dbo].[Channels] AS B on A.ChannelId = B.Id WHERE B.[DASId]=@Id
DELETE FROM [dbo].[Channels] WHERE [DASId]=@Id
END
DELETE FROM [dbo].[TestSetupHardware] WHERE [DASId]=@Id
DELETE FROM [dbo].[GroupHardware] WHERE [DASId]=@Id
DELETE FROM [dbo].[DASChannels] WHERE [DASId]=@Id
DELETE FROM [dbo].[DAS] WHERE [DASId] = @Id
END
END
ELSE
BEGIN
IF (@Embedded = 0 )
BEGIN
UPDATE [dbo].[Channels] SET [DASId] = 0, [DASChannelIndex]=0 WHERE [DASId]=@Id
END
ELSE
BEGIN
DELETE A FROM [dbo].[LevelTriggers] AS A INNER JOIN [dbo].[Channels] AS B on A.ChannelId = B.Id WHERE B.[DASId]=@Id
DELETE A FROM [dbo].[GroupChannelSettings] AS A INNER JOIN [dbo].[Channels] AS B on A.ChannelId = B.Id WHERE B.[DASId]=@Id
DELETE FROM [dbo].[Channels] WHERE [DASId]=@Id
END
DELETE FROM [dbo].[TestSetupHardware] WHERE [DASId]=@Id
DELETE FROM [dbo].[GroupHardware] WHERE [DASId]=@Id
DELETE FROM [dbo].[DASChannels] WHERE [DASId]=@Id
DELETE FROM [dbo].[DAS] WHERE [DASId] = @Id
END
ALTER TABLE [dbo].[Channels] CHECK CONSTRAINT [FK_Channels_DASId]
ALTER TABLE [dbo].[Channels] CHECK CONSTRAINT [FK_Channels_SensorId]
IF(@@error != 0)
BEGIN
SET @errorNumber = error_number()
SET @errorMessage = error_message()
END
END

View File

@@ -0,0 +1,33 @@
ALTER PROCEDURE [dbo].[sp_SensorsDigitalInUpdate]
@SerialNumber nvarchar(50)
,@SettingMode int
,@ScaleMultiplier nvarchar(50)
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@eId nvarchar(50)
,@UserValue1 nvarchar(255)
,@UserValue2 nvarchar(255)
,@UserValue3 nvarchar(255)
,@UserTags varbinary(max)
,@MeasurementUnit nvarchar(50)
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0
set @errorMessage = space(0)
UPDATE [dbo].[SensorsDigitalIn]
SET [SettingMode] = @SettingMode
,[ScaleMultiplier] = @ScaleMultiplier
,[LastModified] = @LastModified
,[LastModifiedBy] = @LastModifiedBy
,[eId] = @eId
,[UserValue1] = @UserValue1
,[UserValue2] = @UserValue2
,[UserValue3] = @UserValue3
,[UserTags] = @UserTags
,[MeasurementUnit] = @MeasurementUnit
where SerialNumber = @SerialNumber
END

View File

@@ -0,0 +1,10 @@
INSERT INTO [dbo].[Settings]
([PropertyId]
,[PropertyType]
,[PropertyValue]
,[UserId])
VALUES
('EnableClockSourceSelect'
,2
,'False'
,'SYSTEM');

View File

@@ -0,0 +1,195 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsUpdate]
@TestSetupName nvarchar(50) = Null
,@SetupDescription nvarchar(50)
,@AutomaticTestProgression bit
,@AutomaticProgressionDelayMS int
,@InvertTrigger bit
,@InvertStart bit
,@ViewDiagnostics bit
,@VerifyChannels bit
,@AutoVerifyChannels bit
,@VerifyChannelsDelayMS int
,@RecordingMode smallint
,@SamplesPerSecond float
,@PreTriggerSeconds float
,@PostTriggerSeconds float
,@NumberOfEvents int
,@StrictDiagnostics bit
,@RequireConfirmationOnErrors bit
,@ROIDownload bit
,@ViewROIDownload bit
,@DownloadAll bit
,@ViewRealtime bit
,@RealtimePlotCount smallint
,@RegionsOfInterest nvarchar(MAX)
,@ROIStart float
,@ROIEnd float
,@ViewDownloadAll bit
,@Export bit
,@ExportFormat bigint
,@LabDetails nvarchar(50)
,@UseLabDetails bit
,@CustomerDetails nvarchar(50)
,@UseCustomerDetails bit
,@AllowMissingSensors bit
,@AllowSensorIdToBlankChannel bit
,@CalibrationBehavior smallint
,@LocalOnly bit
,@LastModified datetime
,@LastModifiedBy nvarchar(50)
,@TurnOffExcitation bit
,@TriggerCheckRealtime bit
,@TriggerCheckStep bit
,@PostTestDiagnostics int
,@ExportFolder nvarchar(150)
,@DownloadFolder nvarchar(150)
,@CommonStatusLine bit
,@SameAsDownloadFolder bit
,@UploadData bit
,@UploadDataFolder nvarchar(150)
,@UploadExportsOnly bit
,@Settings nvarchar(4000)
,@WarnOnBatteryFail bit
,@Dirty bit
,@Complete bit
,@Error nvarchar(255)
,@TestEngineerDetails nvarchar(50)
,@UseTestEngineerDetails bit
,@UserTags varbinary(max)
,@DoAutoArm bit
,@CheckoutMode bit
,@ISFFile nvarchar(4000)
,@QuitTestWithoutWarning bit
,@NotAllChannelsRealTime bit
,@NotAllChannelsViewer bit
,@SuppressMissingSensorsWarning bit
,@DoStreaming bit
,@ClockSyncProfileMaster nvarchar(50)
,@ClockSyncProfileSlave nvarchar(50)
,@ExtraProperties nvarchar(max)
,@MeasureSquibResistancesStep bit
,@TestSetup varbinary(MAX)
,@new_id int output
,@errorNumber int output
,@errorMessage nvarchar(250) output
AS
BEGIN
set @errorNumber = 0; set @errorMessage = space(0); set @new_id = 0;
/* Table (ans stored procedure) is too big... */
begin try
if(@TestSetupName is null)
begin
set @errorMessage = 'An invalid parameter or option was specified for procedure'
set @errorNumber = 15600
end
else
begin
declare @TestSetupId int
declare @TestEngineerId int
declare @LabratoryId int
declare @CustomerId int
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
set @CustomerId = dbo.foo_IdGetCustomer(@CustomerDetails)
IF @CustomerId <= 0
BEGIN
SET @CustomerId = null
END
set @LabratoryId = dbo.foo_IdGetLabratory(@LabDetails)
IF @LabratoryId <= 0
BEGIN
SET @LabratoryId = null
END
set @TestEngineerId = dbo.foo_IdGetEngineer(@TestEngineerDetails);
IF @TestEngineerId <= 0
BEGIN
SET @TestEngineerId = null
END
set @new_id = @TestSetupId
UPDATE [dbo].[TestSetups]
SET [SetupDescription] = @SetupDescription
,[AutomaticTestProgression] = @AutomaticTestProgression
,[AutomaticProgressionDelayMS] = @AutomaticProgressionDelayMS
,[InvertTrigger] = @InvertTrigger
,[InvertStart] = @InvertStart
,[ViewDiagnostics] = @ViewDiagnostics
,[VerifyChannels] = @VerifyChannels
,[AutoVerifyChannels] = @AutoVerifyChannels
,[VerifyChannelsDelayMS] = @VerifyChannelsDelayMS
,[RecordingMode] = @RecordingMode
,[SamplesPerSecond] = @SamplesPerSecond
,[PreTriggerSeconds] = @PreTriggerSeconds
,[PostTriggerSeconds] = @PostTriggerSeconds
,[NumberOfEvents] = @NumberOfEvents
,[StrictDiagnostics] = @StrictDiagnostics
,[RequireConfirmationOnErrors] = @RequireConfirmationOnErrors
,[ROIDownload] = @ROIDownload
,[ViewROIDownload] = @ViewROIDownload
,[DownloadAll] = @DownloadAll
,[ViewRealtime] = @ViewRealtime
,[RealtimePlotCount] = @RealtimePlotCount
,[RegionsOfInterest] = @RegionsOfInterest
,[ROIStart] = @ROIStart
,[ROIEnd] = @ROIEnd
,[ViewDownloadAll] = @ViewDownloadAll
,[Export] = @Export
,[ExportFormat] = @ExportFormat
,[CustomerId] = @CustomerId
,[LabratoryId] = @LabratoryId
,[TestEngineerId] = @TestEngineerId
,[LabDetails] = @LabDetails
,[UseLabDetails] = @UseLabDetails
,[CustomerDetails] = @CustomerDetails
,[UseCustomerDetails] = @UseCustomerDetails
,[AllowMissingSensors] = @AllowMissingSensors
,[AllowSensorIdToBlankChannel] = @AllowSensorIdToBlankChannel
,[CalibrationBehavior] = @CalibrationBehavior
,[LocalOnly] = @LocalOnly
,[LastModified] = @LastModified
,[LastModifiedBy] = @LastModifiedBy
,[TurnOffExcitation] = @TurnOffExcitation
,[TriggerCheckRealtime] = @TriggerCheckRealtime
,[TriggerCheckStep] = @TriggerCheckStep
,[PostTestDiagnostics] = @PostTestDiagnostics
,[ExportFolder] = @ExportFolder
,[DownloadFolder] = @DownloadFolder
,[CommonStatusLine] = @CommonStatusLine
,[SameAsDownloadFolder] = @SameAsDownloadFolder
,[UploadData] = @UploadData
,[UploadDataFolder] = @UploadDataFolder
,[UploadExportsOnly] = @UploadExportsOnly
,[Settings] = @Settings
,[WarnOnBatteryFail] = @WarnOnBatteryFail
,[Dirty] = @Dirty
,[Complete] = @Complete
,[ErrorMessage] = @Error
,[TestEngineerDetails] = @TestEngineerDetails
,[UseTestEngineerDetails] = @UseTestEngineerDetails
,[UserTags] = @UserTags
,[DoAutoArm] = @DoAutoArm
,[CheckoutMode] = @CheckoutMode
,[ISFFile] = @ISFFile
,[QuitTestWithoutWarning] = @QuitTestWithoutWarning
,[NotAllChannelsRealTime] = @NotAllChannelsRealTime
,[NotAllChannelsViewer] = @NotAllChannelsViewer
,[SuppressMissingSensorsWarning] = @SuppressMissingSensorsWarning
,[DoStreaming] = @DoStreaming
,[ClockSyncProfileMaster] = @ClockSyncProfileMaster
,[ClockSyncProfileSlave] = @ClockSyncProfileSlave
,[ExtraProperties] = @ExtraProperties
,[MeasureSquibResistancesStep] = @MeasureSquibResistancesStep
,[TestSetup] = @TestSetup
WHERE [TestSetupId] = @TestSetupId
end
end try
begin catch
set @errorMessage = error_message()
set @errorNumber = error_number()
end catch;
END

View File

@@ -0,0 +1,85 @@
ALTER PROCEDURE [dbo].[sp_TestSetupsGet]
@TestSetupId int = null,
@TestSetupName nvarchar(50) = null
AS
BEGIN
SET NOCOUNT ON;
if(@TestSetupName is not null)
begin
set @TestSetupId = dbo.foo_IdGetTestSetup(@TestSetupName)
end
SELECT [TestSetupId]
,[TestSetupName] as 'SetupName'
,[SetupDescription]
,[AutomaticTestProgression]
,[AutomaticProgressionDelayMS]
,[InvertTrigger]
,[InvertStart]
,[ViewDiagnostics]
,[VerifyChannels]
,[AutoVerifyChannels]
,[VerifyChannelsDelayMS]
,[RecordingMode]
,[SamplesPerSecond]
,[PreTriggerSeconds]
,[PostTriggerSeconds]
,[StrictDiagnostics]
,[RequireConfirmationOnErrors]
,[ROIDownload]
,[ViewROIDownload]
,[DownloadAll]
,[ViewRealtime]
,[RealtimePlotCount]
,[RegionsOfInterest]
,[ROIStart]
,[ROIEnd]
,[ViewDownloadAll]
,[Export]
,[ExportFormat]
,[LabDetails]
,[UseLabDetails]
,[CustomerDetails]
,[UseCustomerDetails]
,[AllowMissingSensors]
,[AllowSensorIdToBlankChannel]
,[CalibrationBehavior]
,[LocalOnly]
,[LastModified]
,[LastModifiedBy]
,[TurnOffExcitation]
,[TriggerCheckRealtime]
,[TriggerCheckStep]
,[PostTestDiagnostics]
,[ExportFolder]
,[DownloadFolder]
,[CommonStatusLine]
,[SameAsDownloadFolder]
,[UploadData]
,[UploadDataFolder]
,[UploadExportsOnly]
,[Settings]
,[WarnOnBatteryFail]
,[Dirty]
,[Complete]
,[ErrorMessage]
,[TestEngineerDetails]
,[UseTestEngineerDetails]
,[UserTags]
,isnull([DoAutoArm], 0) as [DoAutoArm]
,isnull([CheckoutMode], 0) as [CheckoutMode]
,isnull([ISFFile], 0) as [ISFFile]
,isnull([QuitTestWithoutWarning], 0) as [QuitTestWithoutWarning]
,isnull([NotAllChannelsRealTime], 0) as [NotAllChannelsRealTime]
,isnull([NotAllChannelsViewer], 0) as [NotAllChannelsViewer]
,isnull([SuppressMissingSensorsWarning], 0) as [SuppressMissingSensorsWarning]
,isnull([DoStreaming], 0) as [DoStreaming]
,[ClockSyncProfileMaster]
,[ClockSyncProfileSlave]
,[ExtraProperties]
,[TestSetup]
from [dbo].[TestSetups]
where ((@TestSetupId is null or @TestSetupId= 0) or TestSetupId = @TestSetupId)
and (@TestSetupName is null or TestSetupName = @TestSetupName);
END

View File

@@ -0,0 +1,3 @@
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_DASGet', 99)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_TestSetupHardwareGet', 99)
INSERT INTO [StoredProcedureVersions] ([StoredProcedure], [Version]) VALUES ('sp_ChannelsGet', 99)

Some files were not shown because too many files have changed in this diff Show More