best way to send rs232 command from QLab

1,705 views
Skip to first unread message

moo kai

unread,
Apr 10, 2014, 12:41:45 AM4/10/14
to ql...@googlegroups.com
Dear All,

I would like to send send rs232 command from QLab to video switcher and projector, How can I do for this?

Best regards,
Kai

nizer

unread,
Apr 10, 2014, 8:34:02 AM4/10/14
to ql...@googlegroups.com
I use a program called Cool Term ( Mac) and a applescript to activate it.

tell application "CoolTerm"
activate
delay 1
tell application "System Events"
keystroke "0"
end tell
end tell

moo kai

unread,
Apr 10, 2014, 9:33:07 AM4/10/14
to ql...@googlegroups.com
Hi nizer,

I would like to send 2 port of rs232 and Can you make some example for me with applescript please,
1. "i" + "1" this send to rs232 port 1 for video selector to input 1
2. "@1 n1"  this send to rs232 port 2 for Relay Board and On port 1

Regards,
Kai


เมื่อ วันพฤหัสบดีที่ 10 เมษายน ค.ศ. 2014, 19 นาฬิกา 34 นาที 02 วินาที UTC+7, nizer เขียนว่า:

S!mon-R

unread,
Apr 10, 2014, 4:47:00 PM4/10/14
to ql...@googlegroups.com
Better and faster way using CoolTerm (you don't need to active the app!!!)  :
First you open and connect a terminal to your rs232 adapter.  Then, you save it using a common name (here, I used "CoolTerm.stc")

Then you use these line as applescript cue in QLab :
tell application "CoolTerm"
WriteLine {"CoolTerm.stc", "test"}
end tell

In your case, If you use 2 ports, you should then have 2 coolterm windows, one for each port and saved in 2 different files (let's say coolterm_video.stc and coolterm_relay.stc
Then, you'll have :
tell application "CoolTerm"
WriteLine {"coolterm_video.stc", '"i" + "1"'}
end tell

or, without the " :
tell application "CoolTerm"
WriteLine {"coolterm_video.stc", "i + 1"}
end tell

And
tell application "CoolTerm"
WriteLine {"coolterm_relay.stc", "@1 n1"}
end tell

Have fun ;)

S!mon-R

unread,
Apr 10, 2014, 5:03:19 PM4/10/14
to ql...@googlegroups.com
OH, I forgot to mention that you should save your coolterm file in the root of your hard drive with the described method or you'll have to specify the full path of your file in the applescript...

freeun...@gmail.com

unread,
Apr 10, 2014, 6:27:49 PM4/10/14
to ql...@googlegroups.com
By root do you mean in the same location as the saved Qlab file? Where is root?

Thanks. 

PS: I like your way better ;-)


--
--
Change your preferences or unsubscribe here:
http://groups.google.com/group/qlab
 
Follow Figure 53 on Twitter: http://twitter.com/Figure53

---
You received this message because you are subscribed to a topic in the Google Groups "QLab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/qlab/cS9Ze8iOKA4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to qlab+uns...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nizer

unread,
Apr 10, 2014, 7:56:50 PM4/10/14
to ql...@googlegroups.com
That is amazing!!!!!

Thank you!!!!

S!mon-R

unread,
Apr 11, 2014, 3:44:49 AM4/11/14
to ql...@googlegroups.com
Root is Macintosh HD/CoolTerm.stc

Phil Downing

unread,
May 22, 2019, 12:02:01 AM5/22/19
to QLab
This just helped me immensely... 5 years later.. Thank you!
Phil.
Reply all
Reply to author
Forward
0 new messages