08-02-2022 12:12 PM
Is there anyway to set the default unit that a channel from ChnIntegrate outputs as? I am integrating a channel whos units are Deg/Sec and want the output to be Deg, however it converts this to Radians. I understand that I can just call ChnConvertUnit, however I am just trying to understand why it does this in general. Thank you for any insight!
08-03-2022 02:11 AM
Hi BrandonHosken,
Diadem works with a Unit Cataloge. There is defined which spelling for a unit is known. If you use “°/s” instead of “Deg/Sec” as unit, it works as expected.
By the way, it is also possible to calculate quantity based in DIAdem.
08-03-2022 08:41 AM - edited 08-03-2022 08:41 AM
Here is a picture of my unit catalog, is it possible to associate deg/sec with °/s so that it works in this way? Thank you I appreciate the help!
08-03-2022 09:04 AM
If you double click on "deg/s" you will also see "°/s". In this dialog you can also add further identifiers for this unit like "deg/sec" and set the default.
Please note that these identifiers are case sensitive and must be unique for the unit catalog.
Greetings
Walter
08-03-2022 09:19 AM
Even when trying this and setting both °/s and deg/sec as the default, the filter channel that is created from my script is correctly set as this default unit, but once that created channel is integrated it still comes out as radian.
Show here is the unit °/s for the channel in the Integrate Quantity based dialog box in Diadem analysis (Unfortunately I cant show the data). And the outputted Integrated channel is show below in radians.
08-04-2022 12:31 AM
Hi BrandonHHosken,
To be sure that I work with an unchanged DIAdem Unit Catalog I replaced the current as follows:
(You find it in the program folder)
I used the example dataset and changed for Speed the unit to “°/s”.
Then calculated the integral
In the result preview the unit is correct.
The result of this calculation has also the correct unit “°”
I did not change anything in the Unit Catalog and used it as shipped with DIAdem.
Greetings
Walter
08-10-2022 08:56 AM
After going through these steps I was unable to recreate this, I was able to get around the issue with converting the units in code. Thank you for the assistance!