11-09-2011 05:35 PM
You are trying to create an array of size 4294967294 elements (DBL) at the output of the while loop. Creating an array by autoindexing a while loop probably results in multiple memory reallocations as the array grows and you may not have room for an array that big anyway.
Lynn
11-11-2011 08:46 AM
Hi johnsold,JD_war_eagle,all
1-You two have tried my VI,and i'm thankfull for making such interest in my work,
you have both noticed that there is a memory problem due to the incresing number of while loop iteration, i've changed its iteration number as shown in printscreen(P.S) " while loop iteration number " and the problem has been resolved.
2- to answer JD's question : i've used input parameter with a 12bit ADC as shown in P.S"input parameter" an obtained the result as shown in "result obtained" P.S ,and what i'm sure of is that those results are totally incorrect! if you have any idea please don't hesitate to suggest it
Best regards,
11-11-2011 09:30 AM
Hi samiti,
Something may off in your calculations since they are all done manually in the program. There is a histogram VI that is available for use so that you can automatically generate a histogram, but you may be intent on doing all the calculations yourself. You may not be using the correct logic to calculate the INL and DNL. I would suggest looking at this example: http://zone.ni.com/devzone/cda/epd/p/id/6086. It uses a MathScript Node to calculate these values, but the logical functionality of your code should match the formulas used there. Also, there is another forum topic here: http://forums.ni.com/t5/LabVIEW/linearity-testing-ADC-using-PCI-6289/td-p/286924 which may give you some more insight on how to perform the calculation.
11-11-2011 10:54 AM
hello JD_war_eagle,
thank you for these links !
i've bought the IEEE standard for ADC testing, at first (a month ago and it was my first time using labview)i've tried to use formulas in it but it was, at that time so hard, then i've searched exmples on this foum and i've found some(including those you mentionned) and it was very confusing because i didn't know on which formulas they were based,if they were accurate...so i've decided to return to my IEEE doc and use it,and here i am!
however the idea of math script is pretty good and i think that i'll try it with my formulas(hope it will work this time!!!) i'll share when i'll finish it.
thank you too much for your help 🙂
05-30-2012 11:16 AM
Is there a resolution found for ADC Histogramm until now? I am also working with adcs and interested in a solution for code. I already have some code for the histogramm, but it looks different. So iam not sure what is right.