LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting my stepper motor to work

 
Hi, I'm still having problems getting the stepper motor to respond to my labview commands.
 
I have looked at loads of webpages, example code and other forum threads and tried a few fixes
 
Portmon gave me the following information for the stepper...
 
Baud rate 9600,
8 data bits,
no parity,
1 stop bit,
no flow control.
I have inputted this info into the code 'zero stepper.vi' (attached)
 
The movement strings which the stepper responds to are
 
'MR' for move relative and then a value of steps
 
for instance MR 1232543545
 
I have inputted this value into the 'string to write' box and nothing happens when I run the VI
 
Are there any other syntax's etc... which I need to include in the 'string to write box'? or is my stepper just not responding?
 
When I debug the VI it runs through no problems
The Stepper motor manufactures have been pretty un helpful, and have never heard of a program called LabView !
 
Any tips would be greatly appreciated
 
Cheers Wes
0 Kudos
Message 1 of 5
(3,018 Views)
Wes,

Does the stepper motor controller require a carraige return or line feed at the end of each command? Many devices do. If so you will need to send that. Even if you do not have the command syntax for the controller, it is easy to try the common termination characters. Set the "string to write" to '\' codes display and you will be able to see and send non-printing characters.

Lynn
0 Kudos
Message 2 of 5
(3,015 Views)
Hi Lynn, The documentation I have doesn't say that a carriage return or line feed is needed.
 
I set the string to write properties to backslash and had no joy either
 
I have tried using '/r' which other people have used with their stepper motors and this does nothing either Smiley Sad
 
Are there any other possibilities which I could research?
 
Regards Wes
 
 
0 Kudos
Message 3 of 5
(3,005 Views)
Does your stepper motor work if you enter the command through Hyperterminal?

I've modified your vi to append a carriage return to the command you send to the motor.  You can replace the carriage return with a linefeed if that's what you need.
----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
Message 4 of 5
(2,999 Views)

Mate your a legend

 

Cheers Wes

0 Kudos
Message 5 of 5
(2,984 Views)