Download LabOne Programming Manual
Transcript
3.2. Getting Started with the LabOne Matlab API % example_sweeper_rstddev_fixedbw % % % example_sweeper_two_demods % % % example_zoomfft % % % EXAMPLES/UHF - Examples specific to % uhf_example_boxcar % % uhf_example_scope % % % EXAMPLES/HF2 - Examples specific to % hf2_example_poll_hardware_trigger % % hf2_example_scope % % hf2_example_autorange % - Perform a frequency sweep plotting the stddev in demodulator output R using ziDAQ's sweep module - Perform a frequency sweep saving data from 2 demodulators using ziDAQ's sweep module - Perform an FFT using ziDAQ's zoomFFT module the UHF Series Record boxcar data using ziDAQServer's synchronous poll function Record scope data using ziDAQServer's synchronous poll function the HF2 Series - Poll demodulator data in combination with a HW trigger - Record scope data using ziDAQServer's synchronous poll function - determine and set an appropriate range for a sigin channel Note On Windows the MEX-file is called either ziDAQ.mexw64 or ziDAQ.mexw32 for 64-bit and 32bit platforms respectively and on Linux it is called ziDAQ.mexa64 or ziDAQ.mexa32. If more than one MEX-file is present, Matlab automatically selects the correct MEX-file for the current platform. 3.2.2. Using the Built-in Documentation To access ziDAQ's documentation within Matlab, type either of the following in the Matlab Command Window: >> help ziDAQ >> doc ziDAQ This documentation is located in the file MATLAB2012/Driver/ziDAQ.m. See Section 3.5 , LabOne Matlab API (ziDAQ) Command Reference for a printer friendly version. 3.2.3. Running the Examples Prerequisites for running the Matlab examples: 1. Matlab is configured for ziDAQ as described above in Section 3.1 . 2. The Data Server program is running and the instrument is connected to the Data Server. See Section 1.1.1 and the User Manual specific to the instrument for more help connecting. 3. Signal Output 1 of the instrument is connected to Signal Input 1 via a BNC cable; many of the Matlab examples measure on this hardware channel. LabOne Programming Manual Revision 28870 Zurich Instruments 46