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,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