06-13-2007 06:56 AM
06-13-2007 09:05 AM
06-13-2007 09:43 AM
Hi
I've uploaded the code to -
www.geocities.com/davidimurray/Labview/HM-SystemV3.llb
The main vi you want is the HMsystemv3.vi
Cheers
Dave
06-13-2007 10:25 AM - edited 06-13-2007 10:25 AM

Message Edited by smercurio_fc on 06-13-2007 10:26 AM
Message Edited by smercurio_fc on 06-13-2007 10:26 AM
06-13-2007 10:42 AM
Hi
Thanks for looking over the code.
The code was written when I was starting with Labview - I'd yet to discover the split path in those days.
The timed loop is also a carry over from a previous implementation. A DLL was used to read a value from the process control system server. However, we had a lot of problems with making the DLL operate reliably so we came up with an alternative system. A stand alone data providing app writes a string into a text file, labview then reads the string and extracts the values for coil number, roughing pass and whether the system should log or not. When we used the DLL we had to only poll the server a maximum of once a second or there was a risk of overloading it with requests. I left the timed loop in to try and reduce the potential chance of the read file operation in labview clashing with the write file of the stand alone app.
I didn't realise that the write sql vi would automatically deal with file creation / change - I will have a look at changing this.
Cheers
Dave