c4py.py_load_so()
c4py.global_init()
dev_name = "python采集通道"
tag_count = c4py.get_tag_count(dev_name.encode())
print("tag count:" + str(tag_count))
tag_info_array = (c4py.TagInfo * tag_count)()
c4py.get_tag_array(dev_name.encode(), tag_info_array)
c4py.global_release()