asaikk Posted February 22, 2012 Share Posted February 22, 2012 Hi For an exercise, I made a virtual channel "DataBoxV" and an expression below on the Local CHANNEL "Pressure"; \\ Test Virtual Channel private Data02 = Pressure[0] DataBoxV.addValue(Data02) This did not work, while with a channel of the same name made on "Local CHANNEL", the same expression worked fine. Would you please explain the reason? Thanks in advance. Link to comment Share on other sites More sharing options...
AzeoTech Posted February 22, 2012 Share Posted February 22, 2012 V channels you can just do: dataBoxV = data02 and it will do essentially the same thing. Truthfully, V channels are a left over from before DAQFactory had variables, but it appears that many people still use them. Link to comment Share on other sites More sharing options...
asaikk Posted February 22, 2012 Author Share Posted February 22, 2012 I applied the line you mentioned (below), but it did not work either(the ctl file attached). "dataBoxV = data02" I wonder why. The version of my DAQFactory Express is 5.83. Link to comment Share on other sites More sharing options...
AzeoTech Posted February 22, 2012 Share Posted February 22, 2012 I really am having a bad week: To access V channels, you have to put V. in front of them: V.dataBoxV = data02 and probably: V.dataBoxV.addValue(data02) Link to comment Share on other sites More sharing options...
asaikk Posted February 22, 2012 Author Share Posted February 22, 2012 Many thanks for the reply. Both "V.dataBoxV = data02" and "V.dataBoxV.addValue(data02)" worked fine! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.