LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Keeping Units in a Histogram

Hello All!

 

I am trying to use the General Histogram.vi (Functions/Mathematics/Probability & Statistics/General Histogram.vi), and my 1-D Array input has a unit of time (us or ns).  When I connect the output of the array (output of a "for loop", double precision), I must remove the units via the "unit" (Functions/Numeric/Conversion/Convert Unit) tool, which I have used to remove the units....  

 

Is there any way that I can keep the units while using the General Histogram.vi ?

 

Thanks!

Bryan

0 Kudos
Message 1 of 5
(2,493 Views)

Hi Bryan,

 

What do you mean when you say your array has a unit of time?

 

Could you send me a screen shot of your code so I can better understand your situation?

 

Thanks,

 

Rachel D.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(2,472 Views)

I think the only way is to turn off the units (using Convert Units) before you use the General Histogram and the turn them on again at the output.

 

Ian

 

Aray with units

0 Kudos
Message 3 of 5
(2,463 Views)

Here is an example of how I am using the general histogram.vi  .... I cannot show my actual code, as it is non-published research as of right now, but this shows my problem.  

0 Kudos
Message 4 of 5
(2,455 Views)

I'll also attach the VI I made for that picture... Thank you!

0 Kudos
Message 5 of 5
(2,453 Views)