Contact an Expert

Thread: hp816x_prepareLambdaScan return error


Permlink Replies: 2 - Pages: 1 - Last Post: Mar 15, 2012 4:19 AM Last Post By: mkelly Threads: [ Previous | Next ]
leonw

Posts: 2
Registered: 02/27/12
hp816x_prepareLambdaScan return error
Posted: Feb 27, 2012 3:56 PM
Click to report abuse...   Click to reply to this thread Reply
Hi, I'm trying to program on PC to control a 8164A frame and 81640A laser source and HP81533B optical header. I use PnP LambdaScan to do the sweeping, however hp816x_prepareLambdaScan returns timeout error. I checked GPIB communication, it seems there is a GPIB command can not be recognized
Formatted viWrite (GPIB::24::INSTR (0x00471F50), "SOURCE0:WAV:SWE:STAR?MIN", 26, 26)

I searched the programming guide and this is indeed an illegal command. Does anyone can help here?

following are some of my codes:(basically coming from the sample programe)

/*initialize local variables to default values*/
power = -7.0;
unit = hp816x_PU_DBM;
startWavelength = 1550.0e-9;
stopWavelength = 1555.0e-9;
stepSize = 5.0e-10;
opticalOutput = hp816x_HIGHPOW;
numberofScans = hp816x_NO_OF_SCANS_1;
PWMChannels = 1;

/*initialize the driver*/
errStatus = hp816x_init("GPIB::24::INSTR", VI_FALSE, VI_FALSE, &iHandle);

/*register at least the mainframe containing the tunable laser source*/
errStatus = hp816x_registerMainframe (iHandle);

/*get original logged wavelength points (no interpolation)*/
errStatus = hp816x_returnEquidistantData (iHandle,VI_FALSE);

errStatus = hp816x_enableHighSweepSpeed(iHandle, VI_TRUE);

/*prepare the lambda scan operation*/
errStatus = hp816x_prepareLambdaScan (iHandle, unit, power,
opticalOutput, numberofScans, PWMChannels,
startWavelength,
stopWavelength,
stepSize,
&numberofDatapoints,
&numberofValueArrays);

Edited by: mkelly on Mar 15, 2012 4:18 AM
leonw

Posts: 2
Registered: 02/27/12
Re: hp816x_prepareLambdaScan return error
Posted: Feb 27, 2012 4:58 PM   in response to: leonw in response to: leonw
Click to report abuse...   Click to reply to this thread Reply
Forgot to say:

8164A with firmware ver2.53

PnP driver ver4.4.1

I'm starting to think this is the incompatibility issue between the latest driver and old firmware.
mkelly

Posts: 168
Registered: 02/06/07
Re: hp816x_prepareLambdaScan return error
Posted: Feb 29, 2012 9:13 PM   in response to: leonw in response to: leonw
Click to report abuse...   Click to reply to this thread Reply
Hi,
That is a pretty old firmware version on the 8164A so it is probably a good idea to update it. After that the 81640A could also be updated. The files and instructions can be found from this page:
http://www.agilent.com/find/octfirmware
You are also using a power meter from the previous generation equipment and that may be causing some problem. You mention the 81533A, which is the interface module. Which model head is attached?

Best regards,
Mike

Point your RSS reader here for a feed of the latest messages in all forums