Profile

Martin Collett

Contact Details

My Content

1 to 20 of 25 total
Posted By Martin Collett 02-25-2017 12:21
Found In Egroup: Facility Control
\ view thread
James, many thanks, I think this is a neat way of solving the problem. I'll let you know how I get on with implementing this in my project. #DashBoard
Posted By Martin Collett 02-09-2017 17:26
Found In Egroup: Facility Control
\ view thread
You need to declare the variable x somewhere. This should work: for (var x = 0 ; x < 64; x++)( ... ) #DashBoard
Posted By Martin Collett 02-08-2017 12:41
Found In Egroup: Facility Control
\ view thread
Hi, I'm sending commands to a device using ogscript.sendUDPAsBytes. The device responds via UDP to the port that is specified as the source port in the initial command. Unfortunately Dashboard (running in Windows) appears to send a random source port in the UDP so I can't setup a listener to receive ...
Posted By Martin Collett 02-06-2017 18:43
Found In Egroup: Facility Control
\ view thread
I think there is one last optional parameter to ogscript.asyncHTTP, if set to true then reply to the request is passed to the callback function. It defaults to false. All working well now for me! #DashBoard
Posted By Martin Collett 02-01-2017 12:36
Found In Egroup: Facility Control
\ view thread
This update is great, I will use this in my application. Tested, and works exactly as described. Again, many thanks! #DashBoard
Posted By Martin Collett 01-30-2017 17:33
Found In Egroup: Facility Control
\ view thread
Ah, I have answered my own question! Beta version 8.2 does send a text/xml content-type. I was previously testing using release version 8.1.2 which doesn't. As ever, thanks for the help! #DashBoard
Posted By Martin Collett 01-29-2017 23:15
Found In Egroup: Facility Control
\ view thread
Hi James, I've tried making my data segment start with I've pasted the code that is attached to a button, below, can you see where I'm going wrong? For testing the 'url' parameter contains 'http://127.0.0.1:80', my testing server runs locally and listens on port 80 var data = 'hey there'; ...
Posted By Martin Collett 01-15-2017 22:16
Found In Egroup: Facility Control
\ view thread
Thanks James, this sounds like it will work for me. I will modify my data segment to see if it does the job. #DashBoard
Posted By Martin Collett 01-12-2017 13:07
Found In Egroup: Facility Control
\ view thread
Hi, I have an application where I need to change the Content-type header that ogscript.asyncPost sends to 'text/xml'. Currently it send a Content-type of [I]application/x-www-form-urlencoded [/I]- might there be a way to change this? Many thanks, Martin
Posted By Martin Collett 08-25-2016 16:36
Found In Egroup: Facility Control
\ view thread
James, I missed your post. Thanks, this sounds like a great way to detect multiple instances running, it will be in my finished panel! #DashBoard
Posted By Martin Collett 08-18-2016 16:24
Found In Egroup: Facility Control
\ view thread
Hi James, the Layout trick works brilliantly, thank you. I'll try to build something into my code that can trap the multiple instance problem. thanks again, Martin #DashBoard
Posted By Martin Collett 08-17-2016 14:12
Found In Egroup: Facility Control
\ view thread
Hi, two questions, possibly vaguely related... Is there a way to prevent multiple instance of Dashboard from running. I find I get Java errors related to sockets in use if a second instance of my Dashboard is opened - I'd like to catch these error gracefully, or prevent two instances of ...
Posted By Martin Collett 08-16-2016 07:17
Found In Egroup: Facility Control
\ view thread
Thanks James I'll stop looking for a way, I can use an array with all the IDs in. The panel controls a comms matrix and the buttons are lit individually by strings that comes back from the matrix. The first three characters of the button ID determine the on (and off) colour of the button ...
Posted By Martin Collett 08-13-2016 07:35
Found In Egroup: Facility Control
\ view thread
Hi, I have a large number of buttons on a Dashboard panel. I'd like to loop through them all and set their colours dependent on the initial characters of their ID. I'd prefer to not have to list each button individually in the code, any idea how I can read the contents of the panel so I can do ...
Posted By Martin Collett 06-20-2016 15:29
Found In Egroup: Facility Control
\ view thread
I've found that by ticking the 'Execute Immediately' box in the API Attributes, if I have a syntax error I get a red warning message at the top of the Dashboard and a debug message that can help track the problem down. Unticking the box kills the messages. #DashBoard
Posted By Martin Collett 05-10-2016 15:41
Found In Egroup: Facility Control
\ view thread
Thanks James, I'll turn the brightness up a bit! #DashBoard
Posted By Martin Collett 05-10-2016 12:51
Found In Egroup: Facility Control
\ view thread
Hi, I'm changing the background colour of pushbuttons using the setStyle bdr# command to show a lit and unlit state. The shading on the pushbutton is making the lit state dim, is there any way to remove the shading? I have already set the style / background to 'flat' in the button edit ...
Posted By Martin Collett 05-06-2016 19:04
Found In Egroup: Facility Control
\ view thread
Hi James, thank you so much, this is exactly what I was looking for. I think the first method is the one I'll use, I'll let you know how it goes. All the best, Martin #DashBoard
Posted By Martin Collett 05-06-2016 10:00
Found In Egroup: Facility Control
\ view thread
Hi, I'm trying to implement a Push To Talk button in Dashboard to control a talkback system. The ogscript task on a pushbutton gets fired when the button is released, is there any way to fire a task as a button is pushed too?
Posted By Martin Collett 05-04-2016 15:13
Found In Egroup: Facility Control
\ view thread
Shane, I've had a play with the rosstalk.sendmessage command. I can see that this is difficult if you use the Dashboard tool that builds rosstalk commands for you. If you dive in and edit the source on the button to this it should work: ogscript.debug ('My current layer number is: ' + layerNum); ...