08-04-2008 05:53 PM
08-04-2008 09:16 PM
08-05-2008 07:09 AM
08-05-2008 02:05 PM
08-05-2008 03:38 PM
10-14-2008 04:28 PM
I was able to control Mdrives with Labvew only if use the RS232 to RS422 and standart serial RS232 port. The IMS part number is MD-CC200-000.
Using USB to RS422 generates error on Visa Write. Motor in that case still accepts the command. If you ignore the error you can live with that. However writing complex software with self diagnostics
and motor discovery is nearly impossible. The incompatibility seems to be between the IMS driver that emulates COM port and NI Visa driver.
Eliminate IMSdrive by using standart COM port on computer equipped with one or use thirt party USB-RS232 converter and then use IMS MD-CC200-000 connector.
Given that use standart VISA READ and VISA WRITE send the commands. Use CRLF symbol from Labvew to end the command in nonparty mode ore LF symbol in party mode.
Best,
Tochko
11-26-2008 03:13 PM
OK Guys,
I think this solves the problem. Look at the following article:
http://digital.ni.com/public.nsf/allkb/60DDFED7EFEFE7188625705700750821?OpenDocument
It is not Mdrive alone problem. It is a problem with a lot of USB to serial RS232/(RS-422/485) adapters. There is some sort of incompatibility with the"Transmit" buffer of these adapters. However if you use "VISA Set I/O Buffer Size" Function
to set the Transmit buffer explicitly (could be the default 4096, but other sizes work too) the error message disappears and everything else works fine. For the MDRIVE limiting the transmit buffer to 4096 is not a limitation at all, because it is nearly impossible for all practical purposes to transmit more then 4096 bytes at a time.
In the above article they recommend setting both buffers Transmit and Receive. I have found that the configuration of the Receive buffer is not necessary is a simple VI which illustrates the above solution:
Enjoy,
Tochko
11-26-2008 04:01 PM
OOps,
The VI I have posted is LV 8.6 version which might not be available for some. Here is the LV8.0 version. Sorry I can't save it for earlier versions.
Best,
Tochko
08-07-2009 03:15 PM
Has anyone tried output control for the mdrive using Labview. I am using the commands S1 = 16,1,0 to enable output 1. Then I used O1=0 and O1=0 to trigger my electronic valve. It seems like any commands I output with an equals sign in them have no effect. Anyone else run into this issue?
Thanks,
Dan
08-07-2009 05:58 PM
Found the issue. Swapped out the end of line character for a carrige return.
-Dan