Workflow Description#
Please refer to the Bonsai Language Guide to develop a foundation in Bonsai before proceeding.
Produce UCLA Miniscope v4 Data#
The
UCLAMiniscopeV4
node represents aUCLAMiniscopeV4
operator. TheUCLAMiniscopeV4
operator is a source operator as indicated by its node’s green color and the orientation of its grey arc. Source operators produce data.The
UCLAMiniscopeV4
operator’s output (Bonsai.Miniscope.V4Frame
) has four members. They can be accessed by right-clicking theUCLAMiniscopeV4
node and hovering the cursor over the Output option in the pop-up menu. Left-clicking on one of these members automatically places a newMemberSelector
nodes. These nodes can also be placed by searching modules in the search bar in the Toolbox pane or the using theCtrl+E
hotkey.The
MemberSelector
operators are transform operators as indicated by the nodes’ blue color and lack of grey bar. Transform operators transform data. TheMemberSelector
operator transforms data by selecting one or multiple members of its input to output.In this workflow,
Quarternion
,FrameNumber
, andImage
members are selected fromBonsai.Miniscope.V4Frame
to be passed to two divergent branches.
Save Image Data#
The
Image
node connects to aVideoWriter
node. TheVideoWriter
operator writes data to a video file according to settings in the Properties pane that appears after left-clicking theVideoWriter
node.The
VideoWriter
operator is a sink operator as indicated by the node’s purple color and the orientation of its grey arc. A sink operator saves data or triggers external events.
Save Timestamped Quarternion Data#
The
FrameNumber, Quarternion
node connects to theTimestamp
node. TheTimestamp
operator appends timestamps to items that are emitted by the upstream operator.The
Timestamp
node connects to theCsvWriter
node. TheCsvWriter
operator writes data to a csv file according to settings in the Properties pane that appears after left-clicking theCsvWriter
node.
To continue learning using the UCLA Miniscope v4 and Miniscope-DAQ in Bonsai, refer to the Trigger Workflow Description