PDA

View Full Version : Serial plugin - possible to disable and enable port/device?



Ron
October 13th, 2002, 12:55 PM
In the Girder tab there is

enable device
disable device

in the text box below you enter the number of the plugin to be enabled/disabled in your case 140.

Mark F
October 13th, 2002, 12:55 PM
Yes. 3.0.3 allows you to disable/enable each device via a command.

Mark F
October 13th, 2002, 12:55 PM
Of course, Ron is right. :) However, the Girder dis/enable commands work at a plugin level.

For most plugins, this is perfect; but, the serial plugin can use multiple serial devices (com ports) at the same time. So I added the commands to allow you to dis/enable a single serial device while leaving the rest the way they are.

Now you can choose the command that best suits your needs for a situation. ;)

You can also mix-and-match as you wish. For example, you can use the plugin level command to turn them all back on even if you have only turned off one or two using the device level command. Or you can turn them all off at the plugin level and turn on one or two at the device level.

The only caveat is that if a device is enabled and you enable it, the COM port will be closed and re-opened.

Mark F
October 13th, 2002, 12:55 PM
Adding a new serial command to a command file? I'm pretty sure you have done this before. ;)

Add a command to the tree.
Choose Serial Commands off of the plugin tab.
Press settings.
Choose one of the radio buttons (disable device or enable device instead of send data).
Make sure the name of the serial port you care about is in the button at the bottom.
Press OK or apply.

If the name of your device is not in the button at the bottom, press the button and choose your device.

rickd
October 13th, 2002, 12:55 PM
I have the serial plugin returning status on my Cass 2 and Barco so I know what state it is in. ie everytime something is done to the cass or barco it returns all the data regarding it's state and triggers a series of events (using On Serial event) .

Example turning off the Cass triggers a serial event which then enables me to check state and pull the screen up and turn the projector off even if you do it from the front panel of the processor.

Occassionally though there are two many events going on and there can be problems so I want to in certain situations not pass the received serial event from a given device to girder....however I still may want to send......

Can I disable and enable a device or com port under the serial plugin?

I have tried disabling the event or group which is triggered by a serial event but as soon as you enable it it seems to react to the events you sent anyway

Thanks rick

rickd
October 13th, 2002, 12:55 PM
Whats the command thanks Mark

rickd
October 13th, 2002, 12:55 PM
Mark Ron thanks ....I say the device enable etc I really want to use the port enable disable.... Mark how do I use that I am not at home right now so cannot look in your readme if it's there which I presume it is......thanks Rick

rickd
October 13th, 2002, 12:55 PM
Just too obvious :wink:

thanks Mark