06-28-2012 03:54 PM
You just have to determine when there is no data (perhaps a timeout error on a VISA read), and ignore the error and skip over adding any data to the table.
06-28-2012 11:04 PM
The VI could sort whether there is data or none. If there is no data, It won't lag. If there is data, it will list the data in the table. However, we are using FAKE / PROGRAMMED data before. Now, we want to make use of the data read by the microcontroller and it does not log anything Is there a possibility that there is something wrong with my VI?
07-06-2012 02:37 AM
Sorry for the late reply. Thank you for sending a correct VI. I have another problem, why does my program lag values even thought the microcontroller doesn't send data? Also, it lagged zeros
Attached is a word file where the image of some the errors are listed.
The one in vertical box is the inaccuracy in time (it must lag every 30 mins because the microcontroller sends data every 30 mins. . BUT it doesn't )
The one in the horizontal box is that it lags data with 0.00000
Thanks for your help :))
07-06-2012 08:30 AM - edited 07-06-2012 08:33 AM
You have obviously made some changes to the example from Ravens Fan and it seems pretty obvious you did not pay any attention to how to handle a timeout error. Go back and really read what was said.
p.s. It is 'Log' and 'Logger' and never again post a docx file. Attach a png or jpg.