Now that I have information in a way that imports and exports the information correctly, I have been tasked with creating an OLE to automatically import the data into the SPC software. I have one that sort of works (as in opens the program, logs in, opens the right collection plan, etc) and I can get put in static information, but I am unsure how to call the information out of PC DMIS to have it be placed in the spots we need in the SPC software being used.
Has anyone else done this? Can anyone explain to me how find the variable and the measurement output in PC DMIS? I am using version 4.2 if that helps any.
Here is what I have found through investigating. If the measurement I want has an AX (I assume axis) of M, then I get the readout. If it has another AX (D, Z, etc) then I get a null reading (0). So there must be something in there that I need to pull out.
So, I tried this (example): If StrDimID = "CIRC2 DIA" And StrDimType= "D" Then MyReading1 = StrDimMeasure, but that gave me a null reading as well. Maybe And is not a valid command word?
Here is what I have found through investigating. If the measurement I want has an AX (I assume axis) of M, then I get the readout. If it has another AX (D, Z, etc) then I get a null reading (0). So there must be something in there that I need to pull out.
So, I tried this (example): If StrDimID = "CIRC2 DIA" And StrDimType= "D" Then MyReading1 = StrDimMeasure, but that gave me a null reading as well. Maybe And is not a valid command word?