04-09-2021 09:08 AM
Who are you talking to? The only code in the thread is a PNG snippet which you can download and drop on your block diagram. It's just an example of what's in this Knowledge Base article:
Preventing the User From Closing a VI During Execution - National Instruments (ni.com)
04-09-2021 09:16 AM
@RTSLVU wrote:
kartiknattar@ospl.in wrote:
Hi,
Perform the below mentioned steps.
- Select Tools » Options to display the Options dialog box.
- Select Environment from the Category list.
- Check the Automatically Close VISA Sessions checkbox
- Select OK
While this will probably solve the problem the OP is having.
The automatically closing VISA sessions option is NOT a replacement for proper programming!
Maybe not, in fact I am on your side and I have even aske on the forum about what way is better. (using VISA Close versus automatic close) and the general consensus was "It doesn't matter".
I have to ask the question though. Why did NI basically deprecate the VISA Close function by moving it down into the VISA Advanced functions at the same time they add in the Automatically Close VISA Sessions option?