LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI crashes when compiling with VISA

Solved!
Go to solution

LabWindows/CVI does not compile when I try to use VISA:

 

For a very simple program (only UI, no multithreading, instrument communication whatsoever), when I include "visa.h", it does not compile anymore and crashes occasionally:

- When I hit  "Compile File", it states "A custom callback raised an exception.".

- When I hit "Debug Project" (green Triangle), CVI crashes without explanation.

 

VISA itself seems to work fine, since I can do basic communication with a USB-connected oscilloscope by using [Tools > Create Instrument I/O Task"] as well as generic VISA Interactive Control.

CVI itself seems to work fine, too, since I can compile & run programms which for example use direct access to GPIB without VISA.

 

I'm running: Windows 7 (64bit AMD), LabWindows/CVI 9.1.0. (428), VISA Interactive Control (5.0.3 / 4.0).

 

Thanks in advance..

asIHM

0 Kudos
Message 1 of 5
(3,654 Views)

Hi asIHM,

 

are you getting any error message when it crashes?

 

hsm78

 

 

0 Kudos
Message 2 of 5
(3,615 Views)

When I hit "compile", the error message quoted in my first post appears, which does actually not make much sence to me since the only alteration in my code is the visa.h include.

When I hit "debug" (compile&run) CVI shuts down immediately without any error message.

0 Kudos
Message 3 of 5
(3,602 Views)
Solution
Accepted by topic author asIHM

Hi

 

try to repair of your CVI installation by choosing Control Panel » Add or Remove Programs » National Instruments Software and opting to repair the Development System that you have

installed.

 

Select National Instruments Software and click Change/Remove. This will open a new window with all of the National Instruments software you have installed on your computer.

Message 4 of 5
(3,577 Views)

That did the trick. I re-installed (several versions of) NI-VISA, but I never expected that CVI itself had an issue.

Thanks a lot..

0 Kudos
Message 5 of 5
(3,494 Views)