Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

MVP 2001

Hi,
 
I have been trying to control a servo motor using MVP 2001 (MicroMO Electronics) through Labview Program.  I have been able to initialize the controller in remote mode using the software provided by MicroMo. But I am not able to initialize this VISA resource in my Labview programSmiley Sad
 
The controller is connected through a serial Smiley Sadto USB converter (Keyspan) and shows its port as COM6 in NI MAX. 
 
 When I am using the actual instrument driver ( in program) I am not able to get COM6 port in my I/O resource. My program compiles and when I start the program the interface name in NI MAX becomes unknown! Smiley Surprised
 
Thank you,
 
PSD


Message Edited by psd on 06-18-2008 10:28 PM
0 Kudos
Message 1 of 9
(5,013 Views)
Have you been able to communicate with the device directly through MAX using the VISA Test Panels? Try that and see if it works.

Additionally, you might want to check the I/O filtering settings for the interface name. Right-click on the VISA Resource Name control > I/O Name Filtering > General. Under Show Aliases, choose "All defined resources..." In the Advanced tab, make sure "Allow undefined names" is checked.

Let us know how it goes!

Rasheel
0 Kudos
Message 2 of 9
(4,987 Views)

Hi Rasheel,

                    At the start, I am able to see the COM6 port in NI Max, with interface identified as "Keyspan.." and it can be validated. But once I run my program the interface becomes "unknown" and it says that " the resource is valid but VISA cannot access it"

As for accessing the port from the labview program,  I can now see the required port (COM6) in my I/O control. But now I am facing a new problem - the MVP 2001 does not initialize. 

As for the program sequence, I am using "Visa Open" to access the VISA resource, which I am converting to a interface number through a property node. I am feeding the interface number to the instrument driver which sets up the serial port and VISA. 

I hope, I have been able to explain the status.

Thanks in advance.

PSD.

 

 

0 Kudos
Message 3 of 9
(4,967 Views)

Hi PSD,

At the start, I am able to see the COM6 port in NI Max, with interface identified as "Keyspan.." and it can be validated. But once I run my program the interface becomes "unknown" and it says that " the resource is valid but VISA cannot access it".

What program are you refering to, the LabVIEW program, or the software provided by MicroMo? If you run the MicroMo program, it might be tying up the resource and not allowing MAX to access it. Two different programs cannot access the same resource at the same time. It is possible that this is happening.

The instrument driver that is uploaded here was actually created by MicroMo, and the readme.txt has some information on how to use the drivers. Have you tried using some of the examples in the driver?

Rasheel
0 Kudos
Message 4 of 9
(4,924 Views)

Hi Rasheel,

                   I have been able to access the motor and the program is now running. Putting a time delay in  VISA opening solved the problem.

Thank you once again for your suggestions - the examples of MicroMO you mentioned did help me in solving this.

PSD. 

0 Kudos
Message 5 of 9
(4,908 Views)

Good day,

I know this might be an old mail but like they said the older they get the better they sometimes become.

I would like you(judging by this post) to please assist me with the MVP2001. I have been trying to use the example for almost 2 weeks without progress. Nothing in it seems normal for me. For example, their is an example on absolute and relative position. Any time I input basic commands from motion manger like EN, POS, LA, M, the vi run continuously without driving my motor. Please kindly assist if you have any material to assist me with.

Thanks.

0 Kudos
Message 6 of 9
(4,376 Views)

Hi osmosis,

 

Have you been able to get your motor working with the Measurement and Automation Explorer (MAX)? If so, were you able to send commands to your device using the VISA test panels in MAX?

0 Kudos
Message 7 of 9
(4,357 Views)

Thanks Jeff,
I have been able to communicate with the instrument using the Advanced Serial Write and read vi. In which I do type the commands into the serial write and the motor responded well. Also I used Instrument I/O assistant and it also responded. But my problem in both cases is  that I want to send more than one command say for example if you want to enable motor to move to a position, you need to send first EN command to enable the drive, then send LA1000 (if for example you want to send the motor to position 1000) and the M to perform this drive. Using the advanced serial write and read,1)  how do I write the three commands to be performed in that order  and send it to the motor drive?

 

Secondly using I/O I, I tried to used query and parse and write using add steps, 2) but how do I now convert all the steps to a vi with all the commands is a problem.

 

Kindly assist on this two issues anybody,

 

Thanks all.

0 Kudos
Message 8 of 9
(4,352 Views)

What was confusing about the answers you got here or here?

 

At the very simplest, you just have a VISA Write for each command you want to send. A constant wired to the input will do the the trick. As already mentioned, each command could be single state in the state machine. As already mentioned, you can place each of the commands in an array and wire the array to a VISA Write inside a for loop.

 

 

Message 9 of 9
(4,348 Views)