connectScalar(app.hInst,app.TextArea,'data','callback',(t,d)string(d));
How to stream vector (1X5) data from Target device to App designer?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I have been using ConnectScaler object function to stream data to app desginer from Speedgoat. but I am unable to stream vector data .
I tried Converting to string in App designer but it is not working.
ConnectScaler(app.hInst,app.TextArea,'data');
ConnectScaler(app.hInst,string(app.TextArea),'data'); // not working
I tried to introduce matlab function in simulation to convert into string, but no progress.
y=string(u); // unable to generate code
Risposte (1)
Dimitri MANKOV
il 13 Set 2022
Hi Jesica,
I think there are several mistakes here:
- The correct syntax of the function is connectScalar (lowercase "c" and "a" before "r")
- Is the object app.hInst initialized/declared in your app before you use it in the connectScalar function? You can for example declare is as a private property in your app.
- What type of component is the app.TextArea object in your app?
I hope this is helpful!
Dimitri
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!