05-30-2008 03:23 AM
Really? If memory serves, you should get an error to the effect of "resource already in use" or something similar.
Ravens Fan wrote:
The error sounds like the kind you get if a different application has the Com port open.
05-30-2008 09:06 AM
05-30-2008 12:32 PM
tst wrote:
Really? If memory serves, you should get an error to the effect of "resource already in use" or something similar.
Ravens Fan wrote:
The error sounds like the kind you get if a different application has the Com port open.
Hi Tst,
You're right. If the resouce is in use the error is -1073807246 The resource is valid, but VISA cannot currently access it. I couldn't remember the exact wording for it. The error description of I/O error and the fact he was swapping between multiple propgrams made me think of serial port conflict. I just didn't have a means to test out the theory at the time.
So now I'm curious exactly what causes the error he is getting, and what is causing it to work now, but not all the time.
07-25-2008 10:34 AM
08-08-2009 11:46 PM
This code
http://forums.ni.com/ni/board/message?board.id=170&message.id=236010#M236010
seems to solve the problem for me, although the motor seems to ignore parameter set commands.
I'm using an IMS MDrivePlus2, part number MDI4MRQ23C7
Thanks to Brian Beal.
08-10-2009 11:13 AM
There's another link you might not have seen...
http://digital.ni.com/public.nsf/allkb/60DDFED7EFEFE7188625705700750821?OpenDocument
Which specific parameter set commands does it seem to ignore? Note that the drive includes some commands that are saved immediately, while others will be lost by a reset or power cycle if not specifically saved. Are you seeing an actual error from either VISA or the drive, or is it that behavior is not as expected? I'd strongly advise exercising each command of interest from either HyperTerminal or the IMS provided terminal program to confirm syntax of the command and response relative to the command reference documentation. Contact IMS if you have trouble at this level.
You might want to start a new thread for command specific issues.
Regards,
Brian