LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

equivalent to intLock()/intUnlock()

are there equivalent functions in the VISA libaray to intLock()/intUnlock() that are in VxWorks?
0 Kudos
Message 1 of 4
(3,984 Views)

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

0 Kudos
Message 2 of 4
(3,982 Views)
i forgot to mention the target is LabVIEW RT. we're using LabWindows 2009 to develope in.
0 Kudos
Message 3 of 4
(3,950 Views)

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.

Justin E
National Instruments R&D
0 Kudos
Message 4 of 4
(3,940 Views)