Trinamic Discussion Groups Forum Index Trinamic Discussion Groups
For quick support, please browse or search the forum!
 
 FAQFAQ    Impressum   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

LabView: Operation of the TMCM-modules with LabView

 
Post new topic   Reply to topic    Trinamic Discussion Groups Forum Index -> LabVIEW (TM) specific issues
Print this topic :: View previous topic :: View next topic  
Author Message
Rajesh Kakde (TRINAMIC)
Power User
Power User


Joined: 20 Jul 2006
Posts: 61

PostPosted: Tue Jul 25, 2006 4:58 pm    Post subject: LabView: Operation of the TMCM-modules with LabView Reply with quote

Hallo,

gibt es für den TMCM-612 schon ein vorgefertigten Programmbaustein für LabView zum Betrieb über einen PC (direct mode)? Oder muss man sich dies selbst in LabView programmieren? Wenn nicht, auf was muss man achten?
Back to top
View user's profile Send private message
B. Dwersteg (TRINAMIC)
TRINAMIC master
TRINAMIC master


Joined: 25 Jul 2006
Posts: 820
Location: Hamburg (Germany)

PostPosted: Tue Jul 25, 2006 4:59 pm    Post subject: Reply with quote

Labview-Treiber haben wir leider nicht zur Verfügung, wir haben jedoch bei Kunden schon Integrationen in LABview gesehen.
Ein Hauptproblem ist unter LABview das senden von Binärcodes - ggf. ist es einfacher, wenn Sie das Modul im ASCII-Modus betreiben.

---
We do not have LABview drivers available, but we have seen customers using the TMCL based modules with LABview. It might be simpler to operate the module in ASCII mode in order to be able to send the command as normal strings.


Last edited by B. Dwersteg (TRINAMIC) on Wed Oct 04, 2006 12:09 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
karl.ranseier
User
User


Joined: 19 Oct 2006
Posts: 12

PostPosted: Thu Oct 19, 2006 5:33 pm    Post subject: Reply with quote

Noch an einer Lösung interessiert? Ich habe eine Steuerung geschrieben. War aber ein bißchen Arbeit.
Back to top
View user's profile Send private message
SaWi
User
User


Joined: 26 Oct 2006
Posts: 4

PostPosted: Thu Oct 26, 2006 10:16 am    Post subject: Reply with quote

Hallo,
ich bin an einer LabView Implementierung interessiert!!!

würde mir ne menge arbeit sparen!!

Sascha
Back to top
View user's profile Send private message
SaWi
User
User


Joined: 26 Oct 2006
Posts: 4

PostPosted: Thu Oct 26, 2006 10:26 am    Post subject: Reply with quote

