Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2018b b9.5.5.409 Operating System: Win 10 64-bit
I would like to import an XML file as a tree variable in Labtalk but I'm not able to access the tree variable I've made with an Origin C function. I have created the following Origin C function to import the XML:
void XML_load(string filename) { Tree trLoad(filename); }
I can compile this code successfully and can run the C function in Labtalk with the following Labtalk script:
XML_load("C:\\Test.xml")
I would like to access the new tree variable "trLoad" in Labtalk but haven't any success. I'm new to programming (i.e., object oriented programming, etc.) which explains my difficulties with this relatively easy task. Please help.
You may use Project::AddTree within your Origin C function to create a project-level Tree variable accessible from LabTalk using the name you assign the Tree to.