You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/devices/ni_daqs.rst
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,19 @@ The python bindings are provided by the PyDAQmx package, available through pip.
17
17
Adding a Device
18
18
~~~~~~~~~~~~~~~
19
19
20
-
While the `NI_DAQmx` device can be used directly by manually specifying the many necessary parameters, it is preferable to add the device via an appropriate subclass. This process is greatly simplified by using the `get_capabilities.py` script.
20
+
While the `NI_DAQmx` device can be used directly by manually specifying the many necessary parameters,
21
+
it is preferable to add the device via an appropriate subclass.
22
+
This process is greatly simplified by using the :mod:`get_capabilities.py <labscript_devices.NI_DAQmx.models.get_capabilities>` script
23
+
followed by the :mod:`generate_subclasses.py <labscript_devices.NI_DAQmx.models.generate_subclasses>` script.
21
24
22
25
To add support for a DAQmx device that is not yet supported, run `get_capabilities.py` on
23
26
a computer with the device in question connected (or with a simulated device of the
24
27
correct model configured in NI-MAX). This will introspect the capabilities of the device
25
-
and add those details to capabilities.json. To generate labscript device classes for all
26
-
devices whose capabilities are known, run `generate_classes.py`. Subclasses of NI_DAQmx
28
+
and add those details to `capabilities.json`. To generate labscript device classes for all
29
+
devices whose capabilities are known, run `generate_subclasses.py`. Subclasses of NI_DAQmx
27
30
will be made in the `models` subfolder, and they can then be imported into labscript code with:
28
31
29
-
..code-block:: python
32
+
..code-block:: python
30
33
31
34
from labscript_devices.NI_DAQmx.labscript_devices importNI_PCIe_6363
0 commit comments