Are you trying to dertmine if a port has been defined for a particular TP or what port on a TP may have triggered the current event?
In either case you would need to use the embedded object.
If you're trying to determine if a port has been defined then you would need to use a DATA_EVENT handler since if a port is defined it will generate an online event during start up so you could use that event to set a flag in an array like this:
DATA_EVENT[dvTPDevicePort]//IP or SERIAL COMMS
{
ONLINE:
{
nTP_PortsUsedArry[data.device.port] = 1 ;
//other stuff ;
}
}
I don't now what you would do with this but I suppose it might have its uses.
To determine what port initiated an event you could something like this:
Comments
In either case you would need to use the embedded object.
If you're trying to determine if a port has been defined then you would need to use a DATA_EVENT handler since if a port is defined it will generate an online event during start up so you could use that event to set a flag in an array like this:
I don't now what you would do with this but I suppose it might have its uses.
To determine what port initiated an event you could something like this:
For level events use "level.input.device.port" & channels events use "channel.device.port".
What are you trying to do?