Skip to content

Commit f43e970

Browse files
Add PDO Injector plugin
1 parent bcb6104 commit f43e970

File tree

11 files changed

+1006
-0
lines changed

11 files changed

+1006
-0
lines changed

CanMonitor/CanMonitor.sln

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "can_null_win32", "..\libCan
4949
EndProject
5050
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "can_nanomsg_win32", "..\libCanOpenSimple2\canfestivaldrivers\can_nanomsg_win32\can_nanomsg_win32.vc10.vcxproj", "{D9B806EB-CF03-4410-9678-5D2C5F470BA1}"
5151
EndProject
52+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PDOInjector", "PDOInjector\PDOInjector.csproj", "{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}"
53+
EndProject
5254
Global
5355
GlobalSection(SolutionConfigurationPlatforms) = preSolution
5456
Debug UNICODE|Any CPU = Debug UNICODE|Any CPU
@@ -417,6 +419,30 @@ Global
417419
{D9B806EB-CF03-4410-9678-5D2C5F470BA1}.Release|Mixed Platforms.Build.0 = Release|Win32
418420
{D9B806EB-CF03-4410-9678-5D2C5F470BA1}.Release|x86.ActiveCfg = Release|Win32
419421
{D9B806EB-CF03-4410-9678-5D2C5F470BA1}.Release|x86.Build.0 = Release|Win32
422+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|Any CPU.ActiveCfg = Debug|Any CPU
423+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|Any CPU.Build.0 = Debug|Any CPU
424+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|Mixed Platforms.ActiveCfg = Debug|Any CPU
425+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|Mixed Platforms.Build.0 = Debug|Any CPU
426+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|x86.ActiveCfg = Debug|Any CPU
427+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug UNICODE|x86.Build.0 = Debug|Any CPU
428+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
429+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|Any CPU.Build.0 = Debug|Any CPU
430+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
431+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
432+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|x86.ActiveCfg = Debug|Any CPU
433+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Debug|x86.Build.0 = Debug|Any CPU
434+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|Any CPU.ActiveCfg = Release|Any CPU
435+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|Any CPU.Build.0 = Release|Any CPU
436+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|Mixed Platforms.ActiveCfg = Release|Any CPU
437+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|Mixed Platforms.Build.0 = Release|Any CPU
438+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|x86.ActiveCfg = Release|Any CPU
439+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release UNICODE|x86.Build.0 = Release|Any CPU
440+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|Any CPU.ActiveCfg = Release|Any CPU
441+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|Any CPU.Build.0 = Release|Any CPU
442+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
443+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|Mixed Platforms.Build.0 = Release|Any CPU
444+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|x86.ActiveCfg = Release|Any CPU
445+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621}.Release|x86.Build.0 = Release|Any CPU
420446
EndGlobalSection
421447
GlobalSection(SolutionProperties) = preSolution
422448
HideSolutionNode = FALSE
@@ -434,6 +460,7 @@ Global
434460
{16C74D91-F858-4A70-9641-9228D80A24C0} = {B9AE808B-52B4-48EC-B38D-C8EFB2C567C6}
435461
{D8A23079-A479-4E0E-9777-32EEF436549D} = {B9AE808B-52B4-48EC-B38D-C8EFB2C567C6}
436462
{D9B806EB-CF03-4410-9678-5D2C5F470BA1} = {B9AE808B-52B4-48EC-B38D-C8EFB2C567C6}
463+
{5D2E0351-CFCF-4D32-8602-FC6CEB5F0621} = {99749F1B-19E6-4731-BA65-728BBEFF16E7}
437464
EndGlobalSection
438465
GlobalSection(ExtensibilityGlobals) = postSolution
439466
SolutionGuid = {4E770007-ED1C-460D-ACFC-9DD702614DA7}

CanMonitor/CanMonitor/autoload.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
NMTPlugin.dll
22
eeprom_plugin.dll
33
SDOEditorPlugin.dll
4+
PDOInjector.dll

CanMonitor/PDOInjector/PDOForm.Designer.cs

Lines changed: 208 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CanMonitor/PDOInjector/PDOForm.cs

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Data;
5+
using System.Drawing;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows.Forms;
10+
using libCanopenSimple;
11+
12+
namespace PDOInjector
13+
{
14+
public partial class PDOForm : Form
15+
{
16+
libCanopenSimple.libCanopenSimple lco;
17+
public PDOForm(libCanopenSimple.libCanopenSimple lco)
18+
{
19+
this.lco = lco;
20+
21+
InitializeComponent();
22+
pdoValue1.sendpdo += PdoValue_sendpdo;
23+
pdoValue2.sendpdo += PdoValue_sendpdo;
24+
pdoValue3.sendpdo += PdoValue_sendpdo;
25+
pdoValue4.sendpdo += PdoValue_sendpdo;
26+
27+
}
28+
29+
private void PdoValue_sendpdo(object sender, EventArgs e)
30+
{
31+
PDOValue p = (PDOValue)sender;
32+
lco.writePDO(p.cob, p.data);
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)