Skip to content
This repository was archived by the owner on Mar 16, 2022. It is now read-only.

Commit 6a5dc3c

Browse files
authored
Merge pull request #141 from NISystemsEngineering/ETexampleFIX
FIX: detroughConfig.Exponent = 1.2 was not set correct
2 parents 659c21e + 004529e commit 6a5dc3c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Examples/ET_Example/Program.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ static void Main(string[] args)
4444
{
4545
case EnvelopeMode.Detrough:
4646
// Create envelope waveform
47-
DetroughConfiguration detroughConfig = DetroughConfiguration.GetDefault();
47+
DetroughConfiguration detroughConfig = DetroughConfiguration.GetDefault();
4848
detroughConfig.MinimumVoltage_V = 1.5;
49-
detroughConfig.Exponent = 3.5;
49+
detroughConfig.MaximumVoltage_V = 3.5;
50+
detroughConfig.Exponent = 1.2;
51+
detroughConfig.Type = DetroughType.Exponential;
5052
envWfm = CreateDetroughEnvelopeWaveform(rfWfm, detroughConfig);
5153
break;
5254
case EnvelopeMode.LUT:

0 commit comments

Comments
 (0)