kbanks
04-10-2008, 03:08 PM
From a Support thread:
I was wanting to use the script remoteNode.setColumn(name,value) to display the readADC() results. I wrote remoteNode.setColumn(ADC,readADC()) and cannot get it to work. I want ADC to display on the left side in the Node Info tab, and the value of the ADC register to be displayed there. Do I have to do define the ADC somewhere or is there a special place this script is suppose to be placed?
This is a perfect example of a distributed SNAPpy application - by "distributed" I mean an application that is "split" across multiple devices.
Attached are two scripts that show one way to achieve what you are trying to accomplish.
One script runs on a remote node, and takes ADC readings. A second script runs within Portal, and provides a displayAdc() function that the remote node can call.
I was wanting to use the script remoteNode.setColumn(name,value) to display the readADC() results. I wrote remoteNode.setColumn(ADC,readADC()) and cannot get it to work. I want ADC to display on the left side in the Node Info tab, and the value of the ADC register to be displayed there. Do I have to do define the ADC somewhere or is there a special place this script is suppose to be placed?
This is a perfect example of a distributed SNAPpy application - by "distributed" I mean an application that is "split" across multiple devices.
Attached are two scripts that show one way to achieve what you are trying to accomplish.
One script runs on a remote node, and takes ADC readings. A second script runs within Portal, and provides a displayAdc() function that the remote node can call.