From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,557 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,536 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,527 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,519 Views)

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

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