Skip to content

Commit 21178ee

Browse files
Merge pull request #64 from aclary100-bit/main
updated readme and image files
2 parents e2500f4 + 2a2de46 commit 21178ee

File tree

7 files changed

+38
-1
lines changed

7 files changed

+38
-1
lines changed

Instrument_Examples/Series_2400_Graphical/2450-SMU/Current_Sine_Wave/README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,43 @@ This TSP file demos how to pass parameter values and use the sine wave generatio
1515

1616
## Code Walk Through
1717

18+
The Defining file contains instrumnet commands orgainized into functions.
19+
When this file is run on the 2450, it may seem like nothing happened.
20+
When running the code in this file, it loads the functions into runtime memory.
21+
These functions are essentially your API for the task you need the 2450 to do.
22+
23+
![define functions](images/define_functions.png)
24+
25+
Below is some detail of one of the functions. It is defined to use paramters.
26+
For example, the value of src_level is used to set the current source range.
27+
The voltage_limit is used to set both the vlimit and the voltage measure range.
28+
29+
![define functions](images/define_detail.png)
30+
31+
32+
Below is part of the using TSP file. It defines some variables and passes those values to the function.
33+
It also can implement some conditional logic such as the if/then on build_list.
34+
If you choose to move to Python or another programming language, this file approximates how
35+
Python would make use of the defined functions.
36+
37+
![define functions](images/use_functions.png)
38+
39+
40+
Below shows the outcome when connected to a 330Ω resistor.
41+
The TSP files can be brought to the instrument on a thumb drive.
42+
Touch the screen where it displays 'No Script'. This will give a pop-up list
43+
of available scripts on thumb drive or stored on the instrument.
44+
Run the current_sine_wave_define.tsp once.
45+
Then run the current_sine_wave_use.tsp to generate the sine wave of current.
46+
To run again without any value changes, press TRIG button to execute it again.
47+
48+
![define functions](images/outcome.png)
49+
50+
The TSP code can also be run from TSP Toolkit extension for VSCode.
51+
In this case, the data results can be spooled to the Terminal window of TSP Toolkit.
52+
53+
![define functions](images/run_tsp_toolkit.png)
54+
1855

1956

2057

Instrument_Examples/Series_2400_Graphical/2450-SMU/Current_Sine_Wave/current_sine_wave_define.tsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--[[
22

3-
KEITHLEY INSTRUMENTS,MODEL 2450,04407385,1.7.0e
3+
KEITHLEY INSTRUMENTS,MODEL 2450,04407385,1.7.16a
44

55
Purpose: custom version of smu.source.sweeplinear()
66
for generation of current sine wave
16.5 KB
Loading
4.66 KB
Loading
44.2 KB
Loading
45 KB
Loading
33.8 KB
Loading

0 commit comments

Comments
 (0)