khuenguyen Posted November 25, 2010 Share Posted November 25, 2010 I have some channels with name are ACQUI1, 2, 3, ....8. From a sequence, I send command to my device and read return result. With each result, I will put it to a channel (ex: result1 for acqui1, ...). I use below code to execute: private string strChannel global i for (i = 1, i < 9, i++) strChannel = "ACQUI" + i strChannel.AddValue(result) endfor but it doesn't work. Please help me. Thanks in advance. Link to comment Share on other sites More sharing options...
AzeoTech Posted November 26, 2010 Share Posted November 26, 2010 Doing what you did actually adds the value in result to the strChannel variable. You need to use execute: execute(strChannel + ".AddValue(result)") Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.