Skip to content

Commit 96bfcaa

Browse files
authored
Merge pull request #17 from VektrexElectronicSystems/development
Development v1.1.1
2 parents 10bcd6b + 924adf3 commit 96bfcaa

File tree

131 files changed

+18505
-118
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+18505
-118
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,5 +349,5 @@ MigrationBackup/
349349
# Ionide (cross platform F# VS Code tools) working folder
350350
.ionide/
351351

352-
\src\SpikeSafeCSharpSamples\bin
353-
\src\SpikeSafeCSharpSamples\obj
352+
\src\Vektrex.SpikeSafe.CSharp.Samples\bin
353+
\src\Vektrex.SpikeSafe.CSharp.Samples\obj

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/src/SpikeSafeCSharpSamples/bin/Debug/netcoreapp3.1/SpikeSafeCSharpSamples.dll",
13+
"program": "${workspaceFolder}/src/Vektrex.SpikeSafe.CSharp.Samples/bin/Debug/net48/Vektrex.SpikeSafe.CSharp.Samples.exe",
1414
"args": [],
1515
"cwd": "${workspaceFolder}",
1616
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console

.vscode/tasks.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "process",
88
"args": [
99
"build",
10-
"${workspaceFolder}/src/SpikeSafeCSharpSamples/SpikeSafeCSharpSamples.csproj",
10+
"${workspaceFolder}/src/Vektrex.SpikeSafe.CSharp.Samples/Vektrex.SpikeSafe.CSharp.Samples.csproj",
1111
"/property:GenerateFullPaths=true",
1212
"/consoleloggerparameters:NoSummary"
1313
],
@@ -19,7 +19,7 @@
1919
"type": "process",
2020
"args": [
2121
"publish",
22-
"${workspaceFolder}/src/SpikeSafeCSharpSamples/SpikeSafeCSharpSamples.csproj",
22+
"${workspaceFolder}/src/Vektrex.SpikeSafe.CSharp.Samples/Vektrex.SpikeSafe.CSharp.Samples.csproj",
2323
"/property:GenerateFullPaths=true",
2424
"/consoleloggerparameters:NoSummary"
2525
],
@@ -32,7 +32,7 @@
3232
"args": [
3333
"watch",
3434
"run",
35-
"${workspaceFolder}/src/SpikeSafeCSharpSamples/SpikeSafeCSharpSamples.csproj",
35+
"${workspaceFolder}/src/Vektrex.SpikeSafe.CSharp.Samples/Vektrex.SpikeSafe.CSharp.Samples.csproj",
3636
"/property:GenerateFullPaths=true",
3737
"/consoleloggerparameters:NoSummary"
3838
],

