12-14-2005 09:40 AM
12-14-2005 11:27 AM
12-15-2005 07:03 PM
12-16-2005 03:25 PM
Thanks for your reply Ame,
Your question was "Is there any relationship between the time and the setpoints?" The answer here is yes. I have attached an example.txt file to show you how the data origionates. When the vi starts, the file dialog opens, then the user will select the file. The resolution of the data in the file is based on 1 second increments. In addition to the origional question, I would like to know how to interpolate the data to various points of resolution based on observation of the file I have attached; As it stands, the data is at 1 second intervals, I would like to interpolate data to values at rate of 10 times per second, or 100msec. I wrote and attached a vi that provides what I am looking for but I dont know if it is the proper approach to solving my problem; it is the Read text file4.vi below. I am simply counting in a For Loop 1 time per second for the maximum index value of the time column of data, and outputing the setpoint value. If I wanted to speed up the For Loop, I would in turn want to interpolate the time and setpoint data to correspond to the same rate as the execution rate of the For loop; if I interpolated the data to a rate of 10 times per second, then I would set the execution rate of the FOR loop to 100msec. I also am attaching a .jpg to show the actual PID vi i am using.