Welcome, Guest
Messages posted to this category need to be reviewed by the moderator before it gets posted.
  • Page:
  • 1
  • 2

TOPIC: Communicating smartmotor to labview

Communicating smartmotor to labview 5 years 8 months ago #809

  • iiamwill
  • iiamwill's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 1
Does anyone have the VI to communicate the smartmotor to labview 2012? I am trying to control the smartmotor to labview, which then prints out the data in excel. Thanks!

Also I am using the legacy smartmotor.
The administrator has disabled public write access.

Re: Communicating smartmotor to labview 5 years 8 months ago #810

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
I'm sorry... but we don't have a VI example to provide from Animatics. Other users have created these... but cannot post them on the forum due to file type. It is possible though... as many applications are operational using Labview with SmartMotors.
The usual approach is to send ASCII commands to the motor via RS232. Some values are write only... while others expect a response from the motor. Valid response data is followed by either a CR(0x0A) or a SPACE(0x20). These delimiters are also valid for commands sent to the motor.
The default values for RS232 communication to the SmartMotor are...
9600 Baud
8 Data bits
No parity
1 Stop bit

Note: You should verify communications to the motor with our SMI2 software before trouble shooting your Labview application. You can also use our Serial Data Analyzer to verify communications between Labview and the SmartMotor.
Last Edit: 5 years 8 months ago by csearcy.
The administrator has disabled public write access.

Re: Communicating smartmotor to labview 5 years 8 months ago #811

  • BrianPD
  • BrianPD's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 1
I wrote a program in Labview 7.1 that controls two SmartMotors separately (not daisychained, just different RS232 ports). I used the old VISA read/write VIs and I would be surprised if it didn't run in Version 12. The motors each have a short program uploaded to them via the SmartMotor Interface that configures the limit switches, but after that it's all Labview. This was the program burned onto one of the motors:
UCP set I/O port C as CW limit
UDM set I/O port D as CCW limit
F=1 motor decelerates on hitting limit
A=10 enough acceleration to see ramp
V=60000 enough velocity
END

I also write comma-separated-variable files that can be opened in Excel... I'd be glad to share my code with you but don't know how to do that through this (or any) forum. Maybe the moderator will give you my email address.
The administrator has disabled public write access.

Re: Communicating smartmotor to labview 5 years 8 months ago #812

  • iiamwill
  • iiamwill's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 1
I would like that. You could email me back at <This email address is being protected from spambots. You need JavaScript enabled to view it.> I would like to discuss more as to how to build the VI up. Thanks for the reply Brian. Hope to talk to you soon.
The administrator has disabled public write access.

Re: Communicating smartmotor to labview 5 years 8 months ago #813

  • csearcy
  • csearcy's Avatar
  • OFFLINE
  • Moderator
  • Posts: 459
  • Thank you received: 77
  • Karma: 23
I'm sorry we are having trouble sending contact info and files between people trying to help each other with LabView on the forum.

For a quick fix..... send an email with the topic forum... to This email address is being protected from spambots. You need JavaScript enabled to view it. ... and ask that chuck is copied on the email (a forum user name from you may help). I'll try to work out a safe exchange of files without breaking any forum rules.
The administrator has disabled public write access.

Re: Communicating smartmotor to labview 5 years 8 months ago #815

  • iiamwill
  • iiamwill's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 1
I sent the email over to support. How would I go from there?
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.268 seconds
Powered by Kunena Forum