ni / niveristand-ballard-arinc429-custom-device

Custom device for Ballard ARINC 429 hardware
MIT License
5 stars 5 forks source link

Clarify error case when label name is incorrectly formatted in HW config file #236

Open papowerNI opened 1 year ago

papowerNI commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, if a HW configuration file label name does not match the format "label [labelDecmial]" (or label [labelDecimal]_2 if the sdi=10), the custom device throws a generic Ballard driver error 403002.

Describe the solution you'd like This is not the only source of error 403002, but it would still be useful to either clarify this formatting requirement, check for the formatting requirement on HW config file import, or redesign the custom device to use labelDecimal/SDI instead of the name, if that's possible. The formatting requirement will be added to the User Guide with #235

Describe alternatives you've considered See options listed above

Additional context image

jacobson3 commented 4 months ago

@papowerNI if we do something similar to the changes in the Ballard 1553 CD would that resolve this issue?

https://github.com/ni/niveristand-ballard-milStd1553-custom-device/issues/232

Basically the CD will only pass the error code out from its engine so the relevant source information will always be lost. I ended up just printing the error source to the console so there's at least some way to get this information.