LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

did labwindow 7.1 have the same command used by labwindow 5.5?

hello,

i am confused with the error that i faced while im using labwindow 7.1 to run a CVI which earlier design under the labwindow 5.5 platform.

it say Undefined symbol '_AoUpdateChanel@16'
Undefined symbol '_WriteToDigitalLine@24'
Undefined symbol '_AlSampleChannel@28'

but when i am running this program under labwindow 5.5, there seems to be fine. is there any steps that i miss? i even search for all the 3 error shown above in my .c file, but those command did not exist in my .c file. so what should i do?

thank you
0 Kudos
Message 1 of 11
(4,662 Views)
Hello Kenshi,

The AOUpdateChannel, WriteToDigitalLine, and AISampleChannel functions are include in the Easy I/O for DAQ Library in CVI. Some of the functions are obsolete in CVI 7.1. I would suggest downloading the newest version of NI-DAQ supported by your hardware in order to resolved these issues. Also, I would suggest using _stdcall instead of _cdecl for you calling convention in CVI (Options >> Build Options).

http://digital.ni.com/public.nsf/websearch/7DA1D670EFA76EFE862569490061EFD6?OpenDocument\

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 11
(4,643 Views)
hi wendy,

is it mean that those error will not be existing if there is a DAQ card and the correct driver version with it installed inside the PC?

or i still have to include certain files into the CVI in order to execute the CVI?


thank you.
0 Kudos
Message 3 of 11
(4,598 Views)
Hello Kenshi,

You are correct. Once you have a recent version of NIDAQ on your machine, and you include support for CVI, you will be able to use these functions. Once you compile you project, it should automatically prompt you to include certain header files if they are necessary. Since you are using the Easy I/O and Traditional DAQ functions, you shouldn't need to include any additional header files.

Note: It is recommended that you do not mix calls to the Data Acquisition Library with similar types of calls to the Easy I/O for DAQ Library in the same application. For example, do not mix analog input calls to the Data Acquisition Library with analog input calls to the Easy I/O for DAQ Library in the same program.

Hope that helps.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 4 of 11
(4,570 Views)
hi Wendy,

i have successfully install the Lab PC-1200 DAQ driver into my window xp. but unfortunately, when i try to run the CVI, the same error messages pop up. Do i have to open the measurement & automation explorer 2.2 before i excecute the CVI?

i also include my .c file here hope that you can have a look at the problem that im facing.

As you information, previously, the .c file is written under labwindow 5.5, now i try to run the whole prject file under labwindow 7.1. so is there any code that i should change?

thank you 😃
0 Kudos
Message 5 of 11
(4,551 Views)
Hello Kenshi,

If you put all your includes at the top of your and your declaration afterwards, do you still see the error?
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 6 of 11
(4,542 Views)
hello Wendy,

ya, i have try to put all the #include files on top of my programme, then followed by the #define files, but the problem 3 error still occurs.

my lab-pc 1200 DAQ card driver is able to be detected by window XP, so i really cant think of other way to slove this error.

thanks again.
0 Kudos
Message 7 of 11
(4,525 Views)
Hello Kenshi,

Which version of the NI-DAQ driver are you using. The most recent version for your hardware is 6.9.3. Is this the version you are using? According to the readme for the NI-DAQ 6.9.3 driver, the easy i/o functions use some functions from the CVI Run-Time Engine libraries (easyio.lib, cvisupp.lib, cvirt.lib, and cviwmain.lib). It seems like the issue lies with the fact that you are using a newer version of the CVI runtime engine and an older version of the NI-DAQ driver.

If you expand the Easy I/O for DAQ library within CVI 7.1, do you find the functions listed there? If you open up your code in CVI, and right click on the Easy I/O function call, and select "Recall Function Panel" does the function panel appear? Whether or not it does, I would opening up the function panel for the desired functions, filling in the parameters and replacing the previous line of code with the code generated from the function panel. After doing this, and recompiling the code, do you still see the linking errors?

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 8 of 11
(4,493 Views)
Hello Wendy,


i did download the latest 6.9.3 driver for the lab-pc 1200, window xp is able to detect the DAQ card, but when i try to confirm the driver version at the window control panel, it didnt show any driver version and driver date, so i was not able to make sure wat version of DAQ driver is it.

for the easy I/O part, very sorry to say that i cant able to locate the DAQ library, all i can find is just the Data Acquisition library. so i cant proceed with other steps.
as for your information, i am using the labwindow 7.1 evaluation version. will it effect anything?
0 Kudos
Message 9 of 11
(4,477 Views)
Hello Kenshi,

In your code, if you right click on the Easy I/O DAQ functions calls in your code, and select "Recall Function Panel", is CVI able to locate the function panel? Also the name of the Easy I/O library is "Easy I/O for DAQ" and might be located right above your Programmer's Toolbox.

If the function panel does not appear, I have a few suggestions. Try making minor edits to the files in your project (such as deleting a space), and also delete your cvibuild directory. Rebuild your project. Do you still see the error?

If so, try creating a new project within the CVI 7.1 environment, and then copying and pasting the code from your source, header, and other files into new source and ]header files. Then compile your new project. Do you still see the link errors?

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 10 of 11
(4,463 Views)