VL Integration for Phidgets Try with the visual live-programming environment for .NET Download: http://visualprogramming.net
To use the latest stable version:
- Go to Gamma's Quad menu > Manage Nugets > Commandline and type:
nuget install VL.Devices.Phidgets -pre
- Press Enter and wait the ending of the installation process
- Open the Help Menu (F1). Open the tap "Learn". Search for the pack "Devices.Phidgets"
Feel free to clone the repro an add missing Phidget devices. Also you can make a pull request or send me the patch over any digital communication cannel.
There are a huge List of Phidget devices and classes. So there was no time to add all devices to the package or to do it via factory pattern etc. (Phidget API)
The important operation are bundles via processes, so it is easy to add new nodes to the package.
- Clone the repository and open the VL.Devices.Phidgets.vl document
- Open the definition patch (Shift+Alt+A)
- Add a process node with the name of the Phidget class you want to add like "Accelerometer"
- Open the process "Accelerometer" and add the "Create" operation of the Accelerometer class
- Assign the node to the "Create" operation via context menu
- Store the instance of the class in a pad with the name of the class.
- Every class extends the Phidget class to handle basic operation like open and close. To add these basic phidget operation to the accelerometer, we add the predefined Phidget process and extend the Inputs and Outputs.
- If necessary you can add the operation for "Hub" or "Sensor" process with their predefined operation.
- Every Sensor comes with its own Event and EventArgs to send data from device to the computer. This has to implemented by its own, but always follows the same structure.
- There are class related set operations for the devices. Add the set operations to the patch. The operation should only be applied it if the phidget is attached and the pin is changed.
- Create a help patch into the help/Phidgets folder with the scheme "HowTo [ClassName]" and add your node and test and set the default pin settings so that everything works like expected.
Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.