Accepted [MNScript RFC] Device library additions

This suggestion has been accepted for future development.
Status
Not open for further replies.

Summary​

Add new functions to the Device library.
  • Device.DeviceCount() - Returns the amount of devices connected to the hub
  • Device.DeviceCountType(string type) - Returns the amount of devices of specified type connect to the hub
  • Device.Find<TYPE>s() - Returns array of devices of TYPE connected to the device hub

Motivation​

Currently its not possible to dynamically query connected device since they required a unique name even if it didnt require one. This RFC aims to mitigate that by allowing a developer to query all connected devices of a type without the need to change their name to match the exact name set in the code using the toolgun.

Drawbacks​


I do not see drawbacks myself, but if anyone else sees any, I will update this post.
 
Status
Not open for further replies.