I was pointed to a .proj file yesterday concerning csv manipulation, and the program is exactly what I’m looking for. I understand what the program is doing with the buttons, but if I were to want to use this idea again for a project of my own, I’m not sure I completely understand the scripting on one of the buttons. I was wondering if someone could help me out and maybe hit on some major points of this script or even point me to a walkthrough on how this process is started from the ground up. I’ve already been referring to the ignition handbook and the ‘official python help guide’ but I’m looking for something more straightforward.
I’m looking for a little help on the first three lines (where is it importing these things from?)
Right before the main for loop starts dataOut is defined as , what does that mean? It’s an open ended dataset?
In the main body of the Code I understand that it is translating the text area into a csv format, but what does rowOut and dataOut do at the end of the body?
This is the Code:
from java.text import SimpleDateFormat as SDF
reader=csv.reader(dataIn, delimiter=’,’, quotechar="’")
for row in reader:
element=[r.strip() for r in row]
for i in range(len(element)):
inputFormat=SDF(“EEE MMM dd HH:mm:ss Z yyyy”)
This may not be the best place to get this sort of help, but I figured this would be the best place to start! Thanks in Advance for the help!