04-03-2007 08:35 AM
04-03-2007 10:30 AM
04-03-2007 10:42 AM
04-04-2007 10:52 AM
Hi Harshil
I have been looking into your problem and am slightly puzzled as to why you only wish to read one sample in a second? Is this so that you get a constantly updating plot on the front panel? If you were to sample at say 100 samples a second, you would find your program will run much quicker. If you ran at 1000 samples a second, you could remove the while loop alltogether from your program. By increasing the number of samples per second, you will notice a dramatic improvement in your graph update rate, whilst cecreasing the overhead caused by opening and closing the Write Signal function.
If however your investigation requires you to read in at 1 sample per second, you can do a constantly streaming TDMS file, as previously mentioned in the other post. This method means that the file is not constantly opened and closed during the loop iterations. However, saving your data in this format prevents it from being opened easily in other programs such as Excel.
I hope this information is of use to you.
Best regards
Rob