07-19-2020 05:26 AM
Hello everybody.
I have a Thorlabs' Optical Power and Energy meter , model PM320E. I linked to the USB port and I installed VISA driver. Using NI VISA interactive control (on NI MAX), I tried to give some simply task to my instrument, but I always receive this message:
VISA: (Hex 0xBFFF0015) Timeout expired before operation completed.
I use commands written on the instruction manual.
I can use only the Common IEEE488.2 commands..
I can not set any data on the device or read any value from the device.
Please give me a solution
thanks
07-19-2020 06:25 AM
I don't have a VISA device handy to check where this is, but did you set up VISA to use a Termination Character (which should be set to <LF>, 0x0A) on input? Your instrument is probably sending you a string such as "Hi, I'm a PM320E<0x0A>" and stops sending. When you read it, VISA is asking to read N characters (I don't remember how many, or whether you specify it in MAX), and waits until it gets them, unless you've told it to read until it sees the Termination Character.
As I recall, you need to configure this in MAX. I'm guessing you didn't. Try it, see if this fixes the problem.
Bob Schor