omitting CAN library

Hello

I have a measurement program written in CVI that supports several instruments; communication is done by series, TCP, GPIB or CAN interfaces.

Now I want the same program to compile (and run) on a computer that has no CAN instrument, and therefore no library CAN is installed.

The executable is a configuration option that activates / deactivates CAN instrument support, so the absence of the instrument does not hurt if the selector is set correctly.

The idea is that I can work on the program on my laptop as long as I did not need to work on the BOX related functions.

However, I can't compile the code without the library CAN installed, because the function prototypes exist which include constants such as NCTYPE - so without the library I get compilation errors.

Thanks for the help,

Wolfgang

Assuming that your implementation focused on the CAN is quite isolated, one possibility would be to wrap this code in a conditional preprocessor as #ifndef CAN_NOT_SUPPORTED. When you expand on your laptop, you must add CAN_NOT_SUPPORTED to the compiler sets Options under > compilation Options dialog box.

A. Mert

National Instruments

Tags: NI Software

Similar Questions

  • CAN and XNET successively

    Hello

    I try to use NI-CAN and NOR-XNET successively on the same CAN bus. I programmed and tested functionality with NI-CAN and NOR-XNET, everything is OK. But I can't run the two parties successively...

    What I do:

    -initialization of the CAN bus (CAN0, 250kBaud) - with ncConfigCANNet.vi + ncOpen.vi

    -l'execution of my CAN code

    -CAN close (ncClose.vi)

    -waiting time (500ms)

    -initialization of XNET sessions on the same interface, for next steps

    -> error

    I have only one CAN interface on my test bench (NI PCI-8512) and should use the NI-CAN library to the first part of my program (I have to call a dll that uses the NI-CAN library).

    I tried to add stop/restet after ncClose (with ncAction.vi), with the same result: error-1074384742, "XNET Create Session (frame in queue) .vi:5430001"

    My configuration:

    -OS W7 Pro

    -LabVIEW 2014 SP1

    -Max 14.5.0f0

    -OR-CAN 14.0

    -OR-XNET 14.1 (with NI-CAN compatibility library)

    ==> How to use XNET features after the use of the features of NI-CAN on the same interface?

    Thank you in advance

    Why would you choose to use the API dated and lower (NI-CAN) when you have not to?  If you the hardware does not support XNET, use NI-CAN, if you have an existing application that uses NI-CAN, not re - write.  But if make you changes, or start a new application and you can use XNET, I highly recommend not using NI-CAN at all.  All he can do XNET can do better.

    With the road I swear I have achieve many years ago.  Do you want to say that work separately the two APIs?  If you launch the part code XNET you it work?  And if just start the game NI-CAN of your code, it works?

    You have the compatibility layer software installed?  Could you post a screenshot of MAX showing two interfaces?

    The error is States "the interface has already been opened with different cluster settings as those specified for this session." makes me think that another session XNET has been open and never closed.  Are you sure cleaning properly happened to previous test cycles?

    You can post your code.

  • How to get spell checking to verify the entries of individual line?

    I recently had to create a new profile to resolve a problem with my old FF. But now the new profile, being new, do not check the spelling of the single line entries (as in the ' question' above.) But don't the input areas of text to spell check (like the one I'm typing right now).

    I know that there is a topic: changing the setting of configuration to get there, but I can't find it documented anywhere. Is there a topic: document config? Omitting can someone tell me what changes I need to do?

    layout.spellcheckDefault; 1

    Unofficial MozillaZine site has great documentation on many preferences in about: config. For this one:

    http://KB.mozillazine.org/layout.spellcheckDefault

    So it should work:

    (1) in a new tab, type or paste Subject: config in the address bar and press enter/return. Click on the button promising to be careful.

    (2) in the search above the list box, type or paste SPEL and make a pause so that the list is filtered

    (3) double-click the layout.spellcheckDefault preference and change 1-2 spell check single-line controls as well as controls the multiline.

    Note: This should turn the spell checking on by default, but sites can always turn off.

  • Using GROUP BY doubt

    For example: I have an Employees table

    With CURADDRIND of 0 and 1 and CREATEDATE is a DATE column

    I want to ask and get the last CURRADDRIND for a particular employee for the maximum of the CREATION DATE

    I have data like this

    EmpID curraddrind createdte

    130 0 2008-09-10
    130 1 9/15 / 2008
    130 0 08/15/2008

    I want output

    1 9/15 / 2008



    I wrote the query like this

    Select curraddrind, max (createdte) in emp
    where empid = 130
    Curraddrind group

    I'm getting

    1 9/15 / 2008
    0 10/09/2008-> This too... but shud be omitted

    can someone give a solution for this...

    Thanks in advance
    select curraddrind
         , createdte
      from emp
     where createdte = (select max(createdte)
                          from emp
                         where empid=130
                       )
    
  • I have a music library of about 7.6 GB.  I have an old nano iPod which has a capacity of 8.0 GB. When I try to sync my library on the nano it accepts only about 1.68 GB.  How can I fix?

    I have a library of about 7.8 GB of songs iTunes music.  I have an iPod nano to 8.0 GB.  When I try to sync my music on the iPod the IPod does accept that about 1.68 GB.  I tried to restore and re-synchronization-the same results.

    JEB

    Are all your songs stored locallyin your computer's iTunes library?  iTunes cannot sync the songs that are accessed by streaming from Apple servers ("iCloud").  To check, find a song that does not sync your iPod to your iTunes library.  Do a right click and get information.  On the tab of the file Info window, browse to the location.  This site shows a path of the file to the location the file of that song on your drive, or should I say iCloud?  Expressed the iCloud, download it.

    If this is the General reason why much of the music library will not sync to the iPod, you can select the pieces all affected at the same time, right-click on the selection and download.  Once all the music files are stored locally, they sync to iPod.

    If this is not the cause of your problem, thanks for posting back with all additional details, such as any error message that appears when you attempt to sync.

  • I hate the new iPad update. How do I fix if I can open my playlist without seeing the entire library?

    I hate the new iPad

    Update. How can I fix it so I can see just my playlists not the entire library?

    Follow the instructions, If you do not your entire library after you update iTunes on your Mac or PC - Apple Support

  • I recently downloaded my favorite CD music in my I tunes library, how can you transfer this music on a USB Flash drive so that I can play the music through my stereo system H D - Bike. I'm 10 Windows on my PC

    I recently downloaded my favorite CD music in my I tunes library, how can you transfer this music on a USB Flash drive so that I can play the music through my H D - bike

    stereo system.

    I'm 10 Windows on my PC

    Select the songs in iTunes, let them slip into a file Explorer window showing the flash drive, drop.

    TT2

  • How can I get the iMovie video files in the photo library?

    How can I get the video files of "iMovie - bibliotek.imovielibrary" in the photo library?

    Is to select your library from the libraries pane and choose my brackets at the top of the screen. Then select the clips you want and share file on the desktop. Then import in photos.

  • In the music library, how can I get my songs to sort alphabetically by song, not an artist?

    In the music library, how can I get my songs to sort alphabetically by song, not an artist?

    Go to settings > music > songs of sorting & Albums and select by title. Should be good then.

  • can photos and opening to share a library?

    Can photos and opening to share a library?

    I want to share so I can use photos to back up the library in iCloud, but want to do all my work photo still open... is this possible?

    No, I cannot open to open a library of Photos.   It is only one-way: migrate an Aperture to photo library.

    Once the photos or Photos you can send them to your Aperture library to edit using the command share > add to open "", if you want o send to open for editing.

  • How can I sync my photo albums to my iPhone/iPad without library iCloud?

    I've finally updated Photos from iPhoto, having held out but enjoying some iPhoto support point is likely to be deleted.

    I managed to recreate my events such as Albums, relatively painless, in Photos.  However, now when I try to sync via iTunes for the iPhone or iPad, the albums transfer not everywhere, making it less convenient to access the photos.

    I looked through the settings on the iMac and iOS devices and searched the net but could not find an answer.  It's extremely frustrating and I hope someone can help.

    Thanks in advance.

    You can synchronize the photos using MyPhotoStream or iTunes sync - the only way to synchronize the organization uses iCloud photo library

    LN

  • My imac (El Capitan 10.11.6 - 2 Terabyts) complete and FCPX disk will not work. I moved a few fcpxbundles library to an external hard drive (seagate 2 trabyte) and erased from the iMac. NowFCPX said that missing data as effects therefore can not shar

    Help!  My FCPX (v - 10.2.3) does not work because my iMac drive is full (iMac 21.5 inch has 2 terabyte w / v OS El Capitan 10.11.6) I had tried to free up space by moving tons of files on a usb disk Seagate (2 terabyte) speedboat that barely made a dent. then on the advice of a friend I found (in movies) a file called Final Cut backups. There were 4 files with extension, ".fcpbundle" I have three of them moved to another drive to Seagate usb - they had 2.82 GB, 21.6 GB and GB 68,21 that I thought should be enough and them removed from my iMac drive - bad! It says I have only 13.46 GB free on my 2 terabyte iMac total!

    The fourth fcpbundle it's TB 1.72! But before leaving that I returned and opened FCPX and found the warning triangle around my library... While my last project looked OK I couldn't / the share of exports because the pop-up says FCPX has no data for efx etc (the media looked at and display fine) and cannot be taken out.

    FCPX can work with the "beams" moved to another drive? How the detectable in a new place? Or how to put them back?
    How can I make sure that future packages clutter my iMac again?

    Do I need a RAID disks? If yes which?

    I found other folders in folders 'Make files' and records backup for projects with the .fcpbundle inside files

    How can I get this sucker working again?... and what should I do to keep him from doing the same thing in the future?

    Thank you

    John

    :.. then on the advice of a friend I found a file called Final Cut backups (in movies). There were 4 files with extension, ".fcpbundle" I have three of them moved to another drive to Seagate usb - they had 2.82 GB, 21.6 GB and GB 68,21:

    The backup files are only the database files (no media) and must be low, not gigabytes, do not know what is happening there.

    Media libraries stored in the bundle of FCP X library or stored outside?

    If stored at the breast, called managed media, simply copy and paste the library to a different location.

    Make sure that library books newly located correctly before you remove what either.

    Perhaps check your settings of the library.

    Click the library icon in the browser and it appears in the Inspector:

    By clicking on change settings shows this:

    Move the mouse over the media and it will reveal the path where things are sent.

    Then you might be able to track down what goes where.

    From you description, it seems that most of the media files and rendered is not be moved successfully.

    Some screenshots would be useful if you can't find where stuff is.

    Al

  • I have itunes on my computer HP w/windows 10. How can I download music from my itunes library to an MP3 player

    I have itunes on my computer HP w/windows 10. How download music from my itunes library to an MP3 player. where can I download directly from thew CD drive on the computer

    Unless the player documentation says otherwise, drag the songs from iTunes or the iTunes app library.

    (144500)

  • I've migrated my iPhoto pictures libraries. I can now delete old iPhoto library?

    I've migrated my iPhoto pictures libraries. I can now delete old iPhoto library?

    I don't want my pictures taking up twice the amount of space as before!

    Yes, but the multimedia files are hardlinked and do not take place twice.

    (144308)

  • How can I download my photo library of icloud to my iphone?

    I recently changed my icloud account, and all my photos were deleted from my iphone since then...

    I went back to my old icloud account where all the photos are stored in an attempt to upload them to my device. all the photos are indeed still on my old icloud account but I can't seem to download them on my device.

    Please can someone explain how can I download my photo library of the icloud to my iphone account more than 6 s?

    Thank you!

    HILA

    Turn on iCloud photo library on the phone. (settings > photos & camera)

