I want to give a digital output to my DAQ using Simulink. But I get an error says:Input to a block must have a discrete sample time.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am using Data Acquisition Toolbox. I want to give a digital output from my Data Translation DAQ (DT9812-10v) by using simulink.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158107/image.png)
I used the Digital Output block from the toolbox and I connect it with a Constant block as an input. When I run the program, it gives me error message: Error reported by S-function 'sdaqdo' in 'research_projek_1/Digital Output': Input to a block must have a discrete sample time.
How would I overcome this problem? Thank you
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158109/image.png)
0 commentaires
Réponse acceptée
Shankar Subramanian
le 6 Mar 2014
Hi Taufik,
Can you open the constant and set the sample time on it to something other than 0 or Inf. The Digital blocks in Data Acquisition require discrete sample time inputs.
Thanks
Shankar
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simultaneous and Synchronized Operations dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!