Error 6 is a EABO error which is a operation aborted error. You can find
these errors in the 488.2 Software Reference Manual for Windows. You may
want to program this instrument from using VISA instead of the 488.2 commands.
VISA is easier to use and not as low level at 488.2.
Best Regards,
Chris Matthews
Measurement Studio PSE
"Mark Greenman" wrote:
>>I am new to CW++ and just diving in trying to control a LakeShore 330 Temperature>Controller.
I am getting an exception thrown when trying a simple Write>to the device
as in:>>//>// CDxHeater::GetMode>//>// Call(s):>// int GetMode()>//>// Purpose:>//
Returns the LS330 operation mode:>// Mode Param Value>// Local
0>// Remote 1>// Remote with local lock-out 2>//>// Parameters:>//>//
Notes:>// The device will be queried if the device already established.>//
Otherwise, a warning message box is raised, and the default>// value of
0 is returned.>//>// History:>// MEG 06/16/00 - Creation>int CDxHeater::GetMode()>{>
int code = 0;>> if (m_device)> {> // Send a query, and then
read the response.> char* cmd = "MODE?";> char rsp[2];>>
try> {> m_device->Write(cmd,5);> }> catch
(CNi4882Exception* e)> {> ::MessageBox(NULL, e->GetErrorMessage(),
"GPIB Error", MB_OK);> // Catches GPIB exceptions> }>> try>
{> m_device->Read(rsp,1);> }> catch (CNi4882Exception*
e)> {> ::MessageBox(NULL, e->GetErrorMessage(), "GPIB Error",
MB_OK);> // Catches GPIB exceptions> }>> code = ::atoi(rsp);>
}> else> {> ::MessageBox(NULL,"Error reading Local/Remote Mode.
No Device comm>established",> "LS330 Communication Error", MB_OK
| MB_ICONERROR );> }>> return (code); >}>>the m_device member points
to a instantiated CNi4882Device, and I was already>successful in the program
using this device and a:>>m_device->GetConfigurationOption(>
CNi4882Device::ConfigureOption::cPAD,> tempPAD);>>call.
When I try the m_device->Write(), I get an exception:>> 488.2 Exception:
Status=C100 Error=6 Transfer Count=0>>Is there a reference to find out more
about this error so I can debug it?>>Thanks,>Mark