NI USB CAN 8473s

Hello everibody sorry my English is not very good but in think you could understant my ask.
I must create a program only with Labwindows/CVI with an USB CAN 8473s that could display a XY graph with the information that my canbox will read. But I don't know if it's feasible because of the incompatibility within Frame API functions and Channel API functions? Is there a possibility to do that program with Labwindows with NI functions or others functions?

Hello Shizuo,
I've posted on your french topic.
Regards,
Mathieu P. | Certified LabVIEW Associate Developer
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
Journées techniques : des fondamentaux aux dernières technologies pour la mesure et le contrôle/comm...

Similar Messages

  • NI USB CAN 8473 with real time engine

    i am using NI USB CAN 8473, its driver version 2.5.2 and labview 8.2. I havle all these installed in one laptop and i am able to send and receive can messages. Now i built the .exe of the same vi and trying to run it another laptop which doesn't have Labview installed in it. But i have installed run time for 8.2 and same NI-USB-CAN driver 2.5.2
    But still it is not working in the second laptop. Can any one support me for the same...
    Regards
    Mahesh

    Hi Manhesh,
    I think you meant to say, "Does the USB CAN 8473 work with the LabVIEW Run Time Engine?" LabVIEW Real-Time Module and Engine are not the same thing as the LabVIEW Run-Time. (Just a side note that the USB CAN devices do NOT work on LabVIEW Real-Time OSes).
    Can you tell us a little more on how it is not working? Is the executable loading, but you don't see CAN traffic? Is this your LabVIEW VI that you builting into an EXE, or an example? Does an example CAN program from the example finder built into an EXE work OK? Do other LabVIEW built EXE work OK? Does your USB CAN device show in MAX?
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources

  • USB-CAN 8473 and Diadem/MAX

    Hello,
    I have a USB 8473 which I would like to use with Diadem.  Under Max I can see the devices and create channels which refer to these two devices.  However in Diadem all the channels are visble but not available (red Xs).  Any ideas here as to what I am doing incorrectly here?
    Thanks,
    Jeff

    Hello Jeff,
    there are two APIs for NI-CAN, the channel API and the frame API. The DIAdem driver for NI-CAN is based on the channel API of NI-CAN. Unfortunatelly this API is not supported by the USB-CAN modules. These modules support only the frame API of NI-CAN. Thus DIAdem does not support the USB-CAN modules.
    Unfortunatelly in MAX you can assign a CAN message to a USB-CAN port so that you might think everything is fine with this setup. But if you launch the Testpanel, you will see that you cannot run it on the USB-CAN ports.
    Rainer

  • USB CAN 8473 goes crazy

    Hi, guys, my CAN USB8473 goes crazy.
    I use CVI  8.5  to communicate with USB 8473. The software done by using CVI works all right before, when i use another USB 8473.
    However, now, when i just try to initialise the CAN0, i find that the USB CAN is keeping sending CAN frames, then i open the NI-Spy, there is no action observed in spy,which means my soft doesnt give the order to send messages, but the CAN port just keep sending messages(i use a very good scope to get the active can activity). When i call the function to reset the CAN, it stop sending frames, but after i try to send just another frame, it starts  sending frames endless which always goes with ACK error.
    from what could i know if is my hardware problem? I dont want to believe the problem is my hardware, because it is a quite new USB 8473. 
    What is wrong?

    Hi,
    If you send a Frame and there is no receiver connected acknowledging the frame the can controller would transmit the frame over and over again until it becomes acknowledged or the driver closes the handle for the port. 
    The re-transmit ishandled by the can controller onboard automatically and it doesn't require api call, thus it doesn't show up in NI-SPY.
    But you should be able to stop this, by closing the handle.
    DirkW

  • NI USB CAN 8473 write single frame and log all frame of network with read notification on the same port

    Hello,
    I am trying to code an application which:
    - Write sometime (button click) a frame on a CAN network
    - Log all frame of CAN NETWORK
    My hardware is NI USB 8473 (1 port).
    1/ After reading NI help about CAN APIs, I think it is not possible to do "log all CAN frame" with Channel API because I need to install a asynchronous callback to read all message, and this functionality is only present in frame API.
    Anyone can confirm?
    2/ No problem let's use Frame API
    I have tried "CAN Receive with Notification" example delivered with NI-CAN driver, configured on virtual CAN256.
    I start other sample program to generate some frame on virtual CAN257, no problem, everything is working.
    So, i have tried to modify "CAN Receive with Notification" to add write function. I have mixed this source with "Transmit Receive same Port" sample (which works fine alone on CAN256).
    My program is running, but nothing appens when I click on WRITE button.
    I suppose some attribute are not confired, but which one.
    Anyone can help? (source of my modified sample is joined to this post).
    Thanx.
    PS: please note im a newbie with CAN
    Attachments:
    CAN Receive with Notification.zip ‏10 KB

    Hi,
    Thank you for posting your question on National Instruments' Forums.
    I'm a little puzzled by your question.
    If I understood well, you just want to receive every frame reaching the port and sometime write something through the port. Am I correct ?
    You are right when you state that the NI USB 8473 can only work with frame API. However, if the operation you want to make is the one I discribed above, I can't see where you encounter a difficulty.
    Indeed, for such a case, the example you mentionned in your post is perfectly suited. "Transmit Receive same Port" allows you to receive the frames reaching the port and write we needed too.
    I think this example shoudl do the trick.
    Or have you a more specific application in mind ?
    I hope this information will help you.
    Best regards,
    Guillaume H.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> NIDays 2011, le mardi 8 février au CNIT de Paris La Défense

  • NI CAN 8473

    Olá pessoal, 
    entäo estou tentando instalar o NI usb 8473, porem näo esta funcionando, e eu näo sei o por que, instalei o driver NI-CAN2.7.3, mas quando chega no passo de reconhecer a porta, ele até reconhece no programa measurement &  Automation, porem quando chega quando eu clico em ferramentas>>NI-CAN>>configuracäo do RT-Hardware ele pede um IP, porem eu näo sei qual IP que é esse?
    e outra pergunta seria, por que quando eu vou em exemplos no LABview näo aparece os exemplos do NI can, e muito menos consigo ter os componente para fazer um programa para minha NICA 8473?
    Grato

    Bom Dia riquemd, beleza??
    Vamos às suas dúvidas...
    riquemrd escreveu:
    (...) porem quando chega quando eu clico em ferramentas>>NI-CAN>>configuracäo do RT-Hardware ele pede um IP, porem eu näo sei qual IP que é esse?
    Essa instrução é usada quando você está usando targets Real-Time como o compactRIO ou o PXI-RT. Eu acredito que você esteja conectando seu USB CAN 8473 diretamente no PC, certo? Se for, essa não é a instrução ocorreta.
    Dá uma olhada na página 2-3 do NI-CAN Hardware and Software Manual,  no tópico Verify Installation of CAN and LIN Hardware como fazer a detecção, teste e configuração dos canais CAN. É bem tranquilo!
    riquemrd escreveu:
    e outra pergunta seria, por que quando eu vou em exemplos no LABview näo aparece os exemplos do NI can, e muito menos consigo ter os componente para fazer um programa para minha NICA 8473?
    Isso não deveria acontecer, cara. Quando você instala o NI-CAN, são instalados exemplos no LabVIEW que poderão ser encontrados no NI Example Finder. Você inclusive pode filtrar os exemplos pelo seu dispositivo, assim como eu fiz na figura abaixo para o seu dispositivo.
    Se você não está conseguindo acessar os exemplos mesmo assim, pode ter acontecido um erro na instalação do Driver. Neste caso eu sugiro que você repare sua instalação.
    Atenciosamente.
    Felipe Flores
    Engenharia de Aplicações
    National Instruments Brasil

  • USB-CAN USB-8473s で定期送信したい

    サービスリクエストNo.766130です
    OS:WindowsXP
    開発環境:Visual Basic 6.0
    USB-CAN USB-8473s
    NI USB-8473s を用いて
    相手ECUのID100hに対して10ms 周期で定期送信処理を
    行うためのプログラムを作成中です。
    プログラム起動時、下記のプロシージャを実行するのですが、
    Status = ncConfig("CAN0:TD0x100", 7, AttrIdList(0), AttrValueList(0)) の
    戻り値が 0 にならず、設定ができません。
    戻り値 BFF6210Dhになりました。
    この問題を回避する有効な手法はありますでしょうか?
    よろしくお願いいたします。 
    Private Sub Can_Open()
        Dim AttrIdList(10) As Long
        Dim AttrValueList(10) As Long
        Dim nret As Long
        nret = 0
        '// CANネットワークインターフェースの設定
        AttrIdList(0) = NC_ATTR_BAUD_RATE
        AttrValueList(0) = NC_BAUD_500K
        AttrIdList(1) = NC_ATTR_START_ON_OPEN
        AttrValueList(1) = NC_TRUE
        AttrIdList(2) = NC_ATTR_READ_Q_LEN
        AttrValueList(2) = 10
        AttrIdList(3) = NC_ATTR_WRITE_Q_LEN
        AttrValueList(3) = 10
        AttrIdList(4) = NC_ATTR_CAN_COMP_STD
        AttrValueList(4) = 0
        AttrIdList(5) = NC_ATTR_CAN_MASK_STD
        AttrValueList(5) = NC_CAN_MASK_STD_DONTCARE
        AttrIdList(6) = NC_ATTR_CAN_COMP_XTD
        AttrValueList(6) = 0
        AttrIdList(7) = NC_ATTR_CAN_MASK_XTD
        AttrValueList(7) = NC_CAN_MASK_XTD_DONTCARE
        AttrIdList(8) = NC_ATTR_LISTEN_ONLY
        AttrValueList(8) = 0
        AttrIdList(9) = NC_ATTR_HW_SERIES
        AttrValueList(9) = NC_HW_SERIES_847X_SYNC
        Status = ncConfig("CAN0", 10, AttrIdList(0), AttrValueList(0))
        If Status <> 0 Then 'NC_SUCCESS Then
            MsgBox "CANオープン前設定1エラー"
            nret = -1
        End If
        If nret = 0 Then
            '//ID100
            AttrIdList(0) = NC_ATTR_COMM_TYPE
            AttrValueList(0) = NC_CAN_COMM_TX_PERIODIC
            AttrIdList(1) = NC_ATTR_BKD_PERIOD
            AttrValueList(1) = 10
            AttrIdList(2) = NC_ATTR_CAN_DATA_LENGTH
            AttrValueList(2) = 8
            AttrIdList(3) = NC_ATTR_CAN_TX_RESPONSE
            AttrValueList(3) = NC_FALSE
            AttrIdList(4) = NC_ATTR_RX_CHANGES_ONLY
            AttrValueList(4) = NC_FALSE
            AttrIdList(5) = NC_ATTR_READ_Q_LEN
            AttrValueList(5) = 0
            AttrIdList(6) = NC_ATTR_WRITE_Q_LEN
            AttrValueList(6) = 10
            Status = ncConfig("CAN0:TD0x100", 7, AttrIdList(0), AttrValueList(0))  ← ここの箇所でエラーになります
            If Status <> 0 Then 'NC_SUCCESS Then
                MsgBox "CANオープン前設定2エラー"
                nret = -1
            End If
        End If
        If nret = 0 Then
            Status = ncOpenObject("CAN0:TD0x100", TxHandleW1)
            If Status <> 0 Then 'NC_SUCCESS Then
                MsgBox "CANオープン前設定3エラー"
                nret = -1
            End If
        End If
    End Sub

    N.Mo さん
     このエラーはハードウェアが対応していない旨のエラーですね。
     USB-8473(s)使用時のエラー-1074388723に関して
     エラー番号がLabVIEWと違いますが、ダイアログに出ているHEX値が同一であるのと、
    行いたい内容が一致しているので、結論としてはハードウェアが対応していない、ということになります。
     USB-847xシリーズで使用できるAPIは以下のリンク先に記してあります。
     Which NI-CAN Frame API Functions does the NI USB-847x Device Support?
     ハードウェアの機能が使用できないとなると、後はソフトウェアのタイミングで制御することに
    なります。(もしくは外部のカウンタボードからトリガを受けて同期させて。。。少々面倒になりますね。)
     ご検討ください。

  • CAN 8473 Not working with Test Panel in Max

    Hello all.  I am working with a USB-8473s CAN unit.  I have it connected to the bus and can see the can traffic through the bus monitor. So everything is working properly there.  I am trying to send a certain message so I set up a message and channel in MAX but when I go to the test panel I get an error saying that the "Test Panel cannot run since no CAN ports are available. Make sure you have at least one NI CAN card inserted into your computer".  What is going on? I thought that the USB can unit was the CAN card?  I'm on Win XP.

    You're not going to like the answer.  The 8473 only supports the frame API and not the channel API.  No messages in MAX.
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/203​384  >> specification tab >> API Support
    I ran into this same problem.
    You'll either have to use the frame API or purchase a different unit that supports the Channel API.
    Robert C. Mortensen
    Certified LabVIEW Architect
    Certified LabVIEW Embedded Systems Developer
    Endigit

  • 847x USB-CANにおけるFrame APIのサポート内容

     USB CANインターフェース USB-8473 と Frame API for C を使用してプログラミングしていますが、まだ対向デバイスがないので実地にいろいろと確認できない状況です。
    http://digital.ni.com/public.nsf/allkb/E1A44077DA6C819186257288006B76D7
    上記ページに847xでのFrame API 制約等の記述がありますが、関数名等が NI-CAN Hardware and Software Manual Capter11 と一致しておりません。少し内容が古いのかとも思われますが、現行2.5に一致するものをご紹介いただけたらと思います。
    基本的には、ネットワークオブジェクトのサポートだけで、CANオブジェクトはサポートしていないと理解しておりますが、細部に関して自信が持てずにおります。
    1)
    ncConfig() で指定可能なパラメータがボーレートとStartAtOpenの二者のみとのことですが、例えば NCATTR_WRITE_Q_LEN は、なにかデフォルト値が適用されるということでしょうか?
    ncWriteMultはタイプスタンプ以外使用可能と思いますが。
    2)
    ncCreateNotification() は制約無しでしょうか?
    3)
    ncWaitForState() は、現在でもncRead/WriteMult() をサポートしていないのでしょうか?
    以上、USB-CANに関する質問です。

    平素よりNI製品をご利用頂きまして誠に有難うございます。
    日本ナショナルインスツルメンツ技術部の宮本と申します。
    お問い合わせの件に関しまして以下の通り回答いたします。
    ご投稿いただいたリンク先の関数名がNI-CAN Hardware and Software Manualと一致していないのは、これらの関数名がLabVIEWで使用されている関数名になる為です。Frame API for Cをご使用いただいておりますので、大変お手数ですがマニュアルのIndex(I-Nの項目)をご参照いただき、どのC関数がどのLabVIEW関数と同様の働きをしているかご確認いただく必要がございます。例えば、CのncCloseObjectは、LabVIEWのncCloseに相当します。また、CのncOpenObjectは、LabVIEWのncOpenに相当します。
    1)ncConfig関数での設定なのですが、以下ディレクトリのサンプルプログラムをご参照いただければ設定をご理解いただけると考えております。
    C:\Program Files\National Instruments\NI-CAN\MS Visual C\Frame API examples\CAN Receive
    2)ncCreateNotification関数は、上記リンク先、またマニュアル(11-39)にてサポートされている関数として記載されておりません。
    3)上記リンク先にありますように、ncWaitForState関数は、Read MultipleとWrite Multipleをサポートしていないと認識しております。
    上記内容をご確認頂き、ご不明な点がございましたらご返信くださいますようお願いいたします。
    よろしくお願い致します。

  • Problem while communicating with ECU through NI USB CAN

    Hello sir,
    I want to communicate with ECU through NI USB CAN interface while i tried to communicate with ECU it gives timeout error. here i am using CCP version 1.0, ECU toolkit 2.1.4 and NI CAN 2.7.2 .if you have any problem that communicates with ECU using CCP version 1.0 Please attach it.
    Thanks and Regards,
    Madhan

    So for the fifth time you start a new thread about the same problem!
    If you don't get any response to your threads, it could be because you are not giving a lot information about your problem.You could start with giving the vi you have problem with, so that we can see what you are doing.
    You also need to give any error code and a description on that you have done, in details!
    You also had one response in one of the other threads, it is polite to make an answer when someone is replying to you.
    [email protected] wrote:
    Hello sir,
    I want to communicate with ECU through NI USB CAN interface while i tried to communicate with ECU it gives timeout error. here i am using CCP version 1.0, ECU toolkit 2.1.4 and NI CAN 2.7.2 .if you have any problem that communicates with ECU using CCP version 1.0 Please attach it.
    Thanks and Regards,
    Madhan
    That makes no sense, where have you copied that from ?

  • After updating iPhone to 7.0.2 Personal Hotspot USB can't connect, whats the fix?

    After updating iPhone to 7.0.2 Personal Hotspot USB can't connect, whats the fix?

    Try this iMessage workaround
    Look for a fix by Apple by the end of the week.....

  • USB CAN device

    We have a customer that is requiring a 2 port USB CAN device. Since NI does not make one, can anybody make a recommendation for one that plays nice with LabVIEW.
    Thanks
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

    The company we decided to go with is Kvaser.
    They have a USB device with some nice features that the customer thought might be useful. The we picked has a SD/MMC memory card slot, so it can act as a stand alone CAN logger or a regular CAN device.
    http://www.kvaser.com/prod/hardware/memorator.htm
    They also provide LabVIEW and DIAdem drivers, so at least we won't have to start from scratch.
    I'll post an update after we get one and see how it works.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.

  • NI USB CAN

    Hello All,
    I am using NI USB CAN card with LabVIEW 2009. My question is
    Which functions do i need to use while doing the coding i.e. CAN functions or USB functions available with LabVIEW?
    I have a LabVIEW application that works with the NI PCI-GPIB card. Can i use the same application with NI USB-GPIB card as well or do i need to do some changes in the code? If yes then what will be the changes?
    Please reply.
    / J

    Hello All,
    I am using NI USB CAN card with LabVIEW 2009. My question is
    Which functions do i need to use while doing the coding i.e. CAN functions or USB functions available with LabVIEW?
    I have a LabVIEW application that works with the NI PCI-GPIB card. Can i use the same application with NI USB-GPIB card as well or do i need to do some changes in the code? If yes then what will be the changes?
    Please reply.
    / J

  • CAN 8473 CCP DAQ Rate

    I'm using the NI-CAN USB 8473 to monitor an engine ECU.  I'm trying to set the sample rate for the measurement DAQ list.  The mc daq init.vi has an input labelled sample rate, but this is not exactly what I need.  It specifies how often the .vi returns data.  It does not seem to control how often the ECU transmits data on the datalink.  Is there a way to set the ECU's broadcast rate?  I need to slow it down to reduce the datalink's busload.  I tried using the vi's sample rate with various settings between 0 and 1000.  Nothing I did had any effect on the busload. 

    the Samplerate relates to the rate the CCP measurement data are "resampled" when they have been received to compare them e.g. with sampled DAQ data.
    As you are looking to reduce the rate the data are transmitted there are typicaly 2 ways, but those need to be supported by the ECU.
    1) check if there is another eventchannel available, which transmits the CCP data not as often
    SampleRate specifies the timing to use for the samples of the (NI-CAN) task. The sample rate is specified in Hertz (samples per second). A sample rate of zero means to sample immediately. For a DAQMode of mcDAQModeDAQList, SampleRate of zero means that  MC DAQ Read.vi returns a single sample from the most recent messages received, and  greater than zero means that MC DAQ Read.vi returns samples timed at the specified rate. For DAQMode of mcDAQModePolling, SampleRate is ignored.
    2) check if the prescalar is support by the ECU which relates to a specific Event Channel. To allow a reduction of the desired
    transmission rate, a prescaler may be applied to the event channel. The prescaler value factor must be greater than or equal to 1 and can be set using
    MC Set Property.vi using the DAQ Prescaler property.

  • Run CAN 8473 on with full bus

    Using Borland C++ and a CAN USB-8473, I'm trying to watch a full CAN bus and put the data into an STL map.
    The CAN/PC can't keep up.  I have the 8473 configured as a Frame
    I have observed that the Config option NC_ATTR_READ_Q_LEN does not appear to work.  I have set the value to 1000000, which is about 3X more then the amount of data that I sent, but I still get buffer overflows.  I get buffer overflows after about 10000 messages, which should be 100X before I run out of buffer.

    I get the following response ncRead::NI-CAN: (Hex 0xBFF62125 NI-CAN copies received CAN frames from the card to a large kernel-level queue.  There is one queue for each interface (port).  If your application does not read fast enough to empty this queue over time, the newest frames are lost.  Solutions:  Call Read more frequently (such as by reducing user-interface code).  ...
    Is there a hard set size for the queue?  I've been using read (not mult).  

Maybe you are looking for

  • To populate values into single field in an internal table

    Hi Friends, How we need to populate values into single field in an internal table. E.g itab consits of single field ( name)        i need to assign values to this field name .like       peter,       john,       abrahm,       daneyal Pls tell me i how

  • Sub form in adobe forms

    hi all.            in adobe forms i want to display a subform. which should appear only three time in a page. if it exids three it automatically goes to the next page. help me how to write a conditional page braek..

  • Adding Formulas to Substitution Variables

    Hi All, I am using EPM system 11. I have a classic planning application . On my dataform , I have Year in the Point Of View and Period on Column. I need to show Current Year,Next Year and Current Month (derived from system date) on the form. For achi

  • Want to set view of JScrollPane to last line

    I'm creating a chat program and adding new messages to the end of JEditorPane. I want the view to always show the last message like in MSN and other chat systems. User enters text in JTextField, is formatted and appended to JeditorPane. Can anyone te

  • Siri on iOS 6

    Before i update to iOS6, my siri was switched off. After i updated to iOS 6, i couldn't activate Siri (to test the new features) and the option to turn it on in setting is no longer there, anyone else having same problem?