init
This commit is contained in:
@@ -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
|
||||
Binary file not shown.
@@ -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)
|
||||
Reference in New Issue
Block a user