OAT readyagent AwtDaObject

Hello,

sorry for the delay. What you want it is to send correlated data. So you need to use Correlated containers:
Those containers enable transport of structured correlated list of values. This means that all variables are synchronous and that the lists have the same number of values. Moreover if the data needs to be time stamped, a timestamp column can be added.

Here a short example with delta but you can do the same by pushing the full value (you can look at the API doc in the plugin help in the Developer Studio):

// Create data container for room2 "living-room"
AWT_HL_DataContainer_Create(&pDataContRoom2, ROOM2_PATH);
 
// Data to send: 16,17,18,17,19
// Create firstValue object
firstValue = AWT_Int32_New(16);
 
// Create the delta values
delta1 = AWT_Int32_New(1);
delta2 = AWT_Int32_New(1);
delta3 = AWT_Int32_New(-1);
delta4 = AWT_Int32_New(2);
 
// Create the list to store delta values
delta_list = AWT_List_New();
 
// Add the delta to the delta list
AWT_List_AddItem(delta_list, delta1);
AWT_List_AddItem(delta_list, delta2);
AWT_List_AddItem(delta_list, delta3);
AWT_List_AddItem(delta_list, delta4);
 
// Add the periodic deltas to the container
AWT_HL_DataContainer_AddPeriodicDeltas(pDataContRoom2, ROOM2_DATA_NAME,
     CURRENT, period, firstValue, delta_list);