05-14-2018 10:23 AM
I get:
Error -2147467259 occurred at Shared Variable in HostUI.vi
Possible reason(s):
LabVIEW: (Hex 0x80004005) Unspecified error.
=========================
NI System Configuration: (Hex 0x80004005) Miscellaneous operation failure.
This error or warning occurred while writing the following Shared Variable:
Any ideas what's going on?
05-14-2018 12:09 PM
Yes. Somewhere in the Secret LabVIEW Code that you refused to show us, you have a function or process that is mis-wired, illegal, getting a bad value, or something similar happening. So why don't you look at your code and figure out your mistake? If you want us to help you find it, you'll have to attach your VI so that we can see what you did, and you should also explain what you were trying to do ...
Bob Schor
05-14-2018 12:41 PM - edited 05-14-2018 12:55 PM
I don't think that was necessary. I didn't post any vi because I don't think that's myaplication-specific problem. I think I've already solved it and it happened because I wanted to use network-published variable to send a control reference, which now kind of doesn't make any sense to me, because this control is only on the host or target, so how can the other one use the reference. But I still want to:
-obtain reference by event structure on host
-convert it to variant and send it to the target
-extract data there with property node: label consists some
-make some calculations and depending on the results - prepare a state for this control
-send the state and reference back to the host and use it there. That way I could refer to the control easily. And I have a couple of them.
I'm attaching presentation of the error and nothing else becuase I don't really have anything yet. I'm just thinking about possible ways to do it.
05-14-2018 12:57 PM
@bartek618 wrote:
because I wanted to use network-published variable.
Right there is your problem. I actually consider NPSVs to be evil. They are slow and introduce weird race conditions. Instead, use TCP or Network Streams to pass data between your host and target. Personally, I like to use the STM library with TCP. It seems most people around here prefer Network Streams. They both do the job more reliably than NPSVs.
05-14-2018 01:14 PM
Thank you, I'll look into it.
05-14-2018 01:27 PM
@bartek618 wrote:
I don't think that was necessary. I didn't post any vi because I don't think that's myaplication-specific problem.
Hi bartek,
Do not take it as a personal attack. When you have been on the forums for a while, you see a lot of trends in people asking questions. One of the more frustrating aspects of giving someone help is getting at the relevant information. People (not you specifically) will often only give feedback along the lines of "it works / doesn't work", which is hardly any information at all. Posting your code from the start has the added benefit that people will often point out that a function can be used in a much simpler way, which I am always happy to learn about.
People would not hang out on the LabVIEW forums looking for questions to answer if they didn't want to help you, so keep firing away 🙂
05-14-2018 05:23 PM
@Gregory wrote:
@bartek618 wrote:
I don't think that was necessary. I didn't post any vi because I don't think that's myaplication-specific problem.
Hi bartek,
Do not take it as a personal attack. When you have been on the forums for a while, you see a lot of trends in people asking questions. One of the more frustrating aspects of giving someone help is getting at the relevant information. People (not you specifically) will often only give feedback along the lines of "it works / doesn't work", which is hardly any information at all. Posting your code from the start has the added benefit that people will often point out that a function can be used in a much simpler way, which I am always happy to learn about.
People would not hang out on the LabVIEW forums looking for questions to answer if they didn't want to help you, so keep firing away 🙂
Then again, the best detectives know the right questions to ask. 🙂