08-15-2024 09:11 PM - edited 08-15-2024 09:21 PM
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.
08-15-2024 09:43 PM
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.
08-15-2024 09:55 PM
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.
08-16-2024 05:53 AM
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
08-16-2024 11:03 AM
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?
08-27-2024 09:43 AM
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