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.
You could always check for the command type (DIMENSION_START_LOCATION) and assign MyID when that has been found.
That way, MyID will be the same until you stumble on to the next DIMENSION_START_LOCATION.
If Cmd.Type = (DIMENSION_START_LOCATION) Then
MyID = CmdDim.ID
AxLet = CmdDim.AxisLetter {so that I can move the x,y,z,d,etc where I want}
Meas = CmdDim.Meas
Restart PC-DMIS and try again or reboot and try again?
I have tried that and it didn't work. Does anyone know where the program sends the information for processing. There may be limits on the memory it uses and if so I should be able to make that bigger.