12-30-2010 08:46 AM
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
Solved! Go to Solution.
01-03-2011 10:49 AM
Hi asIHM,
are you getting any error message when it crashes?
hsm78
01-04-2011 06:41 AM
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.
01-05-2011 09:16 AM
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.
01-14-2011 08:50 AM
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..