LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa Com port issue when program restart on incorrect exit

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)

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 11 of 12
(189 Views)

@RTSLVU wrote:

kartiknattar@ospl.in wrote:

Hi,

Perform the below mentioned steps.

  1. Select Tools » Options to display the Options dialog box. 
  2. Select Environment from the Category list.
  3. Check the Automatically Close VISA Sessions checkbox
  4. 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?

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 12 of 12
(188 Views)