charupraba Posted August 7, 2009 Report Share Posted August 7, 2009 Hi all, when we write any Value in the Analog Channel it will retain in that Value even if VI is Exit. here I need to know the Value of the Analog Output Channel at any instant. Is there any Property Node to get access to it? Thanks Quote Link to comment
George Pollock Posted August 10, 2009 Report Share Posted August 10, 2009 You might consider saving the value that you output in a Global variable. That would save it after the VI that creates it terminates. Also make it available to any VI in your total implementation. It is true that many programmers have a dislike for using Global variables, often born out of ugly experiences in multiple-programmer situations. But, in LV, they are a handy tool, especially since you can have more than one named Global variable set, and thus partition your Globals between users. You can also partition shared values among functions, such as output values, control equation constants, etc. Quote Link to comment
charupraba Posted August 11, 2009 Author Report Share Posted August 11, 2009 You might consider saving the value that you output in a Global variable. That would save it after the VI that creates it terminates. Also make it available to any VI in your total implementation. It is true that many programmers have a dislike for using Global variables, often born out of ugly experiences in multiple-programmer situations. But, in LV, they are a handy tool, especially since you can have more than one named Global variable set, and thus partition your Globals between users. You can also partition shared values among functions, such as output values, control equation constants, etc. Hi Thanks for ur reply.. actually how we handled it was we read the value of the Physical channel whose device name and port no must be known to get the value of the Analog Output at any instant.. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.