111 lines
3.6 KiB
Plaintext
111 lines
3.6 KiB
Plaintext
|
|
ALTER PROCEDURE [dbo].[sp_TestSetupsGet_92]
|
||
|
|
@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 t.[TestSetupId]
|
||
|
|
,[TestSetupName] as 'SetupName'
|
||
|
|
,[SetupDescription]
|
||
|
|
,[AutomaticTestProgression]
|
||
|
|
,[AutomaticProgressionDelayMS]
|
||
|
|
,[InvertTrigger]
|
||
|
|
,[InvertStart]
|
||
|
|
,[ViewDiagnostics]
|
||
|
|
,[VerifyChannels]
|
||
|
|
,[AutoVerifyChannels]
|
||
|
|
,[VerifyChannelsDelayMS]
|
||
|
|
,CASE t.[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 t.[RecordingMode]
|
||
|
|
END as [RecordingMode]
|
||
|
|
,[SamplesPerSecond]
|
||
|
|
,[PreTriggerSeconds]
|
||
|
|
,[PostTriggerSeconds]
|
||
|
|
,CASE t.[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 t.[NumberOfEvents]
|
||
|
|
END as [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]
|
||
|
|
,CASE
|
||
|
|
WHEN t.[DoAutoArm] IS NULL OR t.[RecordingMode] = 22 THEN 0
|
||
|
|
ELSE t.[DoAutoArm]
|
||
|
|
END 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]
|
||
|
|
,CASE
|
||
|
|
WHEN t.[RepeatAutoArmOrStreaming] IS NULL OR t.[RecordingMode] = 22 THEN 0
|
||
|
|
ELSE t.[RepeatAutoArmOrStreaming]
|
||
|
|
END AS RepeatAutoArmOrStreaming
|
||
|
|
,isnull([IgnoreShortedStart], 0) as [IgnoreShortedStart]
|
||
|
|
,isnull([IgnoreShortedTrigger], 0) as [IgnoreShortedTrigger]
|
||
|
|
from [dbo].[TestSetups] t
|
||
|
|
where ((@TestSetupId is null or @TestSetupId= 0) or TestSetupId = @TestSetupId)
|
||
|
|
and (@TestSetupName is null or TestSetupName = @TestSetupName);
|
||
|
|
END
|