This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CoordinateSystem> { Z-up } | |
<Comment> { "Egg laid by Chicken for Blender, version R85" } | |
<Material> Material { | |
<Scalar> diffr {0.800000011921} | |
<Scalar> diffg {0.800000011921} | |
<Scalar> diffb {0.800000011921} | |
<Scalar> specr {0.25} | |
<Scalar> specg {0.25} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Get an existing object: | |
my_event = gnode.get(g, 'event_19'); | |
my_event.name % -> An event | |
% Change object: | |
my_event.name = 'An updated event'; | |
% Update: | |
my_event = get_updated(g, my_event); | |
my_event.name % -> An updated event |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Set up our new object locally: | |
my_object = gnode.new_object(g, 'analogsignal', 'name', 'My shiny new object', ... | |
't_start', struct('units', 'ms', 'data', 0), ... | |
'sampling_rate', struct('units', 'Hz', 'data', 10000), ... | |
'signal', struct('units', 'mV', 'data', [10 10.2]); | |
% Create and upload: | |
my_new_object = gnode.get_created(g, my_object); | |
% Share with others: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Set up our new object locally: | |
my_object = gnode.new_object(g, 'analogsignal', 'name', 'My shiny new object', ... | |
't_start', struct('units', 'ms', 'data', 0), ... | |
'sampling_rate', struct('units', 'Hz', 'data', 10000), ... | |
'signal', struct('units', 'mV', 'data', [10 10.2]); | |
% Create and upload: | |
my_new_object = gnode.get_created(g, my_object); | |
% Share with others: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Get all nested structures: | |
my_dataset = gnode.get_cascade(g, 'block_2'); | |
my_dataset.segment_set.segment_1.name % My segment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Retrieve a specific segment: | |
my_segment = gnode.get(g, 'segment_4'); | |
my_segment.name % My segment | |
my_segment.description % A segment containing things | |
my_segment.analogsignal_set % {'analogsignal_1', 'analogsignal_3', 'analogsignal_432'} | |
% Get associated signals: | |
my_signals = gnode.get_all(g, my_segment.analogsignal_set); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Displays a list of available blocks: | |
gnode.browse(g, 'block'); | |
% Retrieve a list of available segments: | |
segments = gnode.get_list(g, 'segment'); | |
% segments: {'segment_1', 'segment_2', 'segment_6', ...} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Displays a list of available blocks: | |
gnode.browse(g, 'block'); | |
% Retrieve a list of available segments: | |
segments = gnode.get_list(g, 'segment'); | |
% segments: {'segment_1', 'segment_2', 'segment_6', ...} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gfsdafgdsafdsafdsa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Start a new session: | |
g = gnode.init('/path/to/configuration.json'); | |
gnode.status(g); | |
gnode.shutdown(g); |
NewerOlder