Hi M_Atif,
why don't you stick with your old thread?
I made a subvi from your vi. (There's a 'Create SubVi' entry in the Edit menu!).
Please check the subvi, it's not perfect. You will get problems when running this in parallel - making it reentrant may help. You can also change the output to the value/formatting you need. And there is no documentation so far
😉
Best regards,
GerdW

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019