Skip to content

Commit

Permalink
Merge pull request #42 from Lightsaver7/september-update-1
Browse files Browse the repository at this point in the history
September update 1
  • Loading branch information
Lightsaver7 committed Sep 7, 2023
2 parents 677d617 + 508c3bc commit 32db308
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions appsFeatures/examples/acquisition/acqRF-exm3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ Code - MATLAB®
writeline(RP,'ACQ:RST');
writeline(RP,'ACQ:DEC 4');
% For short triggering signals set the length of internal debounce filter in us (minimum of 1 us)
writeline(RP,'ACQ:TRIG:EXT:DEBouncerUs 500');
% Set trigger delay to 0 samples
% 0 samples delay sets trigger to center of the buffer
Expand Down Expand Up @@ -143,6 +146,10 @@ Using just SCPI commands:
rp_s.tx_txt('ACQ:RST')
rp_s.tx_txt('ACQ:DEC 4')
# For short triggering signals set the length of internal debounce filter in us (minimum of 1 us)
rp_s.tx_txt('ACQ:TRIG:EXT:DEBouncerUs 500')
rp_s.tx_txt('ACQ:START')
rp_s.tx_txt('ACQ:TRIG EXT_PE')
Expand Down Expand Up @@ -185,6 +192,9 @@ Using functions:
# Function for configuring Acquisitio
rp_s.acq_set(dec)
# For short triggering signals set the length of internal debounce filter in us (minimum of 1 us)
rp_s.tx_txt('ACQ:TRIG:EXT:DEBouncerUs 500')
rp_s.tx_txt('ACQ:START')
rp_s.tx_txt('ACQ:TRIG EXT_PE')
Expand Down
10 changes: 10 additions & 0 deletions appsFeatures/examples/generation/genRF-exm3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ The code is written in MATLAB. In the code, we use SCPI commands and TCP client
writeline(RP,'SOUR1:BURS:STAT BURST'); % Set burst mode to CONTINUOUS for sine wave generation on External trigger
writeline(RP,'SOUR1:BURS:NCYC 1'); % Set 1 pulses of sine wave
% For short triggering signals set the length of internal debounce filter in us (minimum of 1 us)
writeline(RP,'SOUR:TRIG:EXT:DEBouncerUs 500');
writeline(RP,'SOUR1:TRIG:SOUR EXT_PE'); % Set generator trigger to external
writeline(RP,'OUTPUT1:STATE ON'); % Set output to ON
Expand Down Expand Up @@ -98,6 +101,7 @@ Code - C
rp_GenBurstCount(RP_CH_1, 1);
rp_GenMode(RP_CH_1, RP_GEN_MODE_BURST);
rp_GenSetExtTriggerDebouncerUs(500);
rp_GenTriggerSource(RP_CH_1, RP_GEN_TRIG_SRC_EXT_PE);
rp_GenOutEnable(RP_CH_1);
Expand Down Expand Up @@ -137,6 +141,9 @@ Using just SCPI commands:
rp_s.tx_txt('SOUR1:BURS:STAT BURST') # Set burst mode to CONTINUOUS/skip this section for sine wave generation on External trigger
rp_s.tx_txt('SOUR1:BURS:NCYC 1')
# For short triggering signals set the length of internal debounce filter in us (minimum of 1 us)
rp_s.tx_txt('SOUR:TRIG:EXT:DEBouncerUs 500')
rp_s.tx_txt('SOUR1:TRIG:SOUR EXT_PE')
rp_s.tx_txt('OUTPUT1:STATE ON')
Expand All @@ -163,6 +170,9 @@ Using functions:
# Function for configuring a Source
rp_s.sour_set(1, wave_form, ampl, freq, burst=True, ncyc=1, trig="EXT_PE")
# For short triggering signals set the length of internal debounce filter in us (minimum of 1 us)
rp_s.tx_txt('SOUR:TRIG:EXT:DEBouncerUs 500')
rp_s.tx_txt('OUTPUT1:STATE ON')
Expand Down

0 comments on commit 32db308

Please sign in to comment.