10-26-2015 10:38 AM
10-26-2015 11:18 AM
@muscles05 wrote:
But It sets of 512 numbers. Not just 512 numbers. I am sampling the voltage from the wall through a transformer and I'm just trying to replicate the sine wave from that ac signal. So for as long as the adc is reading the signal it will be running.
That is why we do the reading in a loop. For viewing the data, use a chart.
10-26-2015 02:28 PM
i did that and i not getting the sine wave im hoping for. You can see in the image attached and my code. Not to sure what else i need to do to plot data correctly.
10-26-2015 07:44 PM
Your graph only has 3 samples in it. That points to something being wrong in the read data. Do you have a capture of that?
10-26-2015 10:27 PM
Hey buddy, well i took out the dollar sign, and now having the spreadsheet function just find the comma and parse the data. I seemed to have better luck without the dollar sign. The data seems to plott but i ran into a error where there is a range 0-2^24 where the upper half is the negative number and the bottom half is postive. But i found a quick fix that i tested outside of labview with numbers, so if i take each element and ask if it is greater than 2^23 than subtract 2^24 else do nothing. That worked by bringing the top and bottom halfs together and inverse for correct plotting. I tried to do that but i dont know how to compare with greater function since only returns boolen true,false. Please take a look at my graph of data, and block
10-26-2015 11:56 PM
10-27-2015 12:25 AM
haha obvously not i got it cause i change my micro code again. I dont appreciate the negativity. But anyways i ended of finally getting this got the sine wave check it out.