Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
yzeyang

Junior Member
Registered:
Posts: 14
Reply with quote  #1 
Hi Jaewon,

I have a rather naive question here. 

In order to save user-defined variables to the bhv file, in my understanding, we can use "bhv_variable()", which needs to be run in the _runtime.m file.

What would be the suggested way to save a variable directly from the adapters in one scene?

For example, for the CurveTracer.m, if I'd like to create a variable to store the "frametimes at which each target position was updated" and then save it somehow to bhv.

In general, could you also illustrate the best practice how to extract the status/variables/parameters of a scene (at scene completion)?

Many thanks!

Best,
Zeyang
0
Jaewon

Administrator
Registered:
Posts: 873
Reply with quote  #2 
Add new properties to the adapter (see ext\ADAPTER_TEMPLATE.m) and assign values to the properties inside the adapter. Then read the properties after run_scene() or save them with bhv_variable() as in the following post.

http://forums.monkeylogic.org/post/time-stamp-saving-behavioral-outputs-and-using-two-daqs-10090949?pid=1308136633
0
yzeyang

Junior Member
Registered:
Posts: 14
Reply with quote  #3 
Quote:
Originally Posted by Jaewon
Add new properties to the adapter and assign values to the properties in the adapter. Then read the properties after run_scene() or save them with bhv_variable() as in the following post.

http://forums.monkeylogic.org/post/time-stamp-saving-behavioral-outputs-and-using-two-daqs-10090949?pid=1308136633


Ah! Gotcha. 

Thank you! 
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.