Skip to content

Commit

Permalink
updated sample rate, removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneDroid committed Apr 29, 2024
1 parent 1a2b254 commit 46bb331
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions examples/analog_out/cont_gen_voltage_wfm_int_clk_non_regen.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,12 @@
task.timing.cfg_samp_clk_timing(sampling_rate, sample_mode=AcquisitionType.CONTINUOUS)

try:
cycle = 1
print("Generating voltage continuously. Press Ctrl+C to stop.")

while True:
data = create_sine_wave(
frequency=17.0, amplitude=1.0, sampling_rate=sampling_rate, duration=1.0
)
task.write(data)
cycle = cycle + 1
if is_first_run:
is_first_run = False
task.start()
Expand Down
2 changes: 1 addition & 1 deletion examples/analog_out/gen_voltage_wfm_int_clk.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
total_samples = 1000
task.ao_channels.add_ao_voltage_chan("Dev1/ao0")
task.timing.cfg_samp_clk_timing(
1000, sample_mode=AcquisitionType.FINITE, samps_per_chan=total_samples
1000.0, sample_mode=AcquisitionType.FINITE, samps_per_chan=total_samples
)

data = create_voltage_sample(5.0, total_samples)
Expand Down

0 comments on commit 46bb331

Please sign in to comment.