LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to log string tags to historical database?

I try to log flattened data to a historical database. The real time values return a good status, logging is turned on for the group and the tag.(Tested using VIs to real time tag value of Tag monitor.) But neither Get Historical Trend Info.vi nor Read Historical String Trend.vi show any data for a tag of type string. What to do? Everything works fine for analog/discrete tags.

I am Using LV 6i under Win95 and WinNT.
0 Kudos
Message 1 of 3
(4,547 Views)
Hmm, this seems to work fine for me. I have included a little example of what I have done. All you should need to do is configure a string tag and give it an initial value. The timers that are used are to give the database enough time to properly update. Incidently, the trending VI's will not work, nor will ODBC queries (the driver is not capable as of yet).
0 Kudos
Message 2 of 3
(4,547 Views)
What's missing is the tag configuration, but from the example I would think it is an I/O tag used as output (write tag). I have in principle only INPUT tags which need to be set on the server side using SRVR write input queue.vi. The transfer from the server to the tag engine seems to work, since I can read the value with the tag monitor but nothing happens to the historical database. Setting an initial value didn't help!
The vi seemed to be version 6.0.2; can this already be used with the DSC module? On the NI site
"http://digital.ni.com/softlib.nsf/websearch/F983BDA17B8F401B862569EC005A11C2?OpenDocument"
there is still the warning not to use 6.0.2 with DSC.
0 Kudos
Message 3 of 3
(4,547 Views)