LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't stepinto code

Hi,
I have recently upgraded to Labwindows/CVI 7.1 from version 6. I am having a problem with the code I developing. I am using a IVI driver for the agilent ESG family of signal generators, but I get an error when I try to initialise the signal generator and I can't step into the code anymore to find out what is happening. I press the �step into� button but CVI just steps over the initialisation call. I was able step into the code when I was using CVI version 6. What have I got set-up wrongly???

Thanks
James
0 Kudos
Message 1 of 7
(3,772 Views)
Hello

Do you have the code for the IVI driver? When using instrument drivers, CVI will automatic compile the instrument's C file into a obj file. In that case, you cant step into the C code, since the fp is actaully linked against an obj file. What you can do is go to the Instrument menu and click on "edit". For the particular IVI instrument, Click on "Detach program" and then "Attach and edit source". Then when you click on the "show info" button, you will see that the program file that your fp is linked to is a C file. Now when you build your application, you will be able to step into the code for the instrument.

Hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 7
(3,772 Views)
Hi,
I tried what you suggested but now I get 93 project link errors, all complaining about undefined symbols.
Any idea what to do now?

Thanks
James
0 Kudos
Message 3 of 7
(3,772 Views)
Are the undefined symbol names all defined in the fp you are using? If the function panel still loaded into the project? When you go to the Instrument menu >> Edit, select your fp and then click on Show Info, is there a program file attached to your function panel? Before compiling your application, you need to make sure that the function panel was attached to some code, whether it was a C file or a obj file. If you were not provided the C file for the instrument, then you will not be able to step into the code.

You can click Reattach Program in the Edit Instrument menu and that would attach the object file to the instrument and fix any linking problems.

Bilal
Bilal Durrani
NI
0 Kudos
Message 4 of 7
(3,772 Views)
All the undefined calls are IVI related:
Undefined symbol '_Ivi_UnlockSession@8' referenced in "agesg.c" etc.......
I think I know what is happening but I don't no how to fix it.
In CVI in the tool bar under Library, 'IVI...' is greyed out so CVI doesn't know about the IVI library for some reason. I have uninstalled and reinstalled the IVI shared components buts its still greyed out. So how to I get CVI to recognise the IVI library?

Thanks
James

Thanks
James
0 Kudos
Message 5 of 7
(3,772 Views)
"Hi,

The first thing to check is that you have fully installed the IVI Compliance Package this is the one that installs the IVI libraries; you can find it here.

http://digital.ni.com/softlib.nsf/954feaeea92d90918625674b00658b83/48a5f3e415e23b1786256d280063e598?OpenDocument


This is a free download that should launch the installer. Make sure that you select support for CVI during the installation.


If you allready have the IVI package the installer will see that and show you installed components; there you can add support for CVI if it is not installed.

PS: You have to re-install the IVI compliance pkg after CVI. Doing this triggers the IVI installer to add IVI support to CVI


Let me know how this
goes.


Regards,


ATUL WAHI
N.I."
0 Kudos
Message 6 of 7
(3,772 Views)
Hi,

Thanks for your help, it looks like I didn't have the full IVI Compliance Package installed. The one I installed was only 10Mb from IVI Foundation homepage.

Thanks again
James
0 Kudos
Message 7 of 7
(3,772 Views)