12-22-2021 01:51 PM
In your Main Tab it looks like you are constantly opening and reading files.
Do you have some sample data for your files? I am sure your readers could easily be cleaned up.
12-22-2021 02:53 PM
Do you have some sample data for your files? I am sure your readers could easily be cleaned up.
- I'm still confusing the 'files' here, but I attached examples of some input and output files.
12-22-2021 03:13 PM
Your output file is large, if you are repeatedly opening that file, then you may have problems.
@Jeon17 wrote:
- Don't use local variables, connect directly to the terminals. (Your terminals are not connected to anything at the moment.)
- Okay, I will!
- How big are these files?
- I'm not sure what the files you mean here if you mean the temperature writing on the chart, it is saved and accumulated in the txt file.
- Are they constantly changing?
- If you mean the measured temperature on the panel, they try to stay around the setpoint with noise.
- Is there a reason to read the contents every 100 ms?
- I guess it's to monitor the temperature in high resolution because the temperature is ramped in the system.
Do you have some sample data for your files? I am sure your readers could easily be cleaned up.
- I'm still confusing the 'files' here, but I attached examples of some input and output files.
A couple of questions:
12-22-2021 06:08 PM - edited 12-22-2021 06:10 PM
I tried your output file (output 211216.txt ) with your TAG Read Temperature Ramp VI. It quickly took up most of my memory.
Here is a START to simplify that VI. You have a lot of local variables in there that need to be removed. Below is a simpler approach to read your file. Look at the comments.
However, this can be even simpler. For example assume you want to plot the Gas Trap Temperature, it would be simpler to just take that column and convert to number.
EDIT: Ignore delete this indicator comment, I already deleted it.
12-22-2021 06:42 PM
Awesome, it would be really helpful for me to edit the code!! I'm still learning the program on my end.
If you don't mind, could you happen to save the file for the previous version..? My LV version is 2012, and I couldn't open the file. Actually, I asked the Version Conversion Board to convert the PID read VI that you modified first. But, it took some more time to get a reply than I expected, so if you would save the file for the previous version, I really appreciate it. If not, that's also fine, I will use the board again.
Thank you so much!
12-22-2021 06:56 PM
@Jeon17 wrote:
Awesome, it would be really helpful for me to edit the code!! I'm still learning the program on my end.
If you don't mind, could you happen to save the file for the previous version..? My LV version is 2012, and I couldn't open the file. Actually, I asked the Version Conversion Board to convert the PID read VI that you modified first. But, it took some more time to get a reply than I expected, so if you would save the file for the previous version, I really appreciate it. If not, that's also fine, I will use the board again.
Thank you so much!
Will do, but you will have to wait until tomorrow. Left work and left my computer at work.
12-22-2021 07:04 PM
Of course, that's not a problem at all. Thank you in advance!
12-22-2021 07:23 PM
Here is the file in LV 2012 format.
12-22-2021 07:44 PM
Oh, thank you so much!!
12-23-2021 11:17 AM
I gave you a bug in my haste. For the hours measurement you need to add a Quotient and Remainder Function before the case structure, otherwise 12 AM and 12 pm will be incorrect. See below.