Using Can with Labview

Hi,
I'm new to Labview and I'm trying to create a simple Bus Monitor (I know there is one in the NI Measurement and Automation Explorer but we are using a different frame format and their bus monitor cant cope) for a CAN. I've looked at the manuals and the tutorials but I cant get any examples to work or find any of the CAN API stuff in LabView. It seems to me like some of the library functions (if thats what you call them in LabView ;-) ) are missing. I tried reinstalling and looking at the NI website with no success. Can anyone shed any light on what the problem may be?
Thanks,
Elissa

Hi Elissa,
it depends on your version of LabVIEW, where the NI-CAN paletts get installed:
If you're using LabVIEW 6.1, you will find the 'CAN' palette right in the first level of the 'Functions' palette.
If you're using LabVIEW 7.0 (or newer), you will find the 'CAN' palette right in the 'NI Measurements' palette.
To find an NI-CAN driver that support an older version of LabVIEW, please see here:
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/e01ef8b67cb49a4c86256cde0051df66?OpenDocument
There is a LabVIEW example that receives data, like the BusMonitor does.
Open the NI Example Finder (in LabVIEW: Help » Find Examples) and navigate to the CAN Receive example:
Hardware Input and Output » CAN » Frame API » General » CAN Receive.vi
In case of an older version of LabVIEW (no NI Example Finder), you can find the NI-CAN examples typically at
C:\Program Files\National Instruments\LabVIEW x\examples\nican\...
-B2k

