LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using CVI 7.0 functions in CVI 5.0

Hi,
 
Currently I tried to get RS232 com port line status. In CVI 7.0, there is a function which called GetComLineStatus(). However, this function is not available in CVI 5.0. When I used this function in CVI 5.0 (I included the CVI7.0 RS232.h in my CVI 5.0), I get a project link error which stated "Undefined symbol 'GetComLineStatus@4' referenced in "EXTEND.C"" when I tried to built the project. Is there any possibility that this can be done? Thanks.
0 Kudos
Message 1 of 4
(3,412 Views)

'GetComLineStatus@4'  indicates that either the function or the prototype is not available. I have'nt tried this myself, but I'm pretty sure you can do this by including all the relevant  updated includes , i.e. the RS232.h , cvidef.h and cvirte.h from version 7 and installing the lates runtime engine on your system with version 5.0 on. The legality of this will be up to NI, but the runtime engine is freely available for downloading.

Jattie van der Linde
Engineering Manager, Software & Automation
TEL Magnetic Solutions Ltd
0 Kudos
Message 2 of 4
(3,391 Views)
Hi Jattie,
 
Thanks for replying. I had tried the way that you mentioned but still cannot use. The same problem still come out. Is there any file that I should include besides these three files (RS232.h, cvirte.h, cvidef.h) from CVI 7.1 and the CVI 7.1 runtime engine?
0 Kudos
Message 3 of 4
(3,369 Views)
Hello Jason,

The following threads might be helpful as a workaround: CTS Status and Are CTS and RI RS232 status lines readable in CVI5.01 on W2K?

Good luck and best regards,
Shakhina P.
Applications Engineer
National Instruments
Message 4 of 4
(3,338 Views)