diff --git a/Phidgets/OutputAssemblies/Phidgets/Data/DefaultAssets/DefaultMinimized.png b/Phidgets/OutputAssemblies/Phidgets/Data/DefaultAssets/DefaultMinimized.png new file mode 100644 index 0000000..aea7cdc Binary files /dev/null and b/Phidgets/OutputAssemblies/Phidgets/Data/DefaultAssets/DefaultMinimized.png differ diff --git a/Phidgets/OutputAssemblies/Phidgets/Phidget21.NET.dll b/Phidgets/OutputAssemblies/Phidgets/Phidget21.NET.dll new file mode 100644 index 0000000..cbc2f1c Binary files /dev/null and b/Phidgets/OutputAssemblies/Phidgets/Phidget21.NET.dll differ diff --git a/Phidgets/OutputAssemblies/Phidgets/Phidget888.dll b/Phidgets/OutputAssemblies/Phidgets/Phidget888.dll new file mode 100644 index 0000000..ce2019a Binary files /dev/null and b/Phidgets/OutputAssemblies/Phidgets/Phidget888.dll differ diff --git a/Phidgets/OutputAssemblies/Phidgets/Phidget888.ifd b/Phidgets/OutputAssemblies/Phidgets/Phidget888.ifd new file mode 100644 index 0000000..43383a0 --- /dev/null +++ b/Phidgets/OutputAssemblies/Phidgets/Phidget888.ifd @@ -0,0 +1,203 @@ +{ + "kind": "discovery#restDescription", + "discoveryVersion": "v1", + "id": "Phidget888", + "name": "Phidget888", + "if.category": "Internet of Things", + "version": "1.0", + "protocol": "dll", + "baseUrl": null, + "basePath": "Phidget888", + "auth": {}, + "dependencies": [ + "Phidget888.dll", + "Phidget21.NET.dll" + ], + "icons": { + "x32": "phidget_icon.png" + }, + "schemas": { + "Phidget888": { + "id": "Phidget888", + "type": "object", + "properties": { + "Input_0": { + "title": "Logical Input 0", + "type": "boolean", + "readonly": true + }, + "Input_1": { + "title": "Logical Input 1", + "type": "boolean", + "readonly": true + }, + "Input_2": { + "title": "Logical Input 2", + "type": "boolean", + "readonly": true + }, + "Input_3": { + "title": "Logical Input 3", + "type": "boolean", + "readonly": true + }, + "Input_4": { + "title": "Logical Input 4", + "type": "boolean", + "readonly": true + }, + "Input_5": { + "title": "Logical Input 5", + "type": "boolean", + "readonly": true + }, + "Input_6": { + "title": "Logical Input 6", + "type": "boolean", + "readonly": true + }, + "Input_7": { + "title": "Logical Input 7", + "type": "boolean", + "readonly": true + }, + "AnalogSensor_0": { + "title": "Analog Sensor 0", + "type": "integer", + "readonly": true + }, + "AnalogSensor_1": { + "title": "Analog Sensor 1", + "type": "integer", + "readonly": true + }, + "AnalogSensor_2": { + "title": "Analog Sensor 2", + "type": "integer", + "readonly": true + }, + "AnalogSensor_3": { + "title": "Analog Sensor 3", + "type": "integer", + "readonly": true + }, + "AnalogSensor_4": { + "title": "Analog Sensor 4", + "type": "integer", + "readonly": true + }, + "AnalogSensor_5": { + "title": "Analog Sensor 5", + "type": "integer", + "readonly": true + }, + "AnalogSensor_6": { + "title": "Analog Sensor 6", + "type": "integer", + "readonly": true + }, + "AnalogSensor_7": { + "title": "Analog Sensor 7", + "type": "integer", + "readonly": true + } + } + } + }, + "resources": { + "Phidget888": { + "title": "Phidget 8-8-8", + "isInterfaceAsset": true, + "if.templateDesignAccelerator": "Template_for_phidget.dax", + "methods": { + "SetOutput": { + "title": "Set logical output", + "description": "Set logical output with a true or false value", + "parameters": { + "outputIndex_": { + "type": "integer", + "title": "Output index", + "description": "Output index between 0 and 7", + "required": true + }, + "bvalue_": { + "type": "boolean", + "title": "Value", + "description": "True or false value", + "required": true + } + }, + "response": { + "type": "null" + } + } + }, + "events": { + "Button0Pressed": { + "title": "Button 0 pressed", + "if.category": "Phidget/Button 0" + }, + "Button0Released": { + "title": "Button 0 released", + "if.category": "Phidget/Button 0" + }, + "Button1Pressed": { + "title": "Button 1 pressed", + "if.category": "Phidget/Button 1" + }, + "Button1Released": { + "title": "Button 1 released", + "if.category": "Phidget/Button 1" + }, + "Button2Pressed": { + "title": "Button 2 pressed", + "if.category": "Phidget/Button 2" + }, + "Button2Released": { + "title": "Button 2 released", + "if.category": "Phidget/Button 2" + }, + "Button3Pressed": { + "title": "Button 3 pressed", + "if.category": "Phidget/Button 3" + }, + "Button3Released": { + "title": "Button 3 released", + "if.category": "Phidget/Button 3" + }, + "Button4Pressed": { + "title": "Button 4 pressed", + "if.category": "Phidget/Button 4" + }, + "Button4Released": { + "title": "Button 4 released", + "if.category": "Phidget/Button 4" + }, + "Button5Pressed": { + "title": "Button 5 pressed", + "if.category": "Phidget/Button 5" + }, + "Button5Released": { + "title": "Button 5 released", + "if.category": "Phidget/Button 5" + }, + "Button6Pressed": { + "title": "Button 6 pressed", + "if.category": "Phidget/Button 6" + }, + "Button6Released": { + "title": "Button 6 released", + "if.category": "Phidget/Button 6" + }, + "Button7Pressed": { + "title": "Button 7 pressed", + "if.category": "Phidget/Button 7" + }, + "Button7Released": { + "title": "Button 7 released", + "if.category": "Phidget/Button 7" + } + } + } + } +} \ No newline at end of file diff --git a/Phidgets/OutputAssemblies/Phidgets/Template_for_phidget.dax b/Phidgets/OutputAssemblies/Phidgets/Template_for_phidget.dax new file mode 100644 index 0000000..2409275 --- /dev/null +++ b/Phidgets/OutputAssemblies/Phidgets/Template_for_phidget.dax @@ -0,0 +1,1193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Phidgets/OutputAssemblies/Phidgets/Template_for_phidget.png b/Phidgets/OutputAssemblies/Phidgets/Template_for_phidget.png new file mode 100644 index 0000000..d212682 Binary files /dev/null and b/Phidgets/OutputAssemblies/Phidgets/Template_for_phidget.png differ diff --git a/Phidgets/OutputAssemblies/Phidgets/phidget_icon.png b/Phidgets/OutputAssemblies/Phidgets/phidget_icon.png new file mode 100644 index 0000000..f0b9750 Binary files /dev/null and b/Phidgets/OutputAssemblies/Phidgets/phidget_icon.png differ diff --git a/Phidgets/Phidget888/Data/DefaultAssets/DefaultMinimized.png b/Phidgets/Phidget888/Data/DefaultAssets/DefaultMinimized.png new file mode 100644 index 0000000..aea7cdc Binary files /dev/null and b/Phidgets/Phidget888/Data/DefaultAssets/DefaultMinimized.png differ diff --git a/Phidgets/Phidget888/Phidget888.cs b/Phidgets/Phidget888/Phidget888.cs new file mode 100644 index 0000000..d9d722d --- /dev/null +++ b/Phidgets/Phidget888/Phidget888.cs @@ -0,0 +1,542 @@ +// **************************************************************************** +// +// INTUILAB CONFIDENTIAL +//_____________________ +// [2002] - [2015] IntuiLab SA +// All Rights Reserved. +// NOTICE: All information contained herein is, and remains +// the property of IntuiLab SA. The intellectual and technical +// concepts contained herein are proprietary to IntuiLab SA +// and may be covered by U.S. and other country Patents, patents +// in process, and are protected by trade secret or copyright law. +// Dissemination of this information or reproduction of this +// material is strictly forbidden unless prior written permission +// is obtained from IntuiLab SA. +// +// **************************************************************************** + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.ComponentModel; +using Phidgets; +using Phidgets.Events; + +namespace Phidget888 +{ + internal class PhidgetController + { + #region Instance + + private static PhidgetController _instance = null; + + public static PhidgetController Instance + { + get + { + if (_instance == null) + { + _instance = new PhidgetController(); + } + + return _instance; + } + } + + #endregion + + #region Attributes + + //Declare an InterfaceKit object + private InterfaceKit ifk; + + private int m_iWatchers = 0; + + #endregion + + #region Events + + public event InputChangeEventHandler InputChange; + public event SensorChangeEventHandler SensorChange; + + #endregion + + #region Methods + + + internal void Init() + { + ifk = new InterfaceKit(); + //Open the object for device connections + ifk.open(); + + //To listen to logical input (button pressed / released + ifk.InputChange += new InputChangeEventHandler(ifk_InputChange); + + //NOT USED IN THIS PROJECT: analog input + ifk.SensorChange += new SensorChangeEventHandler(ifk_SensorChange); + + //NOT USED IN THIS PROJECT: logical output + //ifk.OutputChange += new OutputChangeEventHandler(ifk_OutputChange); + } + + void ifk_SensorChange(object sender, SensorChangeEventArgs e) + { + if (SensorChange != null) + SensorChange(this, e); + } + + + + + void ifk_InputChange(object sender, InputChangeEventArgs e) + { + if (InputChange != null) + InputChange(this, e); + } + + internal void AddInstanceWatcher() + { + m_iWatchers++; + if (m_iWatchers == 1) + Init(); + } + + internal void RemoveInstanceWatcher() + { + m_iWatchers--; + if (m_iWatchers == 0) + { + if (ifk != null) + { + ifk.InputChange -= ifk_InputChange; + ifk.close(); + + } + } + } + + #endregion + + internal void SetOuput(int outputIndex_, bool bValue_) + { + if (0 <= outputIndex_ && outputIndex_ < ifk.outputs.Count) + { + ifk.outputs[outputIndex_] = bValue_; + } + } + } + + public class Phidget888 : INotifyPropertyChanged, IDisposable + { + #region Internal properties + + private PhidgetController m_refController; + + private bool m_Intput_0 = false; + private bool m_Intput_1 = false; + private bool m_Intput_2 = false; + private bool m_Intput_3 = false; + private bool m_Intput_4 = false; + private bool m_Intput_5 = false; + private bool m_Intput_6 = false; + private bool m_Intput_7 = false; + + private int m_iAnalogSensor_0 = 0, m_iAnalogSensor_1 = 0, m_iAnalogSensor_2 = 0, m_iAnalogSensor_3 = 0, m_iAnalogSensor_4 = 0, m_iAnalogSensor_5 = 0, m_iAnalogSensor_6 = 0, m_iAnalogSensor_7 = 0; + + #endregion + + #region Property + + public bool Input_0 + { + get { return m_Intput_0; } + set + { + if (m_Intput_0 != value) + { + m_Intput_0 = value; + NotifyPropertyChanged("Input_0"); + } + } + } + + public bool Input_1 + { + get { return m_Intput_1; } + set + { + if (m_Intput_1 != value) + { + m_Intput_1 = value; + NotifyPropertyChanged("Input_1"); + } + } + } + + public bool Input_2 + { + get { return m_Intput_2; } + set + { + if (m_Intput_2 != value) + { + m_Intput_2 = value; + NotifyPropertyChanged("Input_2"); + } + } + } + + public bool Input_3 + { + get { return m_Intput_3; } + set + { + if (m_Intput_3 != value) + { + m_Intput_3 = value; + NotifyPropertyChanged("Input_3"); + } + } + } + + public bool Input_4 + { + get { return m_Intput_4; } + set + { + if (m_Intput_4 != value) + { + m_Intput_4 = value; + NotifyPropertyChanged("Input_4"); + } + } + } + + public bool Input_5 + { + get { return m_Intput_5; } + set + { + if (m_Intput_5 != value) + { + m_Intput_5 = value; + NotifyPropertyChanged("Input_5"); + } + } + } + + public bool Input_6 + { + get { return m_Intput_6; } + set + { + if (m_Intput_6 != value) + { + m_Intput_6 = value; + NotifyPropertyChanged("Input_6"); + } + } + } + + public bool Input_7 + { + get { return m_Intput_7; } + set + { + if (m_Intput_7 != value) + { + m_Intput_7 = value; + NotifyPropertyChanged("Input_7"); + } + } + } + + + + public int AnalogSensor_0 + { + get { return m_iAnalogSensor_0; } + set + { + if (m_iAnalogSensor_0 != value) + { + m_iAnalogSensor_0 = value; + NotifyPropertyChanged("AnalogSensor_0"); + } + } + } + + public int AnalogSensor_1 + { + get { return m_iAnalogSensor_1; } + set + { + if (m_iAnalogSensor_1 != value) + { + m_iAnalogSensor_1 = value; + NotifyPropertyChanged("AnalogSensor_1"); + } + } + } + + public int AnalogSensor_2 + { + get { return m_iAnalogSensor_2; } + set + { + if (m_iAnalogSensor_2 != value) + { + m_iAnalogSensor_2 = value; + NotifyPropertyChanged("AnalogSensor_2"); + } + } + } + + public int AnalogSensor_3 + { + get { return m_iAnalogSensor_3; } + set + { + if (m_iAnalogSensor_3 != value) + { + m_iAnalogSensor_3 = value; + NotifyPropertyChanged("AnalogSensor_3"); + } + } + } + + public int AnalogSensor_4 + { + get { return m_iAnalogSensor_4; } + set + { + if (m_iAnalogSensor_4 != value) + { + m_iAnalogSensor_4 = value; + NotifyPropertyChanged("AnalogSensor_4"); + } + } + } + + public int AnalogSensor_5 + { + get { return m_iAnalogSensor_5; } + set + { + if (m_iAnalogSensor_5 != value) + { + m_iAnalogSensor_5 = value; + NotifyPropertyChanged("AnalogSensor_5"); + } + } + } + + public int AnalogSensor_6 + { + get { return m_iAnalogSensor_6; } + set + { + if (m_iAnalogSensor_6 != value) + { + m_iAnalogSensor_6 = value; + NotifyPropertyChanged("AnalogSensor_6"); + } + } + } + + public int AnalogSensor_7 + { + get { return m_iAnalogSensor_7; } + set + { + if (m_iAnalogSensor_7 != value) + { + m_iAnalogSensor_7 = value; + NotifyPropertyChanged("AnalogSensor_7"); + } + } + } + + + + #endregion + + #region Events + + public event EventHandler Button0Pressed; + public event EventHandler Button0Released; + + public event EventHandler Button1Pressed; + public event EventHandler Button1Released; + + public event EventHandler Button2Pressed; + public event EventHandler Button2Released; + + public event EventHandler Button3Pressed; + public event EventHandler Button3Released; + + public event EventHandler Button4Pressed; + public event EventHandler Button4Released; + + public event EventHandler Button5Pressed; + public event EventHandler Button5Released; + + public event EventHandler Button6Pressed; + public event EventHandler Button6Released; + + public event EventHandler Button7Pressed; + public event EventHandler Button7Released; + + #endregion + + #region Constructor + + public Phidget888() + { + + m_refController = PhidgetController.Instance; + m_refController.AddInstanceWatcher(); + + m_refController.InputChange += new InputChangeEventHandler(m_refController_InputChange); + m_refController.SensorChange += new SensorChangeEventHandler(m_refController_SensorChange); + } + + + + public void Dispose() + { + if (m_refController != null) + { + m_refController.InputChange -= m_refController_InputChange; + m_refController.RemoveInstanceWatcher(); + } + } + + public void SetOutput(int outputIndex_, bool bValue_) + { + m_refController.SetOuput(outputIndex_, bValue_); + } + + #endregion + + #region INotifyPropertyChanged + + public event PropertyChangedEventHandler PropertyChanged; + + private void NotifyPropertyChanged(String info) + { + if (PropertyChanged != null) + { + PropertyChanged(this, new PropertyChangedEventArgs(info)); + } + } + + #endregion + + #region callbacks + + void m_refController_InputChange(object sender, InputChangeEventArgs e) + { + switch (e.Index) + { + case 0: + Input_0 = e.Value; + if (Input_0 && Button0Pressed != null) + Button0Pressed(this, null); + if (!Input_0 && Button0Released != null) + Button0Released(this, null); + break; + case 1: + Input_1 = e.Value; + if (Input_1 && Button1Pressed != null) + Button1Pressed(this, null); + if (!Input_1 && Button1Released != null) + Button1Released(this, null); + break; + case 2: + Input_2 = e.Value; + if (Input_2 && Button2Pressed != null) + Button2Pressed(this, null); + if (!Input_2 && Button2Released != null) + Button2Released(this, null); + break; + case 3: + Input_3 = e.Value; + if (Input_3 && Button3Pressed != null) + Button3Pressed(this, null); + if (!Input_3 && Button3Released != null) + Button3Released(this, null); + break; + case 4: + Input_4 = e.Value; + if (Input_4 && Button4Pressed != null) + Button4Pressed(this, null); + if (!Input_4 && Button4Released != null) + Button4Released(this, null); + break; + case 5: + Input_5 = e.Value; + if (Input_5 && Button5Pressed != null) + Button5Pressed(this, null); + if (!Input_5 && Button5Released != null) + Button5Released(this, null); + break; + case 6: + Input_6 = e.Value; + if (Input_6 && Button6Pressed != null) + Button6Pressed(this, null); + if (!Input_6 && Button6Released != null) + Button6Released(this, null); + break; + case 7: + Input_7 = e.Value; + if (Input_7 && Button7Pressed != null) + Button7Pressed(this, null); + if (!Input_7 && Button7Released != null) + Button7Released(this, null); + break; + default: + break; + } + + } + + void m_refController_SensorChange(object sender, SensorChangeEventArgs e) + { + switch (e.Index) + { + case 0: + AnalogSensor_0 = e.Value; + break; + case 1: + AnalogSensor_1 = e.Value; + break; + case 2: + AnalogSensor_2 = e.Value; + break; + case 3: + AnalogSensor_3 = e.Value; + break; + case 4: + AnalogSensor_4 = e.Value; + break; + case 5: + AnalogSensor_5 = e.Value; + break; + case 6: + AnalogSensor_6 = e.Value; + break; + case 7: + AnalogSensor_7 = e.Value; + break; + default: + break; + } + } + + #endregion + + } +} diff --git a/Phidgets/Phidget888/Phidget888.csproj b/Phidgets/Phidget888/Phidget888.csproj new file mode 100644 index 0000000..bf68aaf --- /dev/null +++ b/Phidgets/Phidget888/Phidget888.csproj @@ -0,0 +1,75 @@ + + + + Debug + AnyCPU + 8.0.30703 + 2.0 + {4EB27DCB-7BBF-4B0F-984D-6279398C3929} + Library + Properties + Phidget888 + Phidget888 + v4.0 + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + False + ..\ThirdParty\Phidget21.NET.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + xcopy /S /Y /i "$(ProjectDir)bin\$(ConfigurationName)\*.dll" "$(SolutionDir)OutputAssemblies\Phidgets\" +xcopy /S /Y /i "$(ProjectDir)*.ifd" "$(SolutionDir)OutputAssemblies\Phidgets\" +xcopy /S /Y /i "$(ProjectDir)*.dax" "$(SolutionDir)OutputAssemblies\Phidgets\" +xcopy /S /Y /i "$(ProjectDir)*.png" "$(SolutionDir)OutputAssemblies\Phidgets\" + + + + \ No newline at end of file diff --git a/Phidgets/Phidget888/Phidget888.ifd b/Phidgets/Phidget888/Phidget888.ifd new file mode 100644 index 0000000..43383a0 --- /dev/null +++ b/Phidgets/Phidget888/Phidget888.ifd @@ -0,0 +1,203 @@ +{ + "kind": "discovery#restDescription", + "discoveryVersion": "v1", + "id": "Phidget888", + "name": "Phidget888", + "if.category": "Internet of Things", + "version": "1.0", + "protocol": "dll", + "baseUrl": null, + "basePath": "Phidget888", + "auth": {}, + "dependencies": [ + "Phidget888.dll", + "Phidget21.NET.dll" + ], + "icons": { + "x32": "phidget_icon.png" + }, + "schemas": { + "Phidget888": { + "id": "Phidget888", + "type": "object", + "properties": { + "Input_0": { + "title": "Logical Input 0", + "type": "boolean", + "readonly": true + }, + "Input_1": { + "title": "Logical Input 1", + "type": "boolean", + "readonly": true + }, + "Input_2": { + "title": "Logical Input 2", + "type": "boolean", + "readonly": true + }, + "Input_3": { + "title": "Logical Input 3", + "type": "boolean", + "readonly": true + }, + "Input_4": { + "title": "Logical Input 4", + "type": "boolean", + "readonly": true + }, + "Input_5": { + "title": "Logical Input 5", + "type": "boolean", + "readonly": true + }, + "Input_6": { + "title": "Logical Input 6", + "type": "boolean", + "readonly": true + }, + "Input_7": { + "title": "Logical Input 7", + "type": "boolean", + "readonly": true + }, + "AnalogSensor_0": { + "title": "Analog Sensor 0", + "type": "integer", + "readonly": true + }, + "AnalogSensor_1": { + "title": "Analog Sensor 1", + "type": "integer", + "readonly": true + }, + "AnalogSensor_2": { + "title": "Analog Sensor 2", + "type": "integer", + "readonly": true + }, + "AnalogSensor_3": { + "title": "Analog Sensor 3", + "type": "integer", + "readonly": true + }, + "AnalogSensor_4": { + "title": "Analog Sensor 4", + "type": "integer", + "readonly": true + }, + "AnalogSensor_5": { + "title": "Analog Sensor 5", + "type": "integer", + "readonly": true + }, + "AnalogSensor_6": { + "title": "Analog Sensor 6", + "type": "integer", + "readonly": true + }, + "AnalogSensor_7": { + "title": "Analog Sensor 7", + "type": "integer", + "readonly": true + } + } + } + }, + "resources": { + "Phidget888": { + "title": "Phidget 8-8-8", + "isInterfaceAsset": true, + "if.templateDesignAccelerator": "Template_for_phidget.dax", + "methods": { + "SetOutput": { + "title": "Set logical output", + "description": "Set logical output with a true or false value", + "parameters": { + "outputIndex_": { + "type": "integer", + "title": "Output index", + "description": "Output index between 0 and 7", + "required": true + }, + "bvalue_": { + "type": "boolean", + "title": "Value", + "description": "True or false value", + "required": true + } + }, + "response": { + "type": "null" + } + } + }, + "events": { + "Button0Pressed": { + "title": "Button 0 pressed", + "if.category": "Phidget/Button 0" + }, + "Button0Released": { + "title": "Button 0 released", + "if.category": "Phidget/Button 0" + }, + "Button1Pressed": { + "title": "Button 1 pressed", + "if.category": "Phidget/Button 1" + }, + "Button1Released": { + "title": "Button 1 released", + "if.category": "Phidget/Button 1" + }, + "Button2Pressed": { + "title": "Button 2 pressed", + "if.category": "Phidget/Button 2" + }, + "Button2Released": { + "title": "Button 2 released", + "if.category": "Phidget/Button 2" + }, + "Button3Pressed": { + "title": "Button 3 pressed", + "if.category": "Phidget/Button 3" + }, + "Button3Released": { + "title": "Button 3 released", + "if.category": "Phidget/Button 3" + }, + "Button4Pressed": { + "title": "Button 4 pressed", + "if.category": "Phidget/Button 4" + }, + "Button4Released": { + "title": "Button 4 released", + "if.category": "Phidget/Button 4" + }, + "Button5Pressed": { + "title": "Button 5 pressed", + "if.category": "Phidget/Button 5" + }, + "Button5Released": { + "title": "Button 5 released", + "if.category": "Phidget/Button 5" + }, + "Button6Pressed": { + "title": "Button 6 pressed", + "if.category": "Phidget/Button 6" + }, + "Button6Released": { + "title": "Button 6 released", + "if.category": "Phidget/Button 6" + }, + "Button7Pressed": { + "title": "Button 7 pressed", + "if.category": "Phidget/Button 7" + }, + "Button7Released": { + "title": "Button 7 released", + "if.category": "Phidget/Button 7" + } + } + } + } +} \ No newline at end of file diff --git a/Phidgets/Phidget888/Properties/AssemblyInfo.cs b/Phidgets/Phidget888/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b0ec5f6 --- /dev/null +++ b/Phidgets/Phidget888/Properties/AssemblyInfo.cs @@ -0,0 +1,53 @@ + // **************************************************************************** + // + // INTUILAB CONFIDENTIAL + //_____________________ + // [2002] - [2015] IntuiLab SA + // All Rights Reserved. + // NOTICE: All information contained herein is, and remains + // the property of IntuiLab SA. The intellectual and technical + // concepts contained herein are proprietary to IntuiLab SA + // and may be covered by U.S. and other country Patents, patents + // in process, and are protected by trade secret or copyright law. + // Dissemination of this information or reproduction of this + // material is strictly forbidden unless prior written permission + // is obtained from IntuiLab SA. + // + // **************************************************************************** + +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Les informations générales relatives à un assembly dépendent de +// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations +// associées à un assembly. +[assembly: AssemblyTitle("Phidget888")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("intuilab")] +[assembly: AssemblyProduct("Phidget888")] +[assembly: AssemblyCopyright("Copyright © intuilab 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly +// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de +// COM, affectez la valeur true à l'attribut ComVisible sur ce type. +[assembly: ComVisible(false)] + +// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM +[assembly: Guid("c9563f06-668d-4985-b07d-960782afc38c")] + +// Les informations de version pour un assembly se composent des quatre valeurs suivantes : +// +// Version principale +// Version secondaire +// Numéro de build +// Révision +// +// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut +// en utilisant '*', comme indiqué ci-dessous : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Phidgets/Phidget888/Template_for_phidget.dax b/Phidgets/Phidget888/Template_for_phidget.dax new file mode 100644 index 0000000..2409275 --- /dev/null +++ b/Phidgets/Phidget888/Template_for_phidget.dax @@ -0,0 +1,1193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Phidgets/Phidget888/Template_for_phidget.png b/Phidgets/Phidget888/Template_for_phidget.png new file mode 100644 index 0000000..d212682 Binary files /dev/null and b/Phidgets/Phidget888/Template_for_phidget.png differ diff --git a/Phidgets/Phidget888/bin/Debug/Phidget21.NET.dll b/Phidgets/Phidget888/bin/Debug/Phidget21.NET.dll new file mode 100644 index 0000000..cbc2f1c Binary files /dev/null and b/Phidgets/Phidget888/bin/Debug/Phidget21.NET.dll differ diff --git a/Phidgets/Phidget888/bin/Debug/Phidget888.dll b/Phidgets/Phidget888/bin/Debug/Phidget888.dll new file mode 100644 index 0000000..77e316f Binary files /dev/null and b/Phidgets/Phidget888/bin/Debug/Phidget888.dll differ diff --git a/Phidgets/Phidget888/bin/Debug/Phidget888.pdb b/Phidgets/Phidget888/bin/Debug/Phidget888.pdb new file mode 100644 index 0000000..d4b83f8 Binary files /dev/null and b/Phidgets/Phidget888/bin/Debug/Phidget888.pdb differ diff --git a/Phidgets/Phidget888/bin/Release/Phidget21.NET.dll b/Phidgets/Phidget888/bin/Release/Phidget21.NET.dll new file mode 100644 index 0000000..cbc2f1c Binary files /dev/null and b/Phidgets/Phidget888/bin/Release/Phidget21.NET.dll differ diff --git a/Phidgets/Phidget888/bin/Release/Phidget888.dll b/Phidgets/Phidget888/bin/Release/Phidget888.dll new file mode 100644 index 0000000..ce2019a Binary files /dev/null and b/Phidgets/Phidget888/bin/Release/Phidget888.dll differ diff --git a/Phidgets/Phidget888/bin/Release/Phidget888.pdb b/Phidgets/Phidget888/bin/Release/Phidget888.pdb new file mode 100644 index 0000000..9a03816 Binary files /dev/null and b/Phidgets/Phidget888/bin/Release/Phidget888.pdb differ diff --git a/Phidgets/Phidget888/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Phidgets/Phidget888/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..10f6129 Binary files /dev/null and b/Phidgets/Phidget888/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Phidgets/Phidget888/obj/Debug/Phidget.csproj.FileListAbsolute.txt b/Phidgets/Phidget888/obj/Debug/Phidget.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..89c36ef --- /dev/null +++ b/Phidgets/Phidget888/obj/Debug/Phidget.csproj.FileListAbsolute.txt @@ -0,0 +1,10 @@ +D:\DevWPF\IntuiFace\trunk\source\InterfaceAssets\Phidget\Phidget\bin\Debug\Phidget.dll +D:\DevWPF\IntuiFace\trunk\source\InterfaceAssets\Phidget\Phidget\bin\Debug\Phidget.pdb +D:\DevWPF\IntuiFace\trunk\source\InterfaceAssets\Phidget\Phidget\obj\Debug\ResolveAssemblyReference.cache +D:\DevWPF\IntuiFace\trunk\source\InterfaceAssets\Phidget\Phidget\obj\Debug\Phidget.dll +D:\DevWPF\IntuiFace\trunk\source\InterfaceAssets\Phidget\Phidget\obj\Debug\Phidget.pdb +D:\DevWPF\IntuiFace\trunk\source\InterfaceAssets\Phidget\Phidget\bin\Debug\Phidget21.NET.dll +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\bin\Debug\Phidget.dll +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\bin\Debug\Phidget.pdb +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\obj\Debug\Phidget.dll +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\obj\Debug\Phidget.pdb diff --git a/Phidgets/Phidget888/obj/Debug/Phidget.dll b/Phidgets/Phidget888/obj/Debug/Phidget.dll new file mode 100644 index 0000000..ccc8dc4 Binary files /dev/null and b/Phidgets/Phidget888/obj/Debug/Phidget.dll differ diff --git a/Phidgets/Phidget888/obj/Debug/Phidget.pdb b/Phidgets/Phidget888/obj/Debug/Phidget.pdb new file mode 100644 index 0000000..345080f Binary files /dev/null and b/Phidgets/Phidget888/obj/Debug/Phidget.pdb differ diff --git a/Phidgets/Phidget888/obj/Debug/Phidget888.csproj.FileListAbsolute.txt b/Phidgets/Phidget888/obj/Debug/Phidget888.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..e346ab6 --- /dev/null +++ b/Phidgets/Phidget888/obj/Debug/Phidget888.csproj.FileListAbsolute.txt @@ -0,0 +1,17 @@ +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\bin\Debug\Phidget888.dll +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\bin\Debug\Phidget888.pdb +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\obj\Debug\Phidget888.csprojResolveAssemblyReference.cache +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\obj\Debug\Phidget888.dll +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\Phidget\obj\Debug\Phidget888.pdb +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\Phidget888\bin\Debug\Phidget888.dll +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\Phidget888\bin\Debug\Phidget888.pdb +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\Phidget888\obj\Debug\Phidget888.csprojResolveAssemblyReference.cache +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\Phidget888\obj\Debug\Phidget888.dll +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\Phidget888\obj\Debug\Phidget888.pdb +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\Phidget888\bin\Debug\Phidget21.NET.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\bin\Debug\Phidget888.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\bin\Debug\Phidget888.pdb +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\bin\Debug\Phidget21.NET.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\obj\Debug\Phidget888.csprojResolveAssemblyReference.cache +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\obj\Debug\Phidget888.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\obj\Debug\Phidget888.pdb diff --git a/Phidgets/Phidget888/obj/Debug/Phidget888.csprojResolveAssemblyReference.cache b/Phidgets/Phidget888/obj/Debug/Phidget888.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..48efb03 Binary files /dev/null and b/Phidgets/Phidget888/obj/Debug/Phidget888.csprojResolveAssemblyReference.cache differ diff --git a/Phidgets/Phidget888/obj/Debug/Phidget888.dll b/Phidgets/Phidget888/obj/Debug/Phidget888.dll new file mode 100644 index 0000000..77e316f Binary files /dev/null and b/Phidgets/Phidget888/obj/Debug/Phidget888.dll differ diff --git a/Phidgets/Phidget888/obj/Debug/Phidget888.pdb b/Phidgets/Phidget888/obj/Debug/Phidget888.pdb new file mode 100644 index 0000000..d4b83f8 Binary files /dev/null and b/Phidgets/Phidget888/obj/Debug/Phidget888.pdb differ diff --git a/Phidgets/Phidget888/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache b/Phidgets/Phidget888/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..0d3a2a6 Binary files /dev/null and b/Phidgets/Phidget888/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Phidgets/Phidget888/obj/Release/Phidget888.csproj.FileListAbsolute.txt b/Phidgets/Phidget888/obj/Release/Phidget888.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..7db3a52 --- /dev/null +++ b/Phidgets/Phidget888/obj/Release/Phidget888.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\bin\Release\Phidget888.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\bin\Release\Phidget888.pdb +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\bin\Release\Phidget21.NET.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\obj\Release\Phidget888.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\obj\Release\Phidget888.pdb +C:\WorkGIT\GitHub-Phidgets\Phidgets\Phidget888\obj\Release\Phidget888.csprojResolveAssemblyReference.cache diff --git a/Phidgets/Phidget888/obj/Release/Phidget888.csprojResolveAssemblyReference.cache b/Phidgets/Phidget888/obj/Release/Phidget888.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..2e64bf7 Binary files /dev/null and b/Phidgets/Phidget888/obj/Release/Phidget888.csprojResolveAssemblyReference.cache differ diff --git a/Phidgets/Phidget888/obj/Release/Phidget888.dll b/Phidgets/Phidget888/obj/Release/Phidget888.dll new file mode 100644 index 0000000..ce2019a Binary files /dev/null and b/Phidgets/Phidget888/obj/Release/Phidget888.dll differ diff --git a/Phidgets/Phidget888/obj/Release/Phidget888.pdb b/Phidgets/Phidget888/obj/Release/Phidget888.pdb new file mode 100644 index 0000000..9a03816 Binary files /dev/null and b/Phidgets/Phidget888/obj/Release/Phidget888.pdb differ diff --git a/Phidgets/Phidget888/phidget_icon.png b/Phidgets/Phidget888/phidget_icon.png new file mode 100644 index 0000000..f0b9750 Binary files /dev/null and b/Phidgets/Phidget888/phidget_icon.png differ diff --git a/Phidgets/Phidgets.sln b/Phidgets/Phidgets.sln new file mode 100644 index 0000000..27b351b --- /dev/null +++ b/Phidgets/Phidgets.sln @@ -0,0 +1,42 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Phidget888", "Phidget888\Phidget888.csproj", "{4EB27DCB-7BBF-4B0F-984D-6279398C3929}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestPhidget", "TestPhidget\TestPhidget.csproj", "{BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Debug|x86.ActiveCfg = Debug|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Release|Any CPU.Build.0 = Release|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {4EB27DCB-7BBF-4B0F-984D-6279398C3929}.Release|x86.ActiveCfg = Release|Any CPU + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Debug|Any CPU.ActiveCfg = Debug|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Debug|Mixed Platforms.Build.0 = Debug|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Debug|x86.ActiveCfg = Debug|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Debug|x86.Build.0 = Debug|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Release|Any CPU.ActiveCfg = Release|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Release|Mixed Platforms.ActiveCfg = Release|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Release|Mixed Platforms.Build.0 = Release|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Release|x86.ActiveCfg = Release|x86 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Phidgets/Phidgets.suo b/Phidgets/Phidgets.suo new file mode 100644 index 0000000..cb3fc20 Binary files /dev/null and b/Phidgets/Phidgets.suo differ diff --git a/Phidgets/TestPhidget/App.config b/Phidgets/TestPhidget/App.config new file mode 100644 index 0000000..f2ba6e4 --- /dev/null +++ b/Phidgets/TestPhidget/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Phidgets/TestPhidget/Program.cs b/Phidgets/TestPhidget/Program.cs new file mode 100644 index 0000000..4a4852e --- /dev/null +++ b/Phidgets/TestPhidget/Program.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace TestPhidget +{ + class Program + { + static Phidget888.Phidget888 p; + + static void Main(string[] args) + { + p = new Phidget888.Phidget888(); + p.Button0Pressed += new EventHandler(p_Button0Pressed); + p.Button0Released += new EventHandler(p_Button0Released); + p.Button1Pressed += new EventHandler(p_Button1Pressed); + p.Button1Released += new EventHandler(p_Button1Released); + + Console.WriteLine("Enter 'q' to quit"); + while (true) + { + string s = Console.ReadLine(); + if (s == "q") + break; + } + } + + static void p_Button1Released(object sender, EventArgs e) + { + p.SetOutput(1, false); + } + + static void p_Button1Pressed(object sender, EventArgs e) + { + p.SetOutput(1, true); + } + + static void p_Button0Released(object sender, EventArgs e) + { + Console.WriteLine("Button 0 Released"); + p.SetOutput(0, false); + } + + static void p_Button0Pressed(object sender, EventArgs e) + { + Console.WriteLine("Button 0 Pressed"); + p.SetOutput(0, true); + } + } +} diff --git a/Phidgets/TestPhidget/Properties/AssemblyInfo.cs b/Phidgets/TestPhidget/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..53a8a5b --- /dev/null +++ b/Phidgets/TestPhidget/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Les informations générales relatives à un assembly dépendent de +// l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations +// associées à un assembly. +[assembly: AssemblyTitle("TestPhidget")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("intuilab")] +[assembly: AssemblyProduct("TestPhidget")] +[assembly: AssemblyCopyright("Copyright © intuilab 2015")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly +// aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de +// COM, affectez la valeur true à l'attribut ComVisible sur ce type. +[assembly: ComVisible(false)] + +// Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM +[assembly: Guid("f48c92ad-0fb5-45a1-b072-0e7995c32277")] + +// Les informations de version pour un assembly se composent des quatre valeurs suivantes : +// +// Version principale +// Version secondaire +// Numéro de build +// Révision +// +// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut +// en utilisant '*', comme indiqué ci-dessous : +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Phidgets/TestPhidget/TestPhidget.csproj b/Phidgets/TestPhidget/TestPhidget.csproj new file mode 100644 index 0000000..3df387e --- /dev/null +++ b/Phidgets/TestPhidget/TestPhidget.csproj @@ -0,0 +1,66 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {BC8F5189-5D5A-4ECA-8D86-770A1BCF7521} + Exe + Properties + TestPhidget + TestPhidget + v4.0.1 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + {4EB27DCB-7BBF-4B0F-984D-6279398C3929} + Phidget888 + + + + + \ No newline at end of file diff --git a/Phidgets/TestPhidget/bin/Debug/Phidget888.dll b/Phidgets/TestPhidget/bin/Debug/Phidget888.dll new file mode 100644 index 0000000..20bf87a Binary files /dev/null and b/Phidgets/TestPhidget/bin/Debug/Phidget888.dll differ diff --git a/Phidgets/TestPhidget/bin/Debug/Phidget888.pdb b/Phidgets/TestPhidget/bin/Debug/Phidget888.pdb new file mode 100644 index 0000000..c3b0260 Binary files /dev/null and b/Phidgets/TestPhidget/bin/Debug/Phidget888.pdb differ diff --git a/Phidgets/TestPhidget/bin/Debug/TestPhidget.exe b/Phidgets/TestPhidget/bin/Debug/TestPhidget.exe new file mode 100644 index 0000000..2f0c775 Binary files /dev/null and b/Phidgets/TestPhidget/bin/Debug/TestPhidget.exe differ diff --git a/Phidgets/TestPhidget/bin/Debug/TestPhidget.exe.config b/Phidgets/TestPhidget/bin/Debug/TestPhidget.exe.config new file mode 100644 index 0000000..f2ba6e4 --- /dev/null +++ b/Phidgets/TestPhidget/bin/Debug/TestPhidget.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Phidgets/TestPhidget/bin/Debug/TestPhidget.pdb b/Phidgets/TestPhidget/bin/Debug/TestPhidget.pdb new file mode 100644 index 0000000..f01593d Binary files /dev/null and b/Phidgets/TestPhidget/bin/Debug/TestPhidget.pdb differ diff --git a/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe b/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe differ diff --git a/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe.config b/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe.config new file mode 100644 index 0000000..f2ba6e4 --- /dev/null +++ b/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe.manifest b/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/Phidgets/TestPhidget/bin/Debug/TestPhidget.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Phidgets/TestPhidget/bin/Release/Phidget888.dll b/Phidgets/TestPhidget/bin/Release/Phidget888.dll new file mode 100644 index 0000000..ce2019a Binary files /dev/null and b/Phidgets/TestPhidget/bin/Release/Phidget888.dll differ diff --git a/Phidgets/TestPhidget/bin/Release/Phidget888.pdb b/Phidgets/TestPhidget/bin/Release/Phidget888.pdb new file mode 100644 index 0000000..9a03816 Binary files /dev/null and b/Phidgets/TestPhidget/bin/Release/Phidget888.pdb differ diff --git a/Phidgets/TestPhidget/bin/Release/TestPhidget.exe b/Phidgets/TestPhidget/bin/Release/TestPhidget.exe new file mode 100644 index 0000000..62654c1 Binary files /dev/null and b/Phidgets/TestPhidget/bin/Release/TestPhidget.exe differ diff --git a/Phidgets/TestPhidget/bin/Release/TestPhidget.exe.config b/Phidgets/TestPhidget/bin/Release/TestPhidget.exe.config new file mode 100644 index 0000000..f2ba6e4 --- /dev/null +++ b/Phidgets/TestPhidget/bin/Release/TestPhidget.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Phidgets/TestPhidget/bin/Release/TestPhidget.pdb b/Phidgets/TestPhidget/bin/Release/TestPhidget.pdb new file mode 100644 index 0000000..85cecbe Binary files /dev/null and b/Phidgets/TestPhidget/bin/Release/TestPhidget.pdb differ diff --git a/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe b/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe differ diff --git a/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe.config b/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe.config new file mode 100644 index 0000000..f2ba6e4 --- /dev/null +++ b/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe.manifest b/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe.manifest new file mode 100644 index 0000000..061c9ca --- /dev/null +++ b/Phidgets/TestPhidget/bin/Release/TestPhidget.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Phidgets/TestPhidget/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Phidgets/TestPhidget/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..b7bdb59 Binary files /dev/null and b/Phidgets/TestPhidget/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.csproj.FileListAbsolute.txt b/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..936d09a --- /dev/null +++ b/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.csproj.FileListAbsolute.txt @@ -0,0 +1,24 @@ +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\TestPhidget\bin\Debug\TestPhidget.exe.config +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\TestPhidget\bin\Debug\TestPhidget.exe +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\TestPhidget\bin\Debug\TestPhidget.pdb +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\TestPhidget\obj\x86\Debug\TestPhidget.csprojResolveAssemblyReference.cache +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\TestPhidget\obj\x86\Debug\TestPhidget.exe +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\TestPhidget\obj\x86\Debug\TestPhidget.pdb +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\TestPhidget\bin\Debug\Phidget888.dll +C:\Work\Projects\AVV\SAP\Bootstrap\Phidget\TestPhidget\bin\Debug\Phidget888.pdb +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\TestPhidget\bin\Debug\TestPhidget.exe.config +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\TestPhidget\obj\x86\Debug\TestPhidget.exe +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\TestPhidget\obj\x86\Debug\TestPhidget.pdb +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\TestPhidget\obj\x86\Debug\TestPhidget.csprojResolveAssemblyReference.cache +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\TestPhidget\bin\Debug\TestPhidget.exe +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\TestPhidget\bin\Debug\TestPhidget.pdb +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\TestPhidget\bin\Debug\Phidget888.dll +C:\WorkGIT\IntuiFace\IntuiFace\InterfaceAssets\CSharp\Phidget\TestPhidget\bin\Debug\Phidget888.pdb +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Debug\TestPhidget.exe.config +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Debug\TestPhidget.exe +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Debug\TestPhidget.pdb +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Debug\Phidget888.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Debug\Phidget888.pdb +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\obj\x86\Debug\TestPhidget.csprojResolveAssemblyReference.cache +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\obj\x86\Debug\TestPhidget.exe +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\obj\x86\Debug\TestPhidget.pdb diff --git a/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.csprojResolveAssemblyReference.cache b/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..c897cbe Binary files /dev/null and b/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.csprojResolveAssemblyReference.cache differ diff --git a/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.exe b/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.exe new file mode 100644 index 0000000..2f0c775 Binary files /dev/null and b/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.exe differ diff --git a/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.pdb b/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.pdb new file mode 100644 index 0000000..f01593d Binary files /dev/null and b/Phidgets/TestPhidget/obj/x86/Debug/TestPhidget.pdb differ diff --git a/Phidgets/TestPhidget/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache b/Phidgets/TestPhidget/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..4d10016 Binary files /dev/null and b/Phidgets/TestPhidget/obj/x86/Release/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.csproj.FileListAbsolute.txt b/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..95cce9c --- /dev/null +++ b/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Release\TestPhidget.exe.config +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Release\TestPhidget.exe +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Release\TestPhidget.pdb +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Release\Phidget888.dll +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\bin\Release\Phidget888.pdb +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\obj\x86\Release\TestPhidget.csprojResolveAssemblyReference.cache +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\obj\x86\Release\TestPhidget.exe +C:\WorkGIT\GitHub-Phidgets\Phidgets\TestPhidget\obj\x86\Release\TestPhidget.pdb diff --git a/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.csprojResolveAssemblyReference.cache b/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.csprojResolveAssemblyReference.cache new file mode 100644 index 0000000..4733d18 Binary files /dev/null and b/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.csprojResolveAssemblyReference.cache differ diff --git a/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.exe b/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.exe new file mode 100644 index 0000000..62654c1 Binary files /dev/null and b/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.exe differ diff --git a/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.pdb b/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.pdb new file mode 100644 index 0000000..85cecbe Binary files /dev/null and b/Phidgets/TestPhidget/obj/x86/Release/TestPhidget.pdb differ diff --git a/Phidgets/ThirdParty/Phidget21.NET.dll b/Phidgets/ThirdParty/Phidget21.NET.dll new file mode 100644 index 0000000..cbc2f1c Binary files /dev/null and b/Phidgets/ThirdParty/Phidget21.NET.dll differ diff --git a/README.md b/README.md index 6c87644..b8d992e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,49 @@ -# PhidgetsIA -Phidgets Interface Asset for IntuiFace +# Phidgets Interface Assets for IntuiFace + +This project contains Phidgets Interface Asset for IntuiFace Player & IntuiFace Composer. + +The [Phidgets](http://www.phidgets.com//) Interface Asset enable you to communicate with Phidgets sensors and controllers from an IntuiFace experience. +This Interface Asset was developped to communicate with an [8/8/8 Interface Kit](http://www.phidgets.com/products.php?category=0&product_id=1018_2), meaning it handles: +* 8 Logical inputs (ex: a button) +* 8 Analog inputs (ex: distance sensor) +* 8 Logical outputs (ex: a LED) + +![Phidgets Board 8/8/8](Screenshots/Phidgets-board888.jpg "Phidgets Board" "width:350px") + + +It comes with a default Design Accelerator that will enable you to test your Phidget Interface Kit within IntuiFace Composer quickly. + +For more information, check the online documentation for [using Phidgets within IntuiFace](http://support.intuilab.com/kb/a-quick-overview/using-phidgets-within-intuiface) + +![Phidgets Default Design Accelerator](Screenshots/Phidget-DA.jpg "Phidgets Design Accelerator" "width:350px") + +# How to build this project? + +**PREREQUISITES**: you must have Visual Studio 2010 and .NET 4 installed. + +The code language for Phidgets Interface Assets is C#. + +To build this project, follow these steps: +* Open **Phidgets.sln** in Visual Studio 2010 or above, +* Build the solution in **Release** mode, +* Navigate to the root of the project, you can see a folder called **OutputAssemblies** which contains all the Phidgets Interface Assets. + +# How to use Phidgets Interface Assets? + +To be able to add Phidgets Interface Assets in IntuiFace Composer, follow these steps: +* Copy the **Phidgets** folder from the **OutputAssemblies** to the path "[Drive]:\Users\\[UserName]\Documents\IntuiFace\Interface Assets", +* Launch **IntuiFace Composer**, +* Add an Interface Asset and when you enter "Phidget" in the search bar, you can see the **Phidget 8-8-8** Interface Asset. + + + +See more information on our support webpage: [using Phidgets within IntuiFace](http://support.intuilab.com/kb/a-quick-overview/using-phidgets-within-intuiface) + +----- + +Copyright © 2015 IntuiLab. + +Released under the **MIT License**. + + + diff --git a/Screenshots/Phidget-DA.jpg b/Screenshots/Phidget-DA.jpg new file mode 100644 index 0000000..382d541 Binary files /dev/null and b/Screenshots/Phidget-DA.jpg differ diff --git a/Screenshots/Phidgets-board888.jpg b/Screenshots/Phidgets-board888.jpg new file mode 100644 index 0000000..45ddb43 Binary files /dev/null and b/Screenshots/Phidgets-board888.jpg differ