Similar Messages

  • I have got a 1500 Kinetic Systems CAMAC crate and 3922 controller. I want to use it with LabView inst

    alled in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Can the latter interface be used with LabView?
    Many thanks.
    Victor. I have got a 1500 Kinetic Systems CAMAC crate and 3932 controller. I want to use it with LabView installed in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Thanks

    alled in PCI-bus IBM PC, which does not have GPIB interface. Which way would be easier for developing my own instrument driver: a new GPIB controller + interface or 2915 Kinetic Sys. PCI-bus in-slot interface? Can the latter interface be used with LabView?Victor,
    I couldn't find an Instrument Driver for the 3932 crate controler. There is a driver for the 3988: http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/045f8392cc4d1b01862568ab005fbb49?OpenDocument
    If you look at the driver it isn't too complex. Well ... actaully there are certain differences when using the 3988 GPIB controller that the driver takes care of that relate to correctly passing commands (FAN).
    If the 3922 controller is similar then maybe you can use the 3988 driver and modify it to meet your needs. I'm not familar with the 2915 Kinetic system so I'm not sure what would be easier.
    If you have a GPIB board, then you could try using the 3988 driver with your 3922 controller and see if you can modify the driver to get things to work.
    I
    've only used the 3988 and that was quite three years ago but it might be worth a try.
    Best of luck,
    Kamran - NI

  • Anyone Use GIT with LabVIEW?

    I think that the vast majority of people using SCM with LabVIEW are using either Perforce or SVN. Is there anyone who either uses or has used GIT, integrated into LabVIEW or not integrated? (I think there is a tool that uses the SVN protocol to talk to GIT)
    If so what were your experiences?
    =====================
    LabVIEW 2012

    There are several other posts on LAVA mentioning GIT (I think a lot where from FIRST). Post there (just link this post there as cross-post).
    I personally think, that my arguments don't speak against GIT. I've been using SVN and Hg(mercurial) without any integration in the LV IDE (although I have some integration for Hg yet).
    I forgot to mention: Using SVN you could use the plug-in from JKI. If your company invests the money, I'm sure it' a **bleep** good deal.
    All these tools perform very well, even if you don't have the native LV support (as VSS, Perforce).
    If you want a poll, you can check the NI-community features. Just setup one for SCC specifics. I was planning to do one myself, but I don't have the time. It' still not as good (from the quality and quantity of posts) a the forums, but has some cool features (wikis, polls). Advertise this on the most up-to-date posts on SCC issues. I and many others will drop in, I'm sure.
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Has anyone used CORBA with LabVIEW?

    Has anyone used CORBA with LabVIEW?

    Did you have any success with this?  I'm about to attempt the same thing and would rather not write intermediate functions in other other languages to do so...

  • Connect plc using modbus with labview

    hi
    i m using Modbus to communicate plc with labview . but it is not working.......?
    can any one give me the example program so that i can understand how to communicate ?

    Hi Nadeemalikpda,
    Are you using the Modbus Library (http://zone.ni.com/devzone/cda/epd/p/id/4756) or the DSC Module for the Modbus communication?  There are examples included for each.
    For the Modbus Library, the examples are in the .llb (MB Serial Example Master.vi, MB Ethernet Example Master.vi).
    For the DSC Module, take a look at the help file here, which also has the locations of the example programs: http://zone.ni.com/reference/en-XX/help/371618F-01/lvmve/dsc_modbus_using/.
    Morgan S
    Applications Engineer
    National Instruments

  • Where should I start from to use HP4145B with LabView?

    I am not familiar with LabView, but I have to set up LabView to make it work with HP4145B.
    I downloaded the driver from NI, placed it at the correct directory, and can see VI's in function palette.
    Also, when I run MAX, it shows "Instrument 0" under GPIB0.
    When I click on "Scan for Instrument", it says something about IDN query, but now I know HP4145B is too old to understand IDN query.
    I saw a lot of posts that say they can write to the instrument but cannot read.
    However, I don't even know how to test whether my labview can write to 4145B or not.
    My questions are....
    1. 4145B manual says it has "ID"  code.
    I tried testing it by using "Interactive Control"
    And I got this by NI Spy
    1.  ibsic(GPIB0)
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:23:22.485       Duration 00:00:00.000
    ibsta: 0x160       iberr: 0             ibcntl: 0(0x0)
    2.  ibsre(GPIB0, 1)
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:23:26.070       Duration 00:00:00.000
    ibsta: 0x160       iberr: 1             ibcntl: 0(0x0)
    3.  ibcmd(GPIB0, "@?1", 3 (0x3))
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:24:18.606       Duration 00:00:00.000
    ibsta: 0x178       iberr: 0             ibcntl: 3(0x3)
    4.  ibwrt(GPIB0, "ID", 2 (0x2))
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:24:30.242       Duration 00:00:00.010
    ibsta: 0x168       iberr: 0             ibcntl: 2(0x2)
    5.  ibcmd(GPIB0, "? Q", 3 (0x3))
    Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    Start Time: 15:25:12.333       Duration 00:00:00.010
    ibsta: 0x174       iberr: 0             ibcntl: 3(0x3)
    > 6.  ibrd(GPIB0, "", 20 (0x14))
    > Process ID: 0x00000C1C         Thread ID: 0x00000EB4
    > Start Time: 15:25:23.289       Duration 00:00:16.784
    > ibsta: 0xc164       iberr: 6             ibcntl: 0(0x0)
    There are four LED's on the front panel of HP4145B.
    It shows status of HP4145B whether it is talker or listener.
    LED changes properly to my command. (So I don't think there is any problem with harware connection)
    But, I still get nothing but EABO error when I want to read something.
    What am I doing wrong?
    How can I test "ID" code?
    (I do not have ultra-fast typing speed so I think I gave 4145 enough time to respond before I typed new command)
    2. I tried to use driver I downloaded from NI.
    Other posts say that people used "HP 4145 Example.vi" for testing.
    However when I put "HP 4145 Example.vi" on the block diagram, I cannot run it.
    How do I test with "HP 4145 Examble.vi"?
    3. I tried testing other vi's such as "HP 4145 source setup.vi".
    I put that vi on the block diagram window, added constant of 17 to GPIB address,
    and other constants to other inputs and run it.
    A new window popped up, so I ran it again.
    However it does not seem to work since I see no change when I go into source set up menu directly from HP4145 front panel.
    Again, LED indicator changes to LTN(which means HP4145B is in listener mode) when I run vi.
    What would be the problem?
    I'm experiencing a lot of trouble with this HP4145B, and I know too little to solve this by myself.
    Somebody please help me with this.
    Thanks in advance.

    My 4145b uses address 17.
    I checked switch setting on the backpanel of 4145b and CRT on the front panel says "HPIB(17, COMMA, EOI)". Also, when I change address to 16 and execute vi file, it gives me an error message of "HP 4145 Define Channel; HP 4145 Send Message"
    When I change back to 17 and execute, error message disappears(and no more error message comes in when I send command to 4145b), but nothing happens on 4145b.
    As I said eariler, LEDs on 4145b seems to be saying that 4145b understands basic command such as "change to listener" or "change to talker".
    In addition, when I try to read from 4145b from "HP4145 example.vi", for example by clicking on "Display Graphics and Plot" and execute, I get error message "HP 4145 Take Measurement; Wait for Interrrupt (GPIB)". However, reading is not the problem to think right now because I don't even know how to read.
    I have Newport 1830-C with me, and I checked this instrument with same GPIB-USB-HS and same PC I am using with HP4145b.
    It works with 1830C. Therefore, it doesn't look like there is something wrong with  my PC and GPIB-USB-HS.
    Anyway, thank you for your attention.
    메시지가 06-25-2008 01:28 AM에 Min Yoon에 의해 편집되었음
    메시지가 06-25-2008 01:36 AM에 Min Yoon에 의해 편집되었음

  • What changes are needed in Server Operating system using OPC with Labview

    I am a novice trying to connect Labview into KepwareEX OPC server. I am using MS Windos XP on both sides. at first I could see no OPC server I checked with the Kepware and they suggested me to fix the DCOM configuration on the Server. at last I saw the OPC Server and their client connected to it.
    When I try to assign a Datasocket connected to a control on Front panel in to OPC. System Browses and see the OPC server but after selecting the tag. when I run the software, connection Lamp gets red and this Error comes up ""Can't connect to OPC server. Registery Access denied" . the Kepware  quick client is working OK. and Labview got connected when I tested it on the same server. I think there is something wrong with Server OS configuration cause I can not See the Labview OPC Server too, which is installed but I am not using it, Can anybody help me ?

    Hello:
         When you try creating a new I/O server and when you select OPC, you should be able to see the list of OPC servers installed in the system. You can select LabVIEW OPC and select a I/O item from the configure OPC client instance.
    From what I understand you are able to connect from LabVIEW just fine. Are you able to use server explorer and connect to kepware? The following tutorial will step you through using OPC servers with LabVIEW.
    http://zone.ni.com/devzone/cda/tut/p/id/3742
    DSC is LabVIEW add-on for developing your HMI/SCADA or high-channel-count data-logging applications. With the DSC Module, you can interactively develop a distributed monitoring and control system with tags ranging from a few dozen to tens of thousands. The following link has a TCP modbus presentation that you will find useful.
    http://www.ni.com/labview/labviewdsc/upgrade.htm
    Please let us know the steps you are following to configure the OPC connections and post some snapshots. This will help in better understanding.
    Thanks and hope this helps
    Regards
    Avi Harjani

  • CAN with LabVIEW

    I am working on a project involving CAN and LabVIEW. Are there any decent tutorials out there on some of the basic functions and VIs for working with CAN in LabVIEW?

    I assume you are using a National Instruments NI-CAN interface. If that's the case, your best bet is the "NI-CAN Programmer Reference Manual" (installed as a PDF in your NI-CAN folder). This manual documents all of the NI-CAN functions available in LabVIEW and shows the wiring diagrams for how to use each of them. You may also open the VIs from the NI-CAN function palette in LabVIEW and get context-sensitive help by toggling +H.
    Another option is to examine the LabVIEW examples that come with NI-CAN. These demonstrate a wide variety of functionality, so you should be able to find something close to what you're trying to do. You can use the examples to get an idea of good NI-CAN programming techniques with LabVIEW, and possibly make minor modificati
    ons to suit your specific application.

  • Using Selenium with LabVIEW

    Does anyone know how to run Selenium Test cases and test suites from within LabVIEW (or can we directly code these from within LabVIEW as well)?

    Hello Rashid,
    I'm not very familiar with Selenium, but you may find the following information useful:
    Inter-Application Communication
    https://decibel.ni.com/content/docs/DOC-9131
    Let us know if this helps!
    Andy C.
    Applications Engineer
    National Instruments 

  • Has anyone used servicelab with Labview?

    I see many questions on how to communicate with Seimens S7 PLC's and to me (an extreme beginner) it looks pretty complicated. We run a package called Servicelab from Servicelab ltd. which makes it very easy to pick out tags and display and graph them. Does anyone have any experience with  using Labview to pull this data and drive Crio modules?

    Hi Offshore,
    It sounds as though you do in fact need LVFPGA considering you are using cRIO units. The link that I sent you primarily discusses fieldpoint units compared to the Siemens product. From what you have mentioned in your post, it appears that you do not have any fieldpoint modules or controllers. I guess I am not quite sure what is meant by "that is what I need to do". I am assuming that it is referring to automation and monitoring systems for a factory monitored in a control room with touch screen monitors.
    Please note that I am not familiar with all of your needs for your project and the cRIO PAC may very well be a better fit for your particular application. Please note that the cRIO platform is extremely flexible and has a great deal of advantages in terms of performance over Fieldpoint modules.
    In order to do a complete comparison of the differences, here is some information on each of the products for your convenience:
    FieldPoint -- Modular Distributed I/O
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/1206
    Compact FieldPoint
    http://www.ni.com/compactfieldpoint/
    CompactRIO Reconfigurable Embedded System
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/14145
    If you are working with your NI rep on this, I guess my advice would be to ask him or her why cRIO would be a better fit for your application based on your discussion with them. Please let me know if you have any questions on what I mentioned. Thanks Offshore and have a great day!
    Best regards,
    Steven

  • How to use buffer with LabVIEW v5.0.

    Hi all,
    I'm using LabVIEW 5.0 (quite old version) . Now I want to do this task :
        1. Write 100 patterns (8 bits) to buffer.
        2. When the task writing finish, read the first 50 patterns in this buffer.
    But I don't know, does LabVIEW 5.0 support to do this example ?
    Could you give me an example for it ?
    Regards,
    Ha Le

    What kind of buffer are you talking about? It sounds like all you want to do is create a 100 element array. Use a for loop, the initialize array function and then Replace Array Subset inside a loop with a shift register, a build array and shift register inside a while loop, etc. After the array has been built, you use the Index Array function to read it. Maybe you could provide some more details on exactly what you want. 

  • Use VB with labview active X

    i have the LabVIEW 7 now. Can i use VB to import the graph from labview?If can not then what should i do in order to use the labview graph in VB?

    You can use VB to access the data from your LabVIEW VI but you can't host the LV graph control in your VB application. If you're looking for a native graph control for VB, check out ni.com/mstudio. There's UI controls there that include graphs as well as many of the other UI controls you find in LabVIEW. There are version for VB 6 as well as .NET.

  • Using SignalExpress with LabVIEW VIs

    Hi everyone,
    a short question about interaction of SignalExpress and LabVIEW: does the integration of LabVIEW Code work although LabVIEW is not installed? I may have an application where users need to use some VIs in SignalExpress but they don't need to edit them. So it would be nice not to have too spend the money on antoher LabVIEW license.
    Cheers
    Oli
    Programming languages don't create bad code, programmers create bad code....

    Hi Oli,
    take a look into Knowledge Base Entry 3LAGNBL2: http://digital.ni.com/public.nsf/websearch/F6D5EF4620EE12EB86256FFE007D2086?OpenDocument, it tells you the requirements for doing that.
    Furthermore you will find useful information about creating these steps in the following docs:
    http://zone.ni.com/devzone%5Cconceptd.nsf/webmain/5A807DFBE89D7EAD86256ED30008D88A/$File/WP2466.pdf
    http://zone.ni.com/devzone/conceptd.nsf/webmain/B19A4046EADBFA6C86256EE90078C35E
    Hope it helps!
    Good luck programming your plug- ins and kind regards
    Stefan
    Impossible is nothing - nothing is impossible

  • Blackfin: is there anyway to use BF561 with Labview for Blackfin 2.5?

    In manuals i see only support for bf533 or bf548.
    Is there anyway to program it on BF561 ?
    BF561 is dual core, but i dont care if only one core will be used.
    tnx,
    HaD

    I notice in the LV Blackfin developer suite that Visual DSP ++ is a part of hte system now.  Visual DSP ++ supports the 561.  I guess I need to ask again.  Could you develop for the 537 say (a same speed target as the 561), take the resulting code, move it to Visual DSP++, and port the download to the 561 that way?  If you are going to distribute Visual DSP++ with your system, could you please ask them if they could help with this?  It's not my job to integrate your products for you. 
    Thanks.
    Anxiously awaiting what I know will be an awsome combination tool from LV and VisualDSP++ for all the Analog Device products.
    Just sitting here Humming while I wait.

  • Suggested in-process database for use with LabVIEW?

    I've been researching databases for a few days looking for something lightweight that I can use when developing applications. I saw the post by Anthony Lukindo on Expressionflow (http://expressionflow.com/2007/07/05/labview-based-utility-to-package-deploy-ms-sql-server-2005-expr...), but I'm not really looking to use an enterprise level db and it sure seems complicated. I looked at both MS SQL Server Compact 3.5 and SQLite, and they both look to be about what I'm looking for, but I haven't found any LV interfaces to these things. There appeared to be an aborted effort to get a SQLite interface made as an OpenG toolkit (SQLite database toolkit (Windows)), but it seems to have inexplicably vanished. I like the idea of SQLite better than the MS product because it seems to only include the things I'm looking for, and it's cross platform (and public domain) and I am thinking about starting to write an interface myself. I'd appreciate any comments on the topic.
    I do have the LV DB toolkit, but I would rather not have all the overhead associated with speaking to an out-of-process db through external components (plus the headeaches associated with deploying the thing). I am pretty much a nubie in this area though, so maybe I can be convinced otherwise.
    Thanks,
    Chris

    SQLite is propably the best performing free open source disk based database for a "single-threaded" applications or for reasonably sized multi-threaded applications that do not require row-level or table-level locking. So do not consider SQLite only as a development time alternative... it is a good alternative for many purposes.
    You can connect to SQLite with a  ODBC driver, I think, and do not need a native LabVIEW support for SQLite. Just google SQLite ODBC.I have not tested this, but if so, you can use any of the ODBC database toolkits for LabVIEW, even the National Instruments one
    A different thing is that if you need a database for development purposes, should you actually set up one? I'm a friend of a software-as-a-service and currently use hosted mysql databases at Mosso. I use them for web development project but I see no reason to use them with LabVIEW as well, as long as your development computer  is online. The good thing about hosted services is that they really are zero-configuration and zero-maintenance. When ever I've a problem or don't know something, I simply chat with the support person online Another good thing is that my hosted databases come with online administrative interface, phpMyAdmin, which simplyfies the database management, especially during the development phase when everything is not working as expected. Furthermore I can use MySQ Workbench to visualize the structure of my database for documentation purposes.
    p.s. Mosso pricing starts from $100/month which may be over your budget, but the support is simply superb. For the price you get practically unlimited number of databases of you choice such as MySQL and MS SQL 2005, and practically unlimited number of hosted web sites running in a load balanced cloud with either Linux or Windows or mixed. The downside is you cannot install new programs such as LabVIEW and you have to do with the services they provide. When your computational needs exceed certain limit of processor cycles a month, you need to pay more. This limit is something like a single processor server.If you decide to go for mosso, use the following referral code "REF-EXPRESSIONFLOW" to get the second month free. The promotion is valid until the end of September and after that you get $50 off from the first month price.
    Tomi Maila

Maybe you are looking for

  • Retruning parameter/value from report to form - (Urgent)

    Hi , I am calling a report (2.5) from a form using RUN_PRODUCT. I would like to know if there is any way to do the following. (a) Return a value from reports to calling form. For ex. I would like to know the last Item name (assuming the reports print

  • Call Ref cursors in DAAB

    Hi, I have one procedure in Oracle which is returning the REF Cursor I am accessing it by using the Data access application block DAAB like the following: OracleParameter param = new OracleParameter(); param.ParameterName = "Emp_Cursor"; param.Oracle

  • Infospoke inactive after transport

    Experts, In version 3.5, I have created an infospoke with transformation and unit tested in Dev box. After transport I have got an error 8 while importing in QA. I checked all objects if anything missing or inactive in dev box related with this trans

  • Repot cost center groups,cost element groups and quantities

    Hi Is there any report displays only costcenter groups, costelement groups and quantities. No line items are required this is for management purpose. thanks in advance prasad

  • Rearrange pages based upon content

    I have a pdf file with over 6,000 pages in it.  Each page has information on an individual inventory item.  Previously this file has been arranged numerically by item number.  It is now arranged by item size - this does not help me!  Other than manua