Skip to content

Commit

Permalink
Add example session.data structure for labjack acq process
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJKoopman committed Oct 27, 2023
1 parent f9af7f6 commit 79053a9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions socs/agents/labjack/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,24 @@ def acq(self, session, params=None):
sampling_frequency (float):
Sampling frequency for data collection. Defaults to 2.5 Hz.
Notes:
An example of the session data is shown below. The keys in the
'data' dictionary correspond with configured channels from the
``active_channels`` attribute::
>>> response.session['data']
{
"block_name": "sens",
"data": {
"AIN0V": 0.0015984050696715713,
"FIO0V": 1,
"FIO1V": 1,
"AIN55V": 0.00033546771737746894,
"AIN116V": 0.000019733395674847998,
},
"timestamp": 1698439453.8471205
}
"""
if params is None:
params = {}
Expand Down

0 comments on commit 79053a9

Please sign in to comment.