11-02-2005 09:53 AM
@stuart wrote:
... I have made the necessary updates to include the "Read Trace" and "Get Trace Statistics" vi in version 7.1, however upon turn of the hour, the data is not outputting to the cluster of indicators as it should. I get the following message in the error string: NI-488: Error connecting to driver or device. ...
I am reading the same data from the same PLC using other LV programs no problem, so i am a little unsure of what the problem is. Is there any reason why the code you sent me wouldn't show data on the indicator cluster?
Hi Stuart,
If it isn't working, I don't think it's exactly what you want.
The error cluster is a false lead ... the source string is just the source for "No error"/Error Code=0.
The problem with my previously posted code is in the 'Hrly Averages Array' array constant used to initialize the shift register: It's an empty array.
That's a dumb mistake on my part because "Replace Array Elements" won't do anything on an empty array.
Fix: Go to the array constant; increase the index to 7; type "0" as the value for this (the 8th) element. You'll now have an initial array of 8 elements, all of value 0 and "Replace Array Elements" will update the appropriate element every hour (barring other simple mistakes on my part ... which should not be ruled out).
Good luck.