JS utilities for Event Markers with serial ports
The package can be installed via npm from github.
npm install https://github.com/brown-ccv/event-marker.git
Arguments:
- vendorId - string - character string identifying the vendor
- productId - string - character string identifying the product OR
- comName - string - character string identifying the com name
Returns:
- boolean - whether there is a port associated with the device
Arguments:
- vendorId - string - character string identifying the vendor
- productId - string - character string identifying the product OR
- comName - string - character string identifying the com name
Returns:
- SerialPort - port object where device is connected
Arguments:
- port - SerialPort - port object where device is connected
- event_code - string - character string to be written to the port
Returns:
- nothing
Parallel Ports