LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Peak value of histogram used to find corresponding values in original data

Hi
I tried doing what you had told me since the past few days but ended up messing up the program. Please could you do the modifications as you have suggested.

I am not sending the file which I have messed up but if you want me to send it please do tell me.

Thanks
0 Kudos
Message 11 of 29
(1,371 Views)
Hi,

Please find the attached snapshot describing what I had suggested earlier. Also, as per our support policy, we do not create code for our customers though we do try to suggest ways for accomplishing the programming task.

Please let me know if you have any further questions/comments regarding this issue.

Regards,
Ankita A.
0 Kudos
Message 12 of 29
(1,371 Views)
Hi
I have modified the file as you suggested but I guess there it is a type mismatch. Please could you suggest something. I am also trying to solve it.
Thanks
Download All
0 Kudos
Message 13 of 29
(1,371 Views)
Hi,

The element coming out of the Index array function is a scaler so to display it use a numeric indicator rather than an array indicator.

In your VI, delete the "Waveform Values" array indicator and replace it with a numeric indicator. That would get rid of the type mismatch.

Regards,
Ankita A.
0 Kudos
Message 14 of 29
(1,371 Views)
Hi

The error of type mismatch is taken care of by changing the indicator but it does not display the set of wavelengths that should be displayed for the max peak between a particular region. Please could you look into it and tell me what should be done.

Thanks
Download All
0 Kudos
Message 15 of 29
(1,371 Views)
Hi,

Please see the attached VI where I have used Search 1D array and Index array functions ina loop to get the array of corresponding wavelengths.

Regards,
Ankita A.
0 Kudos
Message 16 of 29
(1,371 Views)
Hi
Thanks Ankita for building the incomplete application. The array of corresponding wavelengths does not yet display the values of the wavelengths. I do not understand what is the reason for this. The numeric indicator stays zero always. I am attaching a screen shot of what it looks like. I have circled the portion which displays the zeros. Please could you solve that doubt too for me.
0 Kudos
Message 17 of 29
(1,371 Views)
Hi,

If you notice the screenshot, the VI is still running(look at the run arrow). Let the Vi finish running and you would be able to see the wavelength values. Since this VI takes a long time to run, try to test the VI with a smaller sample of data.

Regards,
Ankita A.
National Instruments
0 Kudos
Message 18 of 29
(1,371 Views)
Hi
Thanks a lot for all the help provided !!!! I tried to run the program with the higlight execution on. But it still does not show any values in the "wavelength corresponding to a particular intensity value". I really appreciate your time and effort in helping me out.
0 Kudos
Message 19 of 29
(1,371 Views)
Hi Novice User,

I was thinking about your problem and came up with a very easy solution. I am attaching the VI. It is using Basic Math Functions and I hope that you will be able to understand the logic pretty easily.

Please consider adding SSP to your registered products if you already haven't done so.

Regards,
Ankita A.
National Instruments
0 Kudos
Message 20 of 29
(1,371 Views)