Avoid using local variables if you can. If you wire the data to a queue, you don't need any local variables. If you want your data to be labeled, like a channel number or something, you can create a cluster with the elements being Label (string)and Data (number). Send the cluster to the queue. Upon dequeing, unbundle the cluster and write both to your datalog, label in 1st column and data in next. That way you can associate the data with its source.