This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28379D: Writing data from GUI Composer to global array on microcontorller

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: TMS320F28379D

Hello,

I would like to know how to write array of data from javascript GUI Composer to TMS320F28379D microcontroller global variable. I tried to do this with  gc.databind.registry.bind method (see the code below), but no succes.

gc.databind.registry.bind('widget.ti_widget_linegraph1.series_0_values',"MainSignal",
// getter function
function(value)
{
console.log(value)

return value;
},
//setter funtion
function(value)
{
console.log(value)

return content.split(',').map(Number); //Array of 400 elements i want to write
}
);

Console message for upper code:

getter function console log:
(400) [0.900000036, 0.903876603, 0.90764761, 0.9113065, 0.91484642, 0.918260992, 0.921543479, 0.924687505, 0.927686632, 0.93053472, 0.933225751, 0.935753644, 0.938112497, 0.940296829, 
0.942301035, 0.94411993, 0.945748329, 0.947181404, 0.948414326, 0.949442923, 0.950262785, 0.950869858, 0.951260567, 0.951431572, 0.951379359, 0.951101184, 0.950594366, 0.94985652,
0.94888562, 0.947679996, 0.946237922, 0.944558322, 0.942640424, 0.94048357, 0.938087463, 0.935452282, 0.932578325, 0.929466248, 0.926117003, 0.922531903, 0.918712497, 0.914660811,
0.910378933, 0.905869424, 0.901135027, 0.896178901, 0.891004324, 0.885614872, 0.880014479, 0.874207497, 0.868198097, 0.861991107, 0.855591357, 0.849004209, 0.842234731, 0.835288584,
0.82817167, 0.82088995, 0.813449442, 0.805856526, 0.798117757, 0.790239811, 0.782229364, 0.77409327, 0.765838742, 0.757472694, 0.749002457, 0.740435302, 0.731778264, 0.72303921, 0.714225292,
0.705344081, 0.696402907, 0.687409282, 0.678370714, 0.669294596, 0.660188258, 0.651058972, 0.641914248, 0.63276118, 0.623606801, 0.614458144, 0.605322182, 0.596205652, 0.587115288,
0.578057468, 0.569038451, 0.560064793, 0.551142275, 0.542276978, 0.533474326, 0.524739921, 0.516078949, 0.507496655, 0.498997778, 0.490586936, 0.482268572, 0.474046886, 0.465925753,
0.457908988, …] setter function console log: 400

It is intresting that setter function "value" parameter is 400 which is the length of "MainSignal" array.

Thanks,
Peter