Convert System.Decimal from C# .NET to double
13 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Christopher Saltonstall
le 3 Août 2023
Commenté : Valeriy
le 3 Oct 2023
I am communicating with a Thorlabs DC servo controller via .NET. When I query the motor position it returns the value in system.decimal format. I found some documentation that briefly mentions this format but doesn't explain how to convert it to a usable numerical value.
How can I can I convert this to something usable?
The returned postion variable is attached.
0 commentaires
Réponse acceptée
Christopher Saltonstall
le 3 Août 2023
4 commentaires
Walter Roberson
le 29 Sep 2023
Notes:
This can only work on Windows
You might need to do the import before the load, so that the class is defined at the time of the load()
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Call MATLAB from .NET dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!