init
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user