02-20-2007 02:41 PM
02-21-2007 01:36 PM
Hello Kevin,
This warning comes up if the data source your variable is bound to has not sent a value back to your RT controller yet. Here is an excerpt from a knowledge base article:
"This warning will occur if the shared variable is bound to a source, but the variable has not received a value from the source. This is only a problem if the variable never receives an update from the source, even if you are sure the source is generating updated values. In most cases you can ignore this warning."
Since it may take a few seconds for the variable to connect, you may want to just poll the shared variable in a loop and wait for it to connect before your main program starts.
-Justin D
02-21-2007 02:48 PM
Hi Justin,
Thanks for the response. Could you post the link to this knowledgebase article. Couple questions about terminology in your post. When you say "the data source your variable is bound to", are you refering to the "data source" as the shared variable and the "your variable" as the instance of that shared variable on the block diagram which gives me the warning?
Also, couple other questions:
When does this "connection" start? Is it when the VI which reads the shared variable starts to run or is it after the first attempt to read it? I know that the variable has a value since the VI running on my host PC writes to it and this VI is run before the VI which runs on the PXI box and reads it.
Is there some default time that I should wait for this warning to go away before I declare it to be a problem? The excerpt says that its only a problem if the variable never receives an update, but how long would I wait before I know that it will never receive an update? I know this sounds like a silly question but it seems odd to me that the read of the shared variable would return with this warning. If there is some processing that takes place to "connect" then it seems to me that the read shouldn't return until its connected or some timeout occurs.
Is this warning something that could occur after a successful read? For example, if I looped until the warning went away and then began using the variable, could I ever see this warning again such that I should not ignore it?
Again, thanks for the response.
Kevin
02-22-2007 03:42 PM
02-23-2007 10:06 AM
Hi Justin,
Thanks for the response.
So I assume that this initial loop would need to be done for all of my network published shared variables. That is any network published shared variable that I read from that is not hosted on the machine from which I am reading will have to go through this loop??
Thanks,
Kevin C.
02-26-2007 05:41 PM