![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196770/image.png)
How can I generate a uint8 type output from the Pulse Generator block in Simulink?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am using the Pulse Generator to produce a required sawtooth wave which is then used as the control input for a multiport switch. For the model, it's necessary I use uint8 data type but at the moment, am getting a double type output from the pulse generator, and the Embedded Coder won't allow the usage of a data type conversion. Pls advise.. thanks.
0 Commenti
Risposte (1)
Christopher Wallace
il 28 Set 2018
Can you use a gain block with the output data type specified as 'uint8' or does that produce the same results as the convert block?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/196770/image.png)
Vedere anche
Categorie
Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!