06-20-2011 11:49 AM
thanks aeastet, my aim is to use the shift resiter to initialise the function geenrator from 10 hz to 1000000hz and for ths to be possible, i want the false case in the care structure to the the default so that i can sweep the frequency from 10 to 1Mhz and store the entire frequency to voltage values and plot a graphy with these values
06-20-2011 12:08 PM
thanks aeastet, what i want is to be able to see the voltage vs frequency once the lab view programm stops and when i go the front of the waveform graphy and click on export to excel, i want to see all the various frequency icreament from 10 to 1MHZ.find attached my vi
06-20-2011 12:59 PM
Did you try the last vi that I sent you? What is it not doing?
06-20-2011 03:46 PM
thanks aeastet, i tried the last vi, it does not give any values on the graphy and when i export the graph to excel sheet i can not see any of the frequency increament
06-21-2011 02:19 AM
Did you make sure that you set all of the times that you have controls for? If I remove rthe frequency generator and have the program generate data I see it on the graph. I am not sure how you are doing the save since that was not part of the code that you posted. Please make sure that you have all of the controls set to values that you think they should be. If this still does not work I did put a 10 ms timer into the loop. If your y2 value is less that 10 ms then the program will not take data. You can remove that timer and try again to see if that helps.
06-21-2011 05:47 PM
thanks aeastet, i still not giving me any data. can you tell me how i can include a vi or code that will automatically save my data and i i can view it and plot a grapy of voltage against frequency
06-22-2011 06:45 AM
I am not sure why you are not getting data. I would check to see if your DAQ card is connected and working correctly. If I remove all of the ELVIS for the frequency generator I have no problem getting data to plot. Look to see if you have errors in the data acquisition loop or the frequency generator by placing a probe on the error out wire on the shift register.
I added some code that should save the data once you get data into your vi.
06-22-2011 11:43 AM
thanks aeastet, can u help me attach the code that will help me save the data to this vi.