Hallo,
ich entwickle gerade eine Steuerung eines Kreuztisches mit Labview und einem TMCM 310 Modul. Leider stellt sich das als recht schwierig heraus. Zusätzlich möchte ich den Tisch über die I/O Pins mit einem Joystick steuern. Aber irgendwie ist das nicht ergonomisch :(
Scheinbar ist die Zeit zwischen Befehl und Antwort das Problem. Wie kann ich die verkürzen?!

Sascha
Back to top
View user's profile Send private message
Olav Kahlbaum (TRINAMIC)
TRINAMIC master
TRINAMIC master


Joined: 11 Aug 2006
Posts: 950

PostPosted: Thu Oct 26, 2006 11:48 am    Post subject: Reply with quote

Die Antwortzeit kann man verkürzen, indem man die Baudrate erhöht. Bei 9600 Bits pro Sekunde dauert das Senden eines 9-Byte-Telegramms ca. 9.5ms und die Antwort (ebenfalls 9 Bytes) natürlich genau so lange. Bei 38400 Baud wären es nur noch 2,3ms.
Achtung, die Einstellung 115200 beim TMCM-310 hat eine recht große Abweichung und funktioniert deshalb mit vielen PCs nicht. Aber 57600 ist auch gut (das wären dann 1.5ms pro Telegramm und natürlich auch ebensolange für die Antwort).
Noch schneller geht's mit CAN-Bus.
Back to top
View user's profile Send private message
B. Dwersteg (TRINAMIC)
TRINAMIC master
TRINAMIC master


Joined: 25 Jul 2006
Posts: 820
Location: Hamburg (Germany)

PostPosted: Thu Oct 26, 2006 4:11 pm    Post subject: Joystick control using the analog inputs of a module Reply with quote

A joystick control can be perfectly directly realized in the module using a little TMCL program. The TMCL program can work in parallel to commands coming from a computer! You can influence the TMCL program behaviour from the computer by communication via variables, e.g. to disable / enable joystick control
Back to top
View user's profile Send private message Visit poster's website
karl.ranseier
User
User


Joined: 19 Oct 2006
Posts: 12

PostPosted: Sun Oct 29, 2006 4:20 pm    Post subject: Reply with quote

Also, zum Thema Labview und Trinamic-Motoren. Ich arbeite im ASCII-Modus und über die RS232 Schnittstelle.

Das Standard-Serial-read-and-write VI von labview ist wie folgt strukturiert:
Öffne seriellen port, schreibe alle bits, lese eine gewisse anzahl an bits, schließe port.

Standardmäßig sind die Trinamicmodule aber so eingestellt, daß jeder Buchstabe eines Befehls sofort zurückgegeben wird. Soll heißen: paßt nicht zu den standard-VI´s. Entweder man programmiert das VI um, oder aber man ändert das Verhalten des Moduls:

Global Parameter 67 auf 10000 setzen.

beachte dabei: bit 0 ist der letzte (also in diesem Fall eine 0), bit 4 in diesem Fall der erste, also eine 1.

Was das bedeutet, kann man hier nachlesen (seite 57):
http://www.trinamic.com/tmc/media/Downloads/modules/TMCL/TMCL_reference.pdf

Ich habe mir übrigens angewöhnt ein Konfigurationsscript für die verschiedenen Motoren zu schreiben. Also ein TMCL-Programm, daß die Einstellungen vornimmt. So kann man diese auf beliebige Motoren kopieren und man muß nicht jedes Mal jeden Befehl neu eingeben.
Die baudrate kann man da natürlich auch wunderbar einbauen (wie siehe SGP 65). Nur bedenken, daß das TMCL-IDE Programm entsprechend umgestellt werden muß.
_________________
PANdrive 110-42
RS232
Back to top
View user's profile Send private message
SaWi
User
User


Joined: 26 Oct 2006
Posts: 4

PostPosted: Mon Oct 30, 2006 2:47 pm    Post subject: Reply with quote

Thanks for your quick answers. I did not know that a TMCL Program can work paralell to the Serial Interface. I'll have a try!

with best regards

SaWi
Back to top
View user's profile Send private message
Andrew
Master
Master


Joined: 06 Nov 2006
Posts: 258
Location: Europe

PostPosted: Wed Dec 13, 2006 1:03 pm    Post subject: DLL for LabView Reply with quote

Bernhard Dwersteg wrote:
We do not have LABview drivers available, but we have seen customers using the TMCL based modules with LABview. It might be simpler to operate the module in ASCII mode in order to be able to send the command as normal strings.

ASCII mode is nod very time efficient. Also it is more difficult to process a reply from module in order to know of errors.

Binary mode in LabView is as comfortable.

But the biggest problem is perhaps not the mode, but operation as a whole (settings, replies, interpratation of errors, programmed operation, trouble shooting, etc.).

I have my own DLL for TMCL available. I describe it here:
http://www.trinamic.com/ttdg/viewtopic.php?t=30
I call it TMCM-DLL. It takes care of most of the issues.
You can connect the DLL to LabView directly. Then use the TMCM-DLL as a simple collection of functions.
You may read more on binary mode data sizes, and on the DLL here:
http://www.trinamic.com/ttdg/viewtopic.php?t=98

You may want to try my DLL.
It is not only a DLL. It is a kind of a development environment.
It does work with LabView. It is not free. But I may bundle it for my regular customers, as a ditributor.

Bernhard, I suggest you rename this theme to simply "LabView". I remember I have seen another theme also named simply "LabView" somewhere, but can't locate it via search function using this term "*lab*view*".
There are a few other topics, which mention LabView and National Instruments. It would help, if you consolidate those messages all into this single topic.

_________________
Distributor of Trinamic
Our TMCM-DLL is here (not free): http://www.trinamic.com/ttdg/viewtopic.php?t=30 | Power supplies: http://www.trinamic.com/ttdg/viewtopic.php?t=394
On request: System integration services, custom programming, mechanics,etc
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Trinamic Discussion Groups Forum Index -> LabVIEW (TM) specific issues All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group