Maybe you are looking for

  • Checking if NEITHER-6509 works on my RHEL WS 4.6

    I installed NIDAQmx 8.0 on my Red Hat Enterprise WS 4.6 machine.  Installing the driver seemed successful. Using the nilsdev command, the following text is displayed: OR PCI-6509: "Dev1".Serial number: 0x13E94F3Bus type: PCIPCI bus: 0 x 4PCI device:

  • D0V96AV: Hard drive HP Pavilion 15 t-E000

    I recently made a hard drive Test and received the LONG DST message failed.  Reading the forum, it seems that I have to replace the hard drive. I looked online through the HP site but cannot find any hard drive replacement for the HP Pavilion 15 t-E0

  • Cannot open Windows 7 more.

    After a bombardment of automatic updates, I can't open Windows 7 more. Every time I get my password the message appears: "The service user profile Service has no logon. Unable to load the user profile. Nothing else has happened. The program seems to

  • HTTP request works does not in a Simulator

    Hi all am held to an odd question in the BB. My http request class always throws incorrect exception as the url. spin the MDS Server too. to send the request, I talked link http://riccomini.name/Topics/Mobile/BlackBerry/BlackBerryHTTPClient/... try u

  • routing on IPSEC protocols

    Why you can not run an IPSEC tunnel mode routing protocol? Why must you ACCORD to run a routing protocol?