06-18-2008 10:23 PM - edited 06-18-2008 10:28 PM
06-19-2008 02:20 PM
06-20-2008 10:24 AM
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.
06-23-2008 12:45 PM
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?
06-23-2008 10:19 PM
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.
11-26-2011 12:50 AM
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.
11-28-2011 01:19 PM
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?
11-28-2011 04:17 PM
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.
11-28-2011 04:26 PM
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.