I've installed the new nds2 packages on the control room machines.
These new packages include some new and improved interfaces for python, matlab, and octave that were not previously available. See the documentation in:
/usr/share/doc/nds2-client-doc/html/index.html
for details on how to use them. They all work something like:
conn = nds2.connection('fb', 8088)
chans = conn.findChannels()
buffers = conn.fetch(t1, t2, {c1,...})
data = buffers(1).getData()
NOTE: the new interface for python is distinct from the one provided by pynds. The old pynds interface should continue to work, though.
To use the new matlab interface, you have to first issue the following command:
javaaddpath('/usr/lib/java')
I'll try to figure out a way to have that included automatically.
The old Matlab mex functions (NDS*_GetData, NDS*_GetChannel, etc.) are now provided by a new and improved package. Those should now work "out of the box". |