From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-01-2022 09:08 AM
I download example shared variable project and works fine. So I tried a simple little program and for some reason is not working. I tried binding and also in the block programming. I did deploy the library like it says to do as well. I can't figure out why this isn't working. Is there something else I need to do in the project settings or something? I had a similar small program working but was a while back and don't remember what I did other than just use the binding dialog to connect to the shared variable server on the network.
04-01-2022 10:33 AM - edited 04-01-2022 10:36 AM
04-01-2022 11:37 AM
You are right, and I just threw this together for proof of concept for a much larger application I am building. I did go ahead and add a wait and the error indicators (-1950679034 is the error on writing). I attached the code. When I looked up that error, it did say something about the DSC module which I do not have and didn't think that was any kind of requirement for using shared variables. Thanks for you help in advance
04-01-2022 02:13 PM - edited 04-01-2022 02:17 PM
a lvproj file does not contain any usable code. we need also the VI(s) next to it.
I also cannot open LabVIEW 2021 Code, consider "save for previous".
@Trinity32244 wrote:
s (-1950679034 is the error on writing).
Error -1950679034 is "LabVIEW: (Hex 0x8BBB0006) The shared variable has no value." So start there!
04-04-2022 06:25 AM
Sorry about that. See attached
04-04-2022 11:15 AM
You still have no data dependency, so you might be reading before ever writing (execution order of parallel code fragments is not predictable).
Now we are missing the lvproj file.
04-04-2022 12:21 PM
Sorry about that and attached it. Also, I would think the subsequent read would reflect the shared variable value correctly though, right?