04-07-2010 02:06 AM
04-07-2010 04:28 AM
Hi,
If each user can only change one of the elemenst (it seems to me that there is no element that can be changed by two users), have you thought of creating multiple variabes instead of only one?
I don't think you can do it in the way you're trying to do - If you have multiple writers writing randomly, you will most probably run into race conditions.
Paulo
04-08-2010 12:46 AM
04-08-2010 04:25 AM
04-08-2010 04:37 AM
04-08-2010 05:02 AM
Hi,
I don't think you can do that.
The shared variable is a resource external to your application that may be changed from different locations, so you will allways have to read the entire array before writing.
Is it only used to read and write from your LabVIEW program?Or are you also publishing the data to external sources?
If you are only using it in the application, consider using LabVIEW functional globals. That will give you an increase in performance.
Best Regards,
Paulo
04-08-2010 05:17 AM
04-08-2010 07:35 AM
Hey RoboButler,
A solution for Your problem could be the multiple variables and not one that is an array. It is not a problem that You don't know how much You will have as creating shared variable can be done programatically. You may find an example on the link below on this topic:
http://decibel.ni.com/content/docs/DOC-2031
Hope it helps!
Best regards,
David Varga
Applications Engineer
NIH