08-21-2012 10:23 PM
Hi all,
We're controlling maxon EC motors with the help of EPOS2 position controller. We are using LabVIEW to communciate with EPOS2 using USB serial port. Once after developing the program, when we click Run, a dialog box (called 'Open Device') opens propmting the user to define the type of communiction to establish (Device Name: EPOS or EPOS 2 and Protocol Stack Name: USB, RS232 or CANOpen). We are using EPSO2_USB comunication. Is there any way to make this as the default condition, so that when the user clicks run, the program starts running automatically without prompting the user to specify the type of communication,
Had added the 'Open Device' dialog box for your reference.
Thankx in advance
Solved! Go to Solution.
08-22-2012 01:17 AM - edited 08-22-2012 01:21 AM
Use VCS Open Device.vi and VCS Set Protocol Stack Settings.vi instead of InitializeDlg.vi to avoid this dialog box.
This snippet (sorry for the french comments) shows how I initialize the EPOS.
If Avec dialogue (F) is set to False, the driver will be initialized silently. If an error appears during this silent initialisation, a second attempt with the dialog box wiil be executed.
The VIs 4 and 5 are not part of maxon's library. 4 configures the operating mode of the driver and 5 en(dis)ables it.
Feel free to post back if you need further help.
Best regards
08-22-2012 01:58 AM
HI JB,
Thanks for your support.
Is it possible for you to attach the VI and its subVI's so that i can give a try with your concept. 'Cause it's too difficult for me to understand the french words.
Thanks again in advance
08-22-2012 10:01 AM
What is your LV version ? If LV2011, then you can use the VI snippet in my answer. My self-made VIs and CTLs will be missing but this will all the same be a good starting point for your own VI.
08-22-2012 10:22 AM
A LV8.0, simplified version, for the case you are using a previous version of LV and it is too complicated for you to rebuild the code.
08-22-2012 10:35 AM
Too late to edit my last message...
Obviously, don't forget to change the settings according to your USB communication before running the VI !
08-22-2012 08:54 PM
Thank you so much for your concern JB
I just configured it according to my USB communication and it perfectly worked fine.
Thanks again
06-12-2013 12:46 AM
Hi
I have a EPOS2 controller and Im trying to get a forward and backward movement of motor with labview. Im using usb connection and the only example that I can run the motor with is the demo positioning . I have no idea of how to get the code to get that movement. Is there any way of getting help with that?
Cheers
02-15-2018 12:47 PM
Hello sir,
Greetings!!! I am an aspirant of labview and learn basics of the tutorials . I am a research scolar IIT Madras India ,I am working on project where i am using Maxon motor with EPOS2 24/2 controller i used VI provided by you there was error and i found out the error is because of VCS opendevicedlg.vi is not detecting USB port it would be great help if you help me .
Thank you in advance!!!
02-20-2018 09:55 PM
HI JB,
I read your all comments given in this thread, I am using EPOS2 24/2 controller I
@JB wrote:
A LV8.0, simplified version, for the case you are using a previous version of LV and it is too complicated for you to rebuild the code.
tried your suggested VI but the problem is this USB is not detecting in LabVIEW when I saw inside of sub VI I found out VCSOpendevice.vi is having a problem, it would be a great help if you help me out