ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create Function

I have created a VI to Calculate the HI time of my input. now i want to re-use it as a function many times, Can anybody help me out.
 
Input= Boolean
Output= Time (No of days, Hours)
0 Kudos
Message 1 of 3
(2,872 Views)
do you mean, you want to call it as a function/sub vi in other vi's??
0 Kudos
Message 2 of 3
(2,865 Views)
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
Download All
0 Kudos
Message 3 of 3
(2,858 Views)