DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating a Angular rate channel in Deg/Sec outputs in Radians

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!

0 Kudos
Message 1 of 7
(1,401 Views)

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.

 

Walter_Rick_0-1659510703769.png

 

 

Walter_Rick_1-1659510703771.png

 

 

By the way, it is also possible to calculate quantity based in DIAdem.

0 Kudos
Message 2 of 7
(1,382 Views)

BrandonHosken_0-1659534043605.png

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!

0 Kudos
Message 3 of 7
(1,376 Views)

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

0 Kudos
Message 4 of 7
(1,369 Views)

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. 

 

BrandonHosken_0-1659536166807.png

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.

 

BrandonHosken_1-1659536256176.png

 

 

0 Kudos
Message 5 of 7
(1,364 Views)

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)

Walter_Rick_0-1659591085824.png

 

 

I used the example dataset and changed for Speed the unit to “°/s”.

Walter_Rick_1-1659591085824.png

 

 

Then calculated the integral

Walter_Rick_2-1659591085826.png

 

 

In the result preview the unit is correct.

The result of this calculation has also the correct unit “°”

Walter_Rick_3-1659591085827.png

 

 

I did not change anything in the Unit Catalog and used it as shipped with DIAdem.

 

Greetings

Walter

0 Kudos
Message 6 of 7
(1,351 Views)

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!

0 Kudos
Message 7 of 7
(1,335 Views)