5.4. Data Viewers

These modules are to be used to display various type of data and helps you manipulate these using scaling, ROI, measurements… They are mostly used within the main modules of PyMoDAQ but can also be used as building blocks for custom application. In that sense, DAQ Viewer and DAQ Move can also be used as building blocks to control actuators and display datas in a custom application.

5.4.1. 0D Viewer


Fig. 5.20 0D viewer data display

5.4.2. 1D Viewer


Fig. 5.21 1D viewer data display

5.4.3. 2D Viewer


Fig. 5.22 2D viewer data display

5.4.4. ND Viewer

A ND viewer is a display object that can represent 0D, 1D, 2D, 3D or 4D data. It is a combination of 2 Viewers (up: navigation viewer and bottom: signal viewer, see panels of Fig. 5.23) and use the concept of signal axis and navigation axis. Let’s say you want to represent a previously acquired 2D scan where each of the pixels in the scan is actually data from a camera (2D). It then means that you have 2 navigation axis (the ones of the scan) and two signal axis (the ones of the camera) and 4D data to deal with. The way to plot them is to represent the scan on a navigation 2D viewer where each pixel intensity is the result of the integration of the actual data taken at this pixel (or within a ROI that you can select, see white rectangle on Fig. 5.23 bottom panel). Moving the crosshair on the navigation panel change the display in the signal panel in order to show the data within the pixel pointed by the crosshair.


Fig. 5.23 ND viewer data display

ND viewer is mostly used by the H5Browser (and sometimes by the DAQ_Viewer) to display data saved with PyMoDAQ, a few metadata attributes written in the h5file nodes (see From DAQ_Scan) tells the NDViewer how to display acquired scans. If, for some reasons, you want to display your 4D data in another way (that is changing which dimension is navigation and which is signal), you can press the axes button on the top viewer and change the navigation axes on the popup window it opened.