Adding Eng Units in SQL DB

Hello everyone,

I need help adding engineering units for existing variables in sqlth_te to a new metadata table.

Any ideas on the best way to do this and automate it?

Here's a little code for your Script Console. It should give you some ideas. (Replace my tag paths with a couple of yours and make sure you've set the EngUnits in those tags.)

tags = [
	'[default]myInt1',
	'[default]myInt2'
]
for i in range(len(tags)):
	tags[i]  =  tags[i] + '.EngUnit' 
units = system.tag.readBlocking(tags)
print units

for u in units:
	print u.value