<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: omitting CAN library in LabWindows/CVI</title>
    <link>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/874249#M40407</link>
    <description>&lt;P&gt;I may add that NI-CAN is not supported on XP64, so there seems to be no possibility to work on my code as soon as I include the CAN library, even if I want to modify CAN-free routines only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am looking for is a possibility to include a 'dummy library' or file that includes all NC-definitions once&amp;nbsp;the CAN is unavailable, or a suitable macro etc. to disable all CAN-related function calls in my source code, permitting the compilation of the code for test purposes without the library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Wolfgang&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2009 16:18:48 GMT</pubDate>
    <dc:creator>Wolfgang</dc:creator>
    <dc:date>2009-03-19T16:18:48Z</dc:date>
    <item>
      <title>omitting CAN library</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/873477#M40386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a measurement program written in CVI that supports several instruments; communication is via serial, TCP, GPIB, or CAN interfaces.&lt;/P&gt;&lt;P&gt;Now I want the same program to compile (and run) on a&amp;nbsp;computer that has no CAN instrument, and thus no CAN library is installed.&lt;/P&gt;&lt;P&gt;The executable has a configuration option that enables/disables CAN instrument support, so the lack of the instrument doesn't hurt if the switch is set properly.&lt;/P&gt;&lt;P&gt;The idea is that I can work on the program on my notebook as along as I do not need to work on the CAN related functions.&lt;/P&gt;&lt;P&gt;However, I cannot compile the code without the CAN library installed, because function prototypes exist that include constants such as NCTYPE - hence without the library I receive compilation errors. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for assistance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2009 18:20:58 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/873477#M40386</guid>
      <dc:creator>Wolfgang</dc:creator>
      <dc:date>2009-03-18T18:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: omitting CAN library</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/874249#M40407</link>
      <description>&lt;P&gt;I may add that NI-CAN is not supported on XP64, so there seems to be no possibility to work on my code as soon as I include the CAN library, even if I want to modify CAN-free routines only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am looking for is a possibility to include a 'dummy library' or file that includes all NC-definitions once&amp;nbsp;the CAN is unavailable, or a suitable macro etc. to disable all CAN-related function calls in my source code, permitting the compilation of the code for test purposes without the library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Wolfgang&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2009 16:18:48 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/874249#M40407</guid>
      <dc:creator>Wolfgang</dc:creator>
      <dc:date>2009-03-19T16:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: omitting CAN library</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/874354#M40416</link>
      <description>&lt;P&gt;Presuming your CAN-related implementation is fairly isolated, one possibility would be to wrap all that code in a preprocessor conditional like #ifndef CAN_NOT_SUPPORTED. When developing on your laptop, you would add CAN_NOT_SUPPORTED to the compiler defines found under Options&amp;gt;&amp;gt;Build Options dialog.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mert A.&lt;/P&gt;&lt;P&gt;National Instruments &lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2009 17:53:30 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/874354#M40416</guid>
      <dc:creator>Mert_A.</dc:creator>
      <dc:date>2009-03-19T17:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: omitting CAN library</title>
      <link>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/874689#M40423</link>
      <description>&lt;P&gt;Thanks Mert! The compiler define (/DCAN_NOT_AVAILABLE=1) indeed did solve my problem! I only have to include a line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#ifndef CAN_NOT_AVAILABLE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the include file of all my CAN functions, and all complaints of the compiler are gone &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I've got to know the compiler define feature...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2009 07:26:35 GMT</pubDate>
      <guid>https://forums.ni.com/t5/LabWindows-CVI/omitting-CAN-library/m-p/874689#M40423</guid>
      <dc:creator>Wolfgang</dc:creator>
      <dc:date>2009-03-20T07:26:35Z</dc:date>
    </item>
  </channel>
</rss>

