04-18-2019 02:35 PM
Hello,
I am using Labview Conex-cc driver to control the Conex-cc controller for the motion of DC servo motor which is connected to the sample stage.
Now I wrote a programme to take the velocity value and move specified distance.
What the problem is when I click to run the programme it always ask to select the connected device port to perform the task, but what I need to do is I need to define the port from begin and VI should take that port number automatically when I click run to perform the task.
It should be like if i say com15 in programme then VI should perform the task on connected device to com15, it should not ask every time.
I have attached VI for more information.
please let me know if anyone knows....
04-18-2019 02:47 PM
You don't give enough information. The code you attached shows three "mystery" VIs, "Connect Newport Instrument", "CONEX-CC Relative Move v2", and "_Close Communications". I don't have these VIs, particularly the first one, so I cannot right-click it and try to read its Help. Nor do I have the manual to see what should be connected.
Here's a useful way to provide us some additional information:
Bob Schor
04-18-2019 03:09 PM - edited 04-18-2019 03:10 PM
Conex-cc DC servo controller
https://www.newport.com/f/dc-servo-linear-stage-with-conex-controller
Manual to the Conex-cc LabVIEW driver.
https://www.newport.com/mam/celum/celum_assets/resources/CONEX-CC_-_LabVIEW_Drivers_Manual.pdf?1
I have attached the Conex-cc Labview driver, just download it and copy the conex folder to labview (user.lib) folder.
VI
1) connect (which shows the all connected device to the PC) and then we have to select the port , then it perform establish the communication to perform the task on the device connected to the selected port.
2) relative move . move the stage according to given number.
3) close . it close the communication
My device is already connected to the COM15 port, which I have to select every time as you can see in
screenshot in a question.
DC servo controller is connected to the PC Via USB port(COM15).