Skip to content

Commit 9b87933

Browse files
fallensbourdeauducq
authored andcommittedApr 21, 2015
pxi6733: add ndsp documentation
1 parent e27844e commit 9b87933

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
 

Diff for: ‎doc/manual/ndsp_reference.rst

+50
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,54 @@ Controller
127127
:prog: thorlabs_controller
128128

129129

130+
NI PXI6733
131+
----------
132+
133+
PXI6733 controller usage example
134+
++++++++++++++++++++++++++++++++
135+
136+
This controller has only been tested on Windows so far.
137+
138+
To use this controller you need first to install the NI-DAQmx driver
139+
from http://www.ni.com/downloads/ni-drivers/f/.
140+
141+
Then you also need to install PyDAQmx python module::
142+
143+
$ git clone https://github.com/clade/PyDAQmx
144+
$ cd PyDAQmx
145+
$ C:\Python34\Tools\Scripts\2to3.py -w .
146+
$ python setup.py build
147+
$ python setup.py install
148+
149+
Then, you can run the PXI6733 controller::
150+
151+
$ pxi6733_controller -d Dev1
152+
153+
Then, send a load_sample_values command to it via the ``artiq_rpctool`` utility::
154+
155+
$ artiq_rpctool ::1 3256 list-targets
156+
Target(s): pxi6733
157+
$ artiq_rpctool ::1 3256 call load_sample_values 'np.array([1.0, 2.0, 3.0, 4.0], dtype=float)'
158+
159+
This loads 4 voltage values as a numpy float array: 1.0 V, 2.0 V, 3.0 V, 4.0 V
160+
161+
Then the device is set up to output those samples at each rising edge of the clock.
162+
163+
Driver
164+
++++++
165+
166+
.. automodule:: artiq.devices.pxi6733.driver
167+
:members:
168+
169+
Controller
170+
++++++++++
171+
172+
Usage example
173+
174+
.. argparse::
175+
:ref: artiq.frontend.pxi6733_controller.get_argparser
176+
:prog: pxi6733_controller
177+
130178
Default TCP port list
131179
---------------------
132180

@@ -147,3 +195,5 @@ When writing a new NDSP, choose a free TCP port and add it to this list.
147195
+--------------------------+--------------+
148196
| Thorlabs T-Cube | 3255 |
149197
+--------------------------+--------------+
198+
| NI PXI6733 | 3256 |
199+
+--------------------------+--------------+

0 commit comments

Comments
 (0)
Please sign in to comment.