README.md

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,70 @@
1-
# SpikeSafeCSharpSamples solution README
1+
# Vektrex.SpikeSafe.CSharp.Samples
2+
3+
Use these code samples to start learning how to communicate with your SpikeSafe via TCP/IP using C#. Sequences can be run with the following Vektrex products:
4+
- [SpikeSafe PSMU](https://www.vektrex.com/products/spikesafe-source-measure-unit/)
5+
- [SpikeSafe Performance Series ("PRF")](https://www.vektrex.com/products/spikesafe-performance-series-precision-pulsed-current-sources/)
6+
7+
## Directory
8+
9+
- [Getting Started](/src/Vektrex.SpikeSafe.CSharp.Samples/GettingStarted) - These samples are primarily intended for first-time users of Vektrex products. They contain steps to perform the basic tasks that are necessary to run the samples within the RunSpikeSafeOperatingModes folder.
10+
- [Run SpikeSafe Operating Modes](/src/Vektrex.SpikeSafe.CSharp.Samples/RunSpikeSafeOperatingModes) - These folders contain examples to run specific SpikeSafe modes designed to test LEDs, Lasers, and electrical equipment. Basic settings will be sent to the SpikeSafe, and then one or more channels will be enabled to demonstrate the operation of each mode.
11+
- [Making Integrated Voltage Measurements](/src/Vektrex.SpikeSafe.CSharp.Samples/MakingIntegratedVoltageMeasurements) - These folders contain examples to measure voltage using the SpikeSafe PSMU's integrated voltage Digitizer. The SpikeSafe outputs current to an LED, Laser, or electrical equipment, and then voltage measurements are read and displayed onscreen.
12+
- [Using the Force Sense Selector Switch](/src/Vektrex.SpikeSafe.CSharp.Samples/UsingForceSenseSelectorSwitch) - These folders contain examples to operate the optional integrated switch within the SpikeSafe PSMU. The SpikeSafe outputs to an LED, Laser, or electrical equipment as in the previous examples, and the switch is used to either disconnect the SpikeSafe from the test circuit or to operate an auxiliary source to power the DUT.
13+
- [Application-Specific Examples](/src/Vektrex.SpikeSafe.CSharp.Samples/ApplicationSpecificExamples) - These folders consist of more advanced samples to address specific test scenarios, as well as some demonstrations to fine-tune your SpikeSafe current output. These samples explain how to make light measurements using a SpikeSafe and a spectrometer, how to make in-situ junction temperature measurements on LEDs, and how to take full advantage of all SpikeSafe features.
14+
15+
## Usage
16+
17+
### IDE
18+
To run these samples an IDE such as [Visual Studio Code](https://code.visualstudio.com/) is required, see [Working With C#](https://code.visualstudio.com/docs/languages/csharp) to simply setup your IDE with C#. After your IDE is setup, continue to install the remaining .NET packages below.
19+
20+
### Installing .NET Framework 4.8 Developer Pack
21+
The [.NET Framework 4.8 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net48) need to be installed.
22+
23+
### Installing Vektrex.SpikeSafe.CSharp.Lib Package
24+
The [Vektrex.SpikeSafe.CSharp.Lib](https://www.nuget.org/packages/Vektrex.SpikeSafe.CSharp.Lib/) package will need to be installed using the command `Install-Package Vektrex.SpikeSafe.CSharp.Lib`. Vektrex recommends always having the latest version of Vektrex.SpikeSafe.CSharp.Lib when running these sequences; the current version is 1.1.1.
25+
26+
Once the Vektrex.SpikeSafe.CSharp.Lib package is installed, each sample can be run independently by commenting out its respectively 'Run()' line in Program.cs. When a sample is run verify the expected outputs are obtained, as specified by the file's markdown description.
27+
28+
### Installing NLog
29+
All samples will log messages and may log data to a log text file and require [NLog](https://www.nuget.org/packages/NLog/) (version 4.7.10 or greater). Use the NuGet command `Install-Package NLog` to install the latest version of Nlog.
30+
31+
### Installing ScottPlot
32+
Some samples involve graphing measurement results. To properly graph results, the [ScottPlot](https://swharden.com/scottplot/) library is required (version 4.1.6 or greater). Use the NuGet command `Install-Package ScottPlot` to install the latest version of ScottPlot. Once the ScottPlot library is installed, each sample that involves graphing can be run from Program.cs.
33+
34+
### General Usage
35+
For most examples, you may need to modify the specified IP address within a Program.cs to match the IP address that is physically set on your SpikeSafe's DIP switch. In each sample, the default IP address of 10.0.0.220 is set in the line `string spikeSafeIpAddress = "10.0.0.220";`.
36+
37+
Each file can be modified to include additional settings and commands to fit individual needs. Refer to SpikeSafe documentation for more information on the SpikeSafe API.
38+
39+
Most examples will log messages to the Vektrex.SpikeSafe.CSharp.Samples.log file under your local \bin\Debug\net48\ directory. Please refer to this file to ensure your sample is running correctly.
40+
41+
## Downloading Files
42+
43+
On this page, press "Clone or download" to download all files in this repository. We recommend saving this repository to your working directory for all other GitHub repositories.
44+
45+
## Where Do I Start?
46+
47+
First start with [TCP Socket Sample](/src/Vektrex.SpikeSafe.CSharp.Samples/GettingStarted/TcpSocketSample) to learn how setup a simple socket to communicate with your SpikeSafe. Then check out the rest of the samples under [Getting Started](GettingStarted).
48+
49+
## Built With
50+
51+
* [Visual Studio Code](https://code.visualstudio.com/)
52+
* [.NET Framework 4.8 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net48)
53+
54+
## Versioning
55+
56+
We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/VektrexElectronicSystems/Vektrex.SpikeSafe.CSharp.Samples/tags).
57+
58+
## Support/Feedback
59+
60+
If any further assistance is needed beyond the information provided within this repository, email [email protected].
61+
62+
Feature requests and bug reports can be submitted to [the Vektrex website's support page](https://www.vektrex.com/request-support/). Select "Other" as the Product/System and enter "GitHub Repository" as the Subject.
63+
64+
## Contributors
65+
66+
* **Eljay Gemoto** - [eljayg](https://github.com/eljayg)
67+
68+
## License
69+
70+
Vektrex.SpikeSafe.CSharp.Samples is licensed under the MIT license, which allows for non-commercial and commercial use.

SpikeSafeCSharpSamples.sln

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26124.0
5+
MinimumVisualStudioVersion = 15.0.26124.0
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{89131658-C50D-48B8-A582-2EF9DBD45E06}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vektrex.SpikeSafe.CSharp.Samples", "src\Vektrex.SpikeSafe.CSharp.Samples\Vektrex.SpikeSafe.CSharp.Samples.csproj", "{17779173-4C6A-4D7A-B352-7B7C54C16E55}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Debug|x64 = Debug|x64
14+
Debug|x86 = Debug|x86
15+
Release|Any CPU = Release|Any CPU
16+
Release|x64 = Release|x64
17+
Release|x86 = Release|x86
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
23+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
24+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Debug|x64.ActiveCfg = Debug|Any CPU
26+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Debug|x64.Build.0 = Debug|Any CPU
27+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Debug|x86.ActiveCfg = Debug|Any CPU
28+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Debug|x86.Build.0 = Debug|Any CPU
29+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Release|Any CPU.ActiveCfg = Release|Any CPU
30+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Release|Any CPU.Build.0 = Release|Any CPU
31+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Release|x64.ActiveCfg = Release|Any CPU
32+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Release|x64.Build.0 = Release|Any CPU
33+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Release|x86.ActiveCfg = Release|Any CPU
34+
{17779173-4C6A-4D7A-B352-7B7C54C16E55}.Release|x86.Build.0 = Release|Any CPU
35+
EndGlobalSection
36+
GlobalSection(NestedProjects) = preSolution
37+
{17779173-4C6A-4D7A-B352-7B7C54C16E55} = {89131658-C50D-48B8-A582-2EF9DBD45E06}
38+
EndGlobalSection
39+
EndGlobal

src/SpikeSafeCSharpSamples/GettingStarted/TcpSample.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/SpikeSafeCSharpSamples/Program.cs

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/SpikeSafeCSharpSamples/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/SpikeSafeCSharpSamples/SpikeSafeCSharpSamples.csproj

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)