01-07-2022 04:07 AM
by this way I miss the data in short times. I need the fine bins also in short times.
01-07-2022 04:09 AM
@Noa_A wrote:
I mean how can I define "np.logspace" in LabView to wire it to the interval of LabView histogram.
I suppose you could try creating your own Histogram using an XY graph - and define the X point for each Y, but that seems OTT.
but you seem to think that you know better than all the people at NI who develop Graphs for academia and industry, so maybe you've got a niche requirement - or maybe you've misunderstood what you're looking at. 😉
01-07-2022 04:11 AM
In my case the x scale is time. I miss the data in small x.
01-07-2022 04:14 AM
Thanks for your helpful answer.
01-07-2022 05:54 AM - edited 01-07-2022 05:57 AM
Hi Noa,
@Noa_A wrote:
The problem is that I dont want to use Python. I just want to have the bins that are equally spaced in the x scale (that is logarithmic) all in labview.
Use the GeneralHistogram function and provide your own "bins" array!
@Noa_A wrote:
I mean how can I define "np.logspace" in LabView
By using the log10/power functions you can easily calculate your bin borders. After all it's simple math:
01-07-2022 08:38 AM
Hi GerdW,
Thanks a lot. That is exactly what I want.
Actually, I'm new in LabView, I did this as you said.
Now, in the bin array part I'm not sure I'm doing the correct thing or not.
Here, I'm trying to make the bin width equal to 2 and set the inclusion to upper (just as an example).
Do you think is this correct way to do that or I'm completely wrong?
Best
01-07-2022 12:13 PM - edited 01-07-2022 12:16 PM
@Noa_A wrote:
Actually, I'm new in LabView,
Start with the training resources listed at the top of the forum. Once you learn that it is spelled LabVIEW, you will be 10% closer. 😄
@Noa_A wrote:
Do you think is this correct way to do that or I'm completely wrong?
No, nothing here makes any sense!!! If you want help, attach your VI and some data. Pictures are often useless to tell what's wrong (with some exceptions)
01-07-2022 12:53 PM - edited 01-07-2022 12:56 PM
Hi Noa,
@Noa_A wrote:
Now, in the bin array part I'm not sure I'm doing the correct thing or not.
Here, I'm trying to make the bin width equal to 2 and set the inclusion to upper (just as an example).
Do you think is this correct way to do that or I'm completely wrong?
To add to Christians answer (I agree on that "image of code" topic, too!):
You are not "doing the right thing"! When you want logarithmic binning you (usually) don't use the same size of the bin!
In fact you could use each pair of elements from that array of bins to set them as lower/upper limit, then choose a mode where the upper limit is not included in the bin!
More problems:
Well: if you would attach "code" instead of an "image of code" I might be tempted to edit that code. But unfortunately we cannot edit/debug/run "images of code" with LabVIEW…