Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Thu Nov 23, 2017 11:29 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Slider help
PostPosted: Tue Aug 19, 2014 1:17 pm 
Offline

Joined: Tue Aug 19, 2014 1:09 pm
Posts: 1
I am using a cueserver to control some lighting, and want to use a slider to give the value of the slider to a cueserver command when the slider is moved. (i.e. when the slider moves halfway send the command "cue3@(slidervalue)". I cannot get the syntax correct. Could you help?


Top
 Profile  
 
 Post subject: Re: Slider help
PostPosted: Tue Aug 26, 2014 11:32 am 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
You are probably looking at something like

Code:
dim toSend as string

'Use this line to convert a floating point value to a string
toSend = "cue3@(" + str(slider_1.value) + ")" 

'Use this line to convert the floating point value of the slider to an integer then the integer to a string
toSend = "cue3@(" + str(integer(slider_1.value)) + ")" 


Note you should use one of the conversion lines or the other but not both.
Replace slider_1 with the name of your slider.

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group