Can bus

Hello,
Im trying to aquire data from 2 CAN interfaces on same card, I've written this programme (see attached) which works most of the time but is prone to giving me the internal driver error -1074388990.
Is there any reason why the code would do this and can I improve the code so I dont get the error?
Many Thanks,
Tom
Attachments:
p_4.vi ‏32 KB

Hello Tom,
please follow the steps in this Knowledge Base entry:
http://digital.ni.com/public.nsf/allkb/25A1726C45E10F48862568F700715733?OpenDocument
If you still see the same error, please post your NicanErr.txt file as described in the article.
Regards,
Johannes
NI Germany 644838

Similar Messages

  • Can LabView simulate multiple nodes on a single CAN bus?

    We currently are developing a system where a single control panel controls a number of drive motors over a CAN bus.  Each of those drive motors has electronics and software in them which tracks the status of the motor, and this information is sent over the CAN bus to the control panel.
    We have previously used Vector CANoe to simulate the activity of the drive motor nodes on the CAN bus during development of the control panel.  We want to move to LabView in order to run this kind of simulation.
    Is it possible for LabView to be used to run this kind of simulation?  Each node would have its own CAN ID on the bus.  It would need to send out appropriate periodic status messages on that CAN bus that would be based on user inputs.  It would also need to display certain information based on commands sent to it via the control panel over CAN.
    Thanks for the assistance.

    Hi,
    I believe that what you need is to simulate several CAN ports. There is a similar discussion form that I believe will answer you question. I hope this helps.
    Regards
    Krista S.
    Applications Engineering
    National Instruments

  • Using CAN bus to transport and play the stream audio data

    hello,
    Just want to build a PC-Based control network using CAN bus (Ethernet not considered).The system is separated two parts , one is the front unit(FU), and the other is the centeral unit(CU). FU performs dialing-up number to the CU , and play the stream audio media data come from CU, CU monitor the telephone call activated from FU's user , send rm or mp3 data to the FU . I'd like to know if CAN bus could realize this function? if it can , which hardware must be supplied ? Is there any suggestion that not use PBX to realize the voice (telphone) communication ? Please give an solution , your advise is greatly appreciated . Thanks.
    David

    Hi David,
    the CAN protocol essentially just gives you the ability to transfer (broadcast) up to eight data bytes across the network at a maximum data rate of 1 Mbit/s.
    There are so-called higher level (or layer) protocols that further specify the data exchange between a data producer can the consumer (DeviceNet, CANopen, etc.).
    If your application is not tied to any of those protocols, that means you have the freedom to design all (CAN) nodes of your network, you can implement your own protocol based on the eight data bytes and the arbitration ID CAN offers.
    For more information on the CAN protocol, take a look at appendix B of the NI-CAN Hardware and Software Manual, or visit the web site of CAN in Automation (CiA).
    For your particular application you would need a CAN port on both the FU and the CU (preferably high-speed physical layer) and a PCI interface CAN card for you development.
    -B2k

  • Read all raw data out of the CAN bus

    Hello,
    our company has purchased a complete CAN bus HW; chasis 9174 and module 9862. I am using NI-DAQmx 9.5.5, NI-XNET 1.5.
    I have connected the module (CAN High, CAN Low, Vsupp 12V - Car battery, GND - Car battery) to the ABS CAN bus segment.
    Using Osciloscope on CAN High and CAN Low wires I can see communication rolling when I start the car ignition.
    I had no success using the Bus Monitor utility.
    I made a very simple read VI hoping to monitor some traffic.
    All VIs run without error, but the Read VI is returning same data (Ignition off or on), I do not know what am I supposed to recieve, what kind of data is the output.
    I think it is wrong, since I get the same data out of it no matter what the CAN bus traffic is.
    The array of frames is filled with two frames with message identifiers that should be transmitted. I added two frames into emopty database and no signals.
    1) From my understanding, the Bus Monitor utility monitors only those messages that I specify in the database, so that no messages/frames = no traffic monitored, is this correct ?
    2) Is there any way, how to read all raw data from the bus ? What VI palettes to use... ?

    Problem solved, the company that was preparing the car made wrong labels (swapped CAN H with CAN L)

  • Can we monitor the CAN bus load through a vi

    Is there a way to monitor the CAN bus load through a vi? I am using USB 8473 to establish a CAN communication.
    Thank You,
    -Raghu

    Hi Raghu,
    Are you referring to fuctionality similar to the percentage bus load the NI CAN Bus Monitor shows?
    If so, there are no built-in LabVIEW VIs that access this information.  You would have to use the available CAN VIs and implement it yourself. 
    Alternativly, if you only need this for testing, you can use another NI CAN device on the bus to monitor the bus load and then simply remove this device for deployment.
    Hope this helps!

  • Is it possible to programmatically start the CAN Bus Monitor?

    Is it possible to programmatically start the CAN Bus Monitor?  I was unable to find the executable, so either I'm not looking in the right place or it's built into NI-CAN or MAX.
    Message Edited by FlamingYawn on 05-24-2007 06:19 PM
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

    Indeed it is.  I found the executable at c:\Program Files\National Instruments\NI-CAN\bin.  It won't run by simply clicking on it, you must call it with the can port (e.g. CAN0) as the first paramenter.
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

  • NI-CAN BUS MONITOR

    I am using the NI-CAN bus monitor in measurement and automation explorer. I would like to observe all frames on the network. However, if multiple frames use the same Arb. ID it only displays the last frame received. Is there a setting that will enable me to see every CAN frame as they appear on the network. I know that you can use the ID logger window to display all frames of a particular ID but I would like to be able to see every frame. Is there a way to do this?
    Thanks
    Kyle

    Hi Kyle,
    Aside from using the ID logger, you could stream all the CAN data to a file (Options » Streaming Setup).
    Would that do the trick?
    -B2k

  • Dual Stepper Motor Controllers on a CAN Bus

    Hello All,
    I hope this is the right forum for this message.  If not, please let me know where I should post it.
    Friends of mine are working on a project involving controlling many dual-stepper motor assemblies, using LabVIEW as the main control code running in the control hub computer.  The stepper assemblies will be located remotely, up to several hundred feet away from the control hub.  I suggested that they consider using a CAN bus for communications, and they seem interested.
    Can any of you recommend drop-in stepper motor controllers for this application that will integrate easily with LabVIEW and NI-CAN?
    Is CAN the right com bus for this application?  If not, what would you suggest?  What else should my friends be considering?
    Many thanks in advance for any suggestions you can provide.
    Sincerely,
    Forbes Black

    Just post a link to the new forum post so that anyone that wants to answer will be directed to the correct one. You can not remove it yourself. Have a great day.
    Alex D
    Applications Engineer
    National Instruments

  • Interacing Labview with a CAN bus interface

    I should use a CAN parallel/serial interface produced by
    ACTIA(NetPorty II) and i'm using Win XP and LV 6.1. What is the
    simplest method to use it in a "user friendly" way (i'd like to avoid
    writing a driver myself)?
    Does anyone of you own the same card and/or must face similar
    problems??
    If you want you can answer me via e-mail...
    Thank you in advance,
    Luca

    Thank you for your answer, i'll try to work at it...i'm a novice!
    On Tue, 4 Mar 2003 15:58:08 -0600 (CST), DiegoF wrote:
    >Hi,
    >
    >It really depends on the software the manufacturer provides to handle
    >this device.
    >
    >If the manufacturer provides an API that exports the CAN bus specific
    >functions and internally handles the parallel or serial communication,
    >it would be recommended to use this API. Most likely the API will
    >have a C interface, so you can use the library function call nodes to
    >access these functions.
    >
    >If the manufacturer only provides a list of command you need to send
    >to the device, then the problem is no different from communicating
    >this other devices (like scopes, DMM). basically, you can use VISA
    >to send the required com
    mands to the device.
    >
    >Hope this helps.
    >
    >DiegoF.
    >National Instruments.

  • Resetting CAN bus without knowing task reference

    Good morning everyone,
    I am using the CAN Channel API to read data coming in from a CAN bus while simultaneously taking measurements using other DAQ hardware. When my VI throws an error after the CAN bus has been initialized and started, attempting to run my VI again will cause the CAN init-start VI to throw an error because the channel was never cleared.
    Is there a way to clear a CAN channel without having a task reference to wire? How else could I solve this issue?
    Thanks!
    Erik
    Solved!
    Go to Solution.

    Hi Erik,
    Is the error that you're experiencing coming from the same function on a regular basis?  If so, what can be done prior to adding error handling to the entire application, you can add a case structure, use the error cluster from that function to act as the selector for the case structure, and add a Clear Channel command to the true case of the structure followed by an error handler.  
    Now, that said, I still recommend employing error handling throughout the application, especially if this will be distributed as an executable.  But for development purposes, that may be the quickest way to implement a Clear function on failure in the VI so that it will restart correctly on the next iteration.
    Regards,
    -Dave C
    Applications Engineer
    National Instruments

  • Read CAN bus object

    Hi there,
    I´m a new comer in the field CAN bus diagnose, and have problem with CAN object diagnose.
    As I write my program just like the attachment, I received an error message.
    I wanna poll a specified ID without reading the CAN net in whole.
    How can I use the CAN object VIs correctly?
    Thx!

    JB is right, objects are not supported since the USB-CAN does not have an internal processor like the Series 2 CAN cards.
    You could either use hardware filters to filter out all unwanted frames and keep CPU load down or receive all frames and filter them in LabVIEW.
    Regards,
    Andreas S
    Systems Engineer

  • Kvaser CAN bus

    Hello,
    I'm trying to use a kvaser CAN bus card with Dasylab. However I'm not able to use it... Is it possible to use a kvaser card at all in Dasylab? Which module should be used for this? Does anybody know this?

    National Instruments provides this forum as a courtesy to its customers. However, this is not the primary method for requesting support and assistance with the DASYLab product. NI does not actively sell the DASYLab software, nor does it actively support it.
    Where else can you obtain assitance?
    Your reseller - it's likely that they are familiar with your hardware and can provide help.
    The www.dasylab.com web page has updates, drivers, product information, an extensive list of technical notes.
    Measurement Computing Corporation has product information, product updates, and support information.
    In Europe, MeasX GmbH & Co Kg sells, supports and enhances the DASYLab software
    We recommend that you contact your reseller first. They know your hardware and software environment, and are most likely to be able to assist you quickly.
    You can request help directly from a support engineer by going to the Support section of the www.dasylab.com web page. This is automatically routed based on geography,  to the person best suited to assist you.
    If you post a question in this forum, we cannot guarantee a response time.
    When requesting support for DASYLab
    DO NOT post your full DASYLab serial number
    Please tell us
    the version of your DASYLab software, 
    the level of your software (Lite, Basic, Full, Pro)
    the exact DAQ device by manufacturer and model,
    your operating system and computer,
    and, if appropriate, a copy of your worksheet.
    - cj
    Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.

  • Basic CAN BUS question

    I'm using a CAN BUS for the very first time and would like to have some explanations on something that seems to be a normal behavior. I used the CAN Transmit - event based.vi with NI-Spy to monitor the outputted CAN frame.
    I've set the baudrate to 1MB, the Arbitration Id to 0x8, the data length to 4 (see attached Front Panel Settings.jpg). When I look at the captured input and buffer I can see that the input data size is 14 and that the buffer contains the arbitration Id 08 followed by four 00 bytes, the data lenght value 04, the four data bytes 01 02 03 04 and then four 00 bytes.
    These results doesn't seems to be compliant with the CAN frame specification (see attachment CAN FRAME Bosch.png). Can somebody explain this to me?
    Thanks,
    Ben
    Attachments:
    CAN Transmit - event based.png ‏48 KB
    Front Panel Settings.jpg ‏44 KB
    CAN Spec Bosch.png ‏162 KB

    Hi Ben,
    What's the exact hardware you are using with this? Have you checked with the Bus Monitor instead of NI Spy to see if the frames are read correctly. It's generally a lot more difficult to make sense of the frames in NI Spy. You can launch Bus Monitor from MAX by right clicking the specific CAN interface. If you have a 2 port CAN device or have 2 CAN ports that you can access, then you can write out of one and read from the other using the Bus Monitor to make sense of what's being written on the bus.
    Raj
    National Instruments
    Applications Engineer

  • Can bus activity

    Hi all,
    I'm using all ports of a PCI series 2 CAN card and I would like to monitor the bus activity using without opening bus monitor.
    Does anyone know how to detect if the CAN bus is still sending messages or not using channel-API?
    Sometimes the bus seems to freeze after a while and not showing any changes at all. I have to stop the vi and run again to see the change value.
    I am trying to read lots of messages (each contain maximum 64 channels). I use Multi-Chan Single-Samp 1D Dbl type to read.
    Thank you
    -bm-
    Attachments:
    Single Sample Input.vi ‏57 KB

    Please direct all replies to the following post:
    http://forums.ni.com/ni/board/message?board.id=30&​message.id=1457
    Logan S.

  • CAN bus errors

    I have an application that monitors up to 11 different DUTs at a time. My LabVIEW program utilizes the USB CAN device at 125k speed. The moment I connect more than 6 DUTs, the CAN bus starts to fault (error out) and will not read from anymore DUTs.
    I can connect all 11 DUTs and run the CAN Test Panel in MAX with no errors. Any thoughts what might be happening??
    Thanks,
    Kevin

    What's the fault or error message?  Are you trying to communicate with all of the devices simultaneously?  Do the devices all broadcast when connected, or do you need to address them individually?  Can you share your code?  Is there any possibility two devices are trying to use the same arbitration ID at the same time?  I currently have a system running with 12 devices on the CAN bus connected to a NI USB CAN device with no issues, so I doubt it's purely an issue of the number of devices.

  • Can bus HELP

    I am working on the zebra battery and i need some help that how i use the can bus. I need to interface the zebra battery with pc and to automize it using LABVIEW. The zebra battery is using a can protocol. I have NI-USB-8473. I go thorught labview stuff. But i donot know from where i start. What should i do. Any advice?

    What are you trying to do ? Send CAN messages and monitor the response or do some diagnostic activities ? USE NI CAN VI's to do all kinds of activities., as far as I can see you are trying to work on battery management systems where you might have to monitor cell voltage values, charging, discharging and others. Send CAN message in proper 11 bit or 29 bit format. Pls let us know what you need to do in specific and what kinds of problem are facing in your try, forum people are there to guide you.

