02-12-2013 01:04 PM
Solved! Go to Solution.
02-13-2013 02:12 PM
You mention four specific wavelengths and values one place and in another place you talk about distributions. I am confused.
An X-Y Graph should be able to do what you want.
Please post some data along with what you think the graph should look like. A .png screen shot of the MATLAB graph would give us an idea of what you want. Also posting what you have tried and telling as specifically as possible what did not work will allow us to help you move in the right direction.
Lynn
02-13-2013 02:48 PM
02-13-2013 02:57 PM
thanks for your replies guys.. i will be posting more details in few minz
GerdW, i was actually shocked i got some replies i usually get none if you check my previous posts there was no reply at all.
plus consider the time difference its 5am and i just woke up.. thanks for your trying to help me i will get back to you in few minz.
02-13-2013 03:06 PM
What does "minz" mean?
02-13-2013 03:07 PM
I have not checked your other posts but one reason you may not have received many replies is that your questions are not very specific.
By posting your own attempts and including enough information that someone who knows nothing about your particular project can figure out what you are trying to do, you get more and better responses. When we have to guess what you want, many of us choose to repond to better formulated questions. Most of the people participating on the Forums are volunteers who are willing to ashare what we have learned about LabVIEW and other NI products.
Lynn
02-13-2013 03:13 PM
my bad, i usually write after trying so hard with labview to get what i want and i fail to get it. so sorry i will post detailed problem in a while.
today i spent like 3 hours trying to disable the DAQ when i press an ok button, it worked but for some reasons the button gets stuck so i went to sleep immediately and i just woke up lol. labview is a powerful program but for a girl like me who started using it 1 month ago to do an application using it, its kind of challenging since i dont know how many functions work in labview. i just guess.
thanks again 🙂
02-13-2013 03:38 PM - edited 02-13-2013 03:41 PM
hi again,
the first attachment shows what im trying to obtain but this one is using excel. but the final result that im looking forward to see using labview is more or less the same as this figure. but i also want the final additive result of mixing these these 4 colors together as its shown in attachment 3
the second attachment is my matlab code, these are the outputs of my code. the last four columns name i1 i2 i3 and i4 are the relative luminous flux for the 4 colors where 1 is blue 2 is green 3 is red and 4 is amber.
these are going to be the peak amplitude of each color you see in attachment 1. each row of these 4 columns represent one spectrum ( something similar to figure 1).
for each color of the 4 led colors has fixed wave length, x axis, (Blue =460 Green =525 Amber =590 Red =625). at each of these wavelength value i want the peak to be localized at these specified x axis values.
for example if i take first row of the 4 columns from matlab output at x= 460 i want y= 0.5000 and at x= 525 i want y=0.5000 at x = 625 i want y =0.5000 and finally at x= 525, y=0.0000.
i tried using the normal distribution in labview because each of these graphs represent normal distribution of mean equal to the peak wavelength and ampitude of luminous flux intensity, but it does not work and it gives me error.
i have made matlab code to plot the spectrum, i was thinking if the above does not work i will use it and then import the picture to labview using matlab script. but this also didnt work with me i dont get the spectrum ploted.
I will attach later the matlab code since they allow only 3 attachments per post.
please help me out.. thanks
02-13-2013 03:54 PM
i forgot to mention, these columns you see in matlab attachment 2, they are all imported to labview as textfile, and then im using array index to send each value to its indicator ( some to numneric boxes so to graphs some to DAQ) and im using one control box to go from one row to another and fix the column to each indicator. when i press display spectrum each indicator receives its data for one spectrum at a time
the finalized GUI is not with me now its in my PC back in university. i will post it soon i get to the lab, but here is an old screen shot hope it helps to understand what im doing.
02-13-2013 03:54 PM
i forgot to mention, these columns you see in matlab attachment 2, they are all imported to labview as textfile, and then im using array index to send each value to its indicator ( some to numneric boxes so to graphs some to DAQ) and im using one control box to go from one row to another and fix the column to each indicator. when i press display spectrum each indicator receives its data for one spectrum at a time
the finalized GUI is not with me now its in my PC back in university. i will post it soon i get to the lab, but here is an old screen shot hope it helps to understand what im doing.