08-29-2007
12:21 PM
- last edited on
12-23-2025
11:13 AM
by
Content Cleaner
I'm using Measurement Studio 8.1 with a VB.net application. I need to prevent two instances of the same application from writing to certain NVs at the same time. I am having a problem getting the "single writer" concept would work. This particular NV does not have buffering enabled. I originally had buffering enabled, but the results were not any better.
When the application starts it connects to an particular NV. The application never does a "disconnect" from this NV until the user exits (or moves to a different screen).
When two instances are running at the same time both can write to the NV and both can read changes made to that NV. This is not what I thought would happen since the NV is single writer. I thought the first instance which connected to the NV would be the only instance which has the abiity to write to the NV. I would not expect the second instance to be able to write to the NV until the first instance released the NV (by performing a disconnect or by exiting). I have read the following articles but they do not seem to address the problem I'm seeing.

Any suggestions would be helpful. Thank you.
08-30-2007 05:40 PM
08-31-2007 11:19 AM
08-31-2007 11:47 AM - edited 08-31-2007 11:47 AM
Message Edited by James M on 08-31-2007 11:49 AM