09-01-2009 05:18 PM
09-01-2009 06:05 PM
Win32 supports interlocked integers if that's what the VxWorks functions are - I've had VxWorks training but I forget 😉
You can do interlocked increment/decrement/test and set (they call it something else)/exchange of 32 bit integers, etc.
32 bit writes / reads are atomic on x86 so long as the value is word aligned.
I do not know if there's a facility in VISA itself for this.
Menchar
09-02-2009 10:05 AM
09-02-2009 02:23 PM
Hey chucky,
There is a viLock and viUnlock function that serves to give a session exclusive access to a portion of code. I'm not sure if this what you're trying to accomplish with your intLock/Unlock functions, but if not then I doubt there is anything within the VISA API that does what you're trying to do. You can look through the NI-VISA Help file to get a listing of all the functions in the VISA API if you'd like.