LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newport controller ESP300: Time out error

Hi, I used ESP 300 few years ago and I also encountered some problems including the mentioned problem. I got somewhere library solving this issue and it actually might be the one jberney made. So have a look into the attechment there is more. Hopefully something will work for you.

LV 2011, Win7
Message 21 of 36
(4,133 Views)

Thank you, my problem is completely solved now!

Giovanni Vleminckx
---------------------------------------------------------------------------------------
Using LabVIEW 8.5 on Windows7
0 Kudos
Message 22 of 36
(4,124 Views)

Hello,

 

I'm also encountering this problem with the ESP300, using Labview 2009 on Windows 7, and a USB to GPIB cable.  I'm testing my set-up with the sample code provided by newport on the CD, "ESP300 GPIB Comm Test.vi", before encorporating esp300 control to my application code.  For those that haven't seen this file, it cycles between two specified positions with a delay between movements, using the 0MD? command to determine that movement has stopped.

 

With auto-serial polling turned off, I usually get this error in less than 20 cycles, regardless of the delay I choose.  I looked at the files posted previously in this forum which apparently solved the problems for others.  The send/read vi's were simply modified with a short delay (as the while loop terminates after the first iteration); 5 is greater than 0 so the loop terminates regardless of what the status register values were. Perhaps the greater than or equal to comparison vi was different in version 7?  Nevertheless, I added this while loop to my code and found that it had no effect, the time-out error persists.

 

Could someone post a simple example file that works?  Since the code provided by newport does not work, I would like to test some operational code to determine if the problem is in the code or the gpib settings.

 

Thank you,

 

Paul

0 Kudos
Message 23 of 36
(4,061 Views)

You need to make sure that the controller has firmware 3.09 installed. This document shows that this version fixes a bug with GPIB communication timeouts. Happened to came across this when I recently had to install an old application on a brandnew system where the Newport was inherited from I don't know where.

 

Finding the firmware patch on the Newport site was a pain in the ass, but Newport support should be able to provide that also.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 24 of 36
(4,048 Views)

I should have mentioned that it has been updated to version 3.09, which I understand claims to fix this bug, but I am still encountering it.  The time-out errors occur almost immediately after sending a message, so the 10 sec GPIB time-out is not the source of the error.  As such, I thought that maybe I was sending commands too fast, but adding more delays didn't solve the problem.

 

I'll do a little more work to try and figure out exactly when the time-out is occuring.  In the mean time, I would appreciate any more advice you can share.

0 Kudos
Message 25 of 36
(4,042 Views)

I've looked into it a bit more and found that my errors aren't completely random.  They always occur when trying to query after I send the command to change position.

 

The attached NI Spy image shows the commands sent prior to the error; in this case the query was "MD?" to check for movement stop.  Although "MD?" is sent numerous times during a while loop, the error only occurs immediately following the move to position command (I've watched about 40 of these errors).  Since the error always occurs at the same place in the code, I tried adding a delay, thinking maybe the messages were sent too fast.  Unfortunately, this only seemed to make the error more frequent.

 

Communication with the ESP300 stops after receiving this error, making it unreliable to automate a 3-5 hour data acquisition session.  Any advice to help solve this issue would be greatly appreciated.

 

-Paul

0 Kudos
Message 26 of 36
(4,011 Views)

You say you are writing "MD?", but on line 34296 of your attached NI-SPY screenshot, you are actually writing "0MD?"  Why is that?

0 Kudos
Message 27 of 36
(4,013 Views)

Sorry, I didn't write the 0 here.  The 0 simply means to check for stop on all axes, as opposed to using 2MD? to check for stop on only axis number 2.

0 Kudos
Message 28 of 36
(4,010 Views)

For me the MD? didn't work reliably too, but in my case it often returned TRUE while the motion had still not reached the end position. I changed my code to read the actual position and check for it to be between an Epsilon of the desired position, adding some extra delay to let the axis zoom in on the actual position, it always had some overshoot and then check again and after that switch of the axis.

 

All in all this controller doesn't impress me at all.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 29 of 36
(4,002 Views)

For what it's worth, I had success using jberney's ESP Read VI, with a few modifications:

 

VI Modifications

In words, I changed the >= to <=, the timeout from 5 ms to 10 ms, and the number of tries from 5 to 20.  The ESP300 still seems to have occasional pauses, but they no longer result in errors or the infernal BEEP.  Honestly, I can't say I understand why changing the numbers worked, exactly.  Also, I only had to replace the ESP Read function in the MD sub-VI.

 

Regarding firmwares, our controller has firmware 3.08, and getting 3.09 on there seems to be a major PITA, starting with the fact that I need to find a Windows computer around here with a serial port.  However, if anyone wants to try it, I found the necessary files here: ftp://download.newport.com/MotionControl/Archive/Motion%20Controllers/ESP300/Updates/. It seems that the ZIP file for the Motion Controller Utility is password-locked (et tu, Newport?), but you could probably use the HyperTerminal instructions to do it, if you're feeling bold.

 

EDIT: The password for the above ZIP is "newport", and you can get the full software CD here: ftp://download.newport.com/MotionControl/Archive/Motion%20Controllers/ESP300/Software/LastRevisionof...

0 Kudos
Message 30 of 36
(3,974 Views)