Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using MForce micro drive with VISA commands

 

Hello.  I recently purchased a MForce Micro drive (http://imshome.com/products/mforce_microdrive_mfm.html), and I would like to use Labview to control it.  I currently don't have the stepping motor, but I should be getting it in the mail in a couple of weeks.  Although I was hoping that I could start some of the Labview programing before the motor arrives.  I am very new to using the VISA commands and to motion control, so please keep that in mind...

 

I downloaded the example programs from IMS (http://www.imshome.com/support/example_programs.html, V8.6 downloaded and I am using Labview 2009), and it looks like the "MDrive_Data_Collection(example) VI" is the main VI to use.  When I simply try to run this program I get the following error " A framing error occurred during transfer." after using the "MDrive_Set_Parameter VI": 

 

"Error -1073807253 occurred at VISA Read in MDrive_Set_Parameter.vi-

>MDrive_Data_Collection(example).vi

Possible reason(s):

VISA:  (Hex 0xBFFF006B) A framing error occurred during transfer.

 

It seems that it always gives the error no matter which parameter I am trying to change (Echo Mode, Acceleration, Velocity, etc.).  Also it gives me a warning sometimes instead that I don't understand (especially after I run it once):

Warning 1073676294 occurred at VISA Read in MDrive_Set_Parameter.vi->MDrive_Data_Collection(example).vi

Possible reason(s):

VISA:  (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.

 

"Warning 1073676294 occurred at VISA Read in MDrive_Set_Parameter.vi->MDrive_Data_Collection(example).vi Possible reason(s):VISA:  (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available."

 

It doesn't give me an error or warning after the 1st VI "MDrive_Init_Com", so I think everything is configured correctly.  Any suggestions on what might be causing this error/warning, and how I can get this example program to work?  Thanks.

 

Kevin 

 

0 Kudos
Message 1 of 2
(3,314 Views)

The framing error indicates a problem in the serial setup. Usually, you have a mismatch with parity, stop bits, etc. Make sure the configuration of the pc and the instrument are an exact match. You can do a search for the error code.

 

The warning is normal when you do a read, do not have the enable termination character set, the instrument does not send a term character, and you are using the VISA Bytes at Serial. You can also search for this error code but since it is just a warning, ignore it.

0 Kudos
Message 2 of 2
(3,308 Views)