Maybe you are looking for

  • ERROR MESSAGE 401 - ITUNES COULD NOT CONNECT TO MUSIC STORE

    I've rencently tried to download some tunes from the Music store but keep getting this error message: "ITUNES COULD NOT CONNECT TO THE MUSIC STORE - AN UNKNOWN ERROR OCCURED (401)" "MAKE SURE YOUR NETWORK CONNECTION IS ACTIVE & TRY AGAIN" This messag

  • I can't open my adobe muse.

    My website is just fine online so it's something with Adobe. The message "Delete File Error 3001 Wrong format or user file not found - fileA" comes up. I've not moved anything so I don't know what it could be.

  • LSMW  recording issue

    Dear All, I have created a LSMW with recording method.Now I want to add some other fields to that record created. How and where can I add fields? Plz explain me Treat it as an urgent. Regards, Kumar.D

  • Font corruption in virtual consoles

    Not sure where to put this, so it goes here. I am currently a victim of font/screen corruption in the virtual consoles (probably not X, not sure, haven't installed a WM/DE yet). I am using a 1680x1050 resolution (8bit color) with the vesafb driver fo

  • Safari crashes multiple times each day

    I'm having issues with Safari 4.0.2 crashing multiple times each day. I'm on a Mac Pro running 10.5.7. I planned to post this in the "Safari" discussion group, but was getting a system error when trying to load that group. I've already tried repairin