LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView and Newport ESP301 motion controller communication error

Hello, 

 

We have a labview program to control Newport esp301 motion controller which was working fine. The controller was connected to the PC using a USB (usb a to usb b) cable at COM4. The NI MAX app previously shown the ports under the Devices and Interfaces tab (please see 1st attachment). But yesterday, I disconnected the USB cable from the motion controller and connected a function generator by it because I had to run an experiment with it and then I connected it back to the motion controller. But since then, the program is showing VISA open error (please see 2nd attachment) and NI MAX app is not showing the ports as before under the Device and Interfaces tab (please see 3rd attachment). I have reinstalled the NI MAX app and updated Newport driver, but nothing is working. The windows device manager in our PC is showing the Newport device but I don't understand why LabView and NI MAX can't recognize it anymore. Can anyone please help me out with it? I will be really grateful for it. The whole block diagram for the program is provided as the 4th attachment. 

 

 

0 Kudos
Message 1 of 6
(407 Views)

It is possible that Windows assigned a new COM port number when you connected back the Newport controller after connecting the func generator.

 

Ensure you're selecting the right COM port in the resource control for the motion controller.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 6
(392 Views)

Thank you so much for the reply. I checked the VISA resource names and ensured they match with what the Windows assigned it to. But unfortunately the problem still persists. And the thing I am really worried about is why the NI MAX cannot detect the device as before. May I know any way by which I can solve this? Thanks again.

0 Kudos
Message 3 of 6
(383 Views)

Try resetting the NI MAX database.  This works for me about 50% of the time. 😀

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8awSAC&l=en-US

 

BR

John

Add motion to LabVIEW in 30min or less - TENET EMotion
Finding it hard to source legacy NI hardware? Try Extend Test

Message 4 of 6
(347 Views)

Thank you so much for the reply. I want to try resetting the Database. Just a question out of caution, will that delete my existing LabView program files?

0 Kudos
Message 5 of 6
(328 Views)

Nope, resetting your MAX database will have no effect on your LabVIEW program files.

 

BR

John

Add motion to LabVIEW in 30min or less - TENET EMotion
Finding it hard to source legacy NI hardware? Try Extend Test

0 Kudos
Message 6 of 6
(260 Views)