CAN frame API with two buses

Hi,
I'm using a PXI 8461 to control 2 CAN-bus lines.
When I start the bus monitor in MAX, both work correctly (frames are coming in).
But I wasted a day now to try to make both lines work in my app.
I'm calling ncConfigCANNet.vi and ncOpen first with CAN0, then with CAN1.  ncOpen with CAN0 gives me an objHandle, but when I cann ncOpen with CAN1 after that, I get objHandle=0 but no error!
(I not using error inputs)
So in my app CAN0 is running, CAN1 will eventually return an error when I try to read from it using the objHandle (with is 0).
I even tried to use the NI-example "Multiple CAN Cards Frame API Single DAQmx Card Input.vi" with the same effect.
Is there a known issue about that?
I'm using
NI-CAN  2.7.2f2
LV 8.5.1
PXI8461 with CAN0 and CAN1 working with the MAX busmonitor
100g Ritter Sport Chocolate per hour
-DB
Solved!
Go to Solution.

If you look at this vi from the NI-examples:
Multiple CAN Cards Frame API Single DAQmx Card Input.vi
this is what I'm doing. As I said, this example is behaving the same way as my program. CAN0 responds, CAN1 doesn't.
MAX is closed. And even if there was some other program allocating CAN1 there should be an error. But ncOpen runs without error and still returns null. Just like calling it with an error on the "Error In" terminal... but I have no error there.
I even tried the low-level / depreciated ncReset.vi. No luck.
One more thing I don't understand is why ncOpen.vi is reentrant and  all the other VIs from the nican.llb are not. In the end they are all calling nican.dll.
Any ideas?
-DB

Similar Messages

  • NI-CAN Frame API: Variable Periodic CAN Object

    Hi,
    I am developing an application that send CAN messages with NI-CAN Frame API.
    Some of my messages have specification of variable periodic where
    - On idle, NI-CAN will periodically send the message at 100ms period of last message
    - On a user input, it will send at period of 10ms for short period (200ms) and back to idle.
    In CAN Object Configuration, as I put period to 100ms, The idle data is correct but when I need to send the user input, the data is sent using the period of 100ms as well. If I put period to 10ms, even during idle data, the message are sent every 10ms.
    If I configure the CAN Object's communication type to transmit data by call, the data is only sent once and not periodic.
    Does the NI-CAN Frame API supports variable periodic CAN Object?
    Is there suggested way to have such a message?
    - Meadow -
    LabVIEW 7.0 - 2011, Vision, RT, FPGA
    TestStand 3.0 - 4.5

    Hello,
    In general, a clear function will flush all data associated to a task. Have you tried using nctClear()? Although this is a legacy driver so that may not be the case…I found this article that explains how to reset the device (same functions are available in the C API, see manual) which can help but according to this thread is not a 100% effective due to its limitations. Nevertheless, is better than nothing.
    I hope this helps
    Alejandro | Academic Program Engineer | National Instruments

  • Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    It is not possible to do that.
    Allan

  • I got a new computer and now iTunes is telling me it can't sync with two computers

    I got a new computer and now iTunes is telling me it can't sync with two computers, it's telling me it will erase what's on my iPad and re-sync. Will I lose my iPad data that's on it?

    No - not at all. Look at that one app that I gave you the link for. That is supposed to transfer all of the iPad content to the new computer. I have no idea how much it costs, but it's worth a look. There are other out there as well. Google "apps to transfer iPad content to computer" or something to that effect. These apps claim to transfer everything.
    Several things to remember - you can still transfer all of the iTunesicon tent that you purchased by using the Transfer Purchases option in iTunes. Just remember to turn off auto syncing before you do it. You will also have to authorize your new computer to transfer the purchase if you haven't done so already. From the iTunes menu on your computer go to Store> Authorize this computer.
    Plus any apps or music that you have bought can be downloaded again at no charge with the cloud feature in the latest iPad iOS.
    EDIT - I see that you did transfer the purchases. Look at one of those apps that I described and they should be able to get you set up. You should also invest in an external hardrive for backing up all of your computer content ... don't want this to happen again!
    Message was edited by: Demo

  • "Baud Rate" AttrId not found for CAN frame API's ncGetAttr and ncSetAttr

    Hi,
    Well, everything is in the Subject : "Baud Rate" AttrId not found for CAN frame API's ncGetAttr and ncSetAttr
    Although it is listed in the LabVIEW Documentation,  it is not in the enum's items gotten from `right click` -> `create` -> `contsant` on their `AttrId` connector.
    My actuall need would be for checking a formerly opened CANNet handle compatibility against hardware  requirement, so ... ncGetAttr.vi
    Anyway, if somebody knows the actual u32 to hardwire instead of the enum constant, or did I get something wrong ?
    Thanks

    Hello,
    You are quite right about the ncGetAttr.vi however the ncSetAttr does have a Baud Rate item if you scroll further down.
    To get the Baud Rate wire a x80000007 to the AttrId pin. Or you can double click on the the ncSetAttr and then go into its block diagram, now
    in the case structure select case 27 copy the numeric constant (which should be x80000007) and use it as the input to the ncGetAttr
    Let us know if this helps.
    Christian A
    National Instruments
    Applications Engineer

  • Demantra - can it run with two Data Models in parallel?

    Hello,
    we face the following situation: we have items that have to planned on a daily basis; many other items, however, only need weekly planning.
    Demantra only allows one base time unit in its data model. If we choose "daily" for all products, the system size will increase enormously.
    If we choose "weekly" for all products, we can not plan our daily products for specific days in the week.
    The idea is now to set up a Demantra System with two data models in parallel. Is this possible? Would they reside in different databases or database users?
    The Business Modeller allows to create new models, but can they run in parallel? If they can, how would the user access the different data models?
    Thanks for any hints on this! 

    Can you please elaborate on this issue?
    Thanks

  • I can't comunicate with two fieldpoint chains from one pc

    I have two separate labview programs which use different serial ports (com8 & com9) to communicate with two separate sets of fieldpoint hardware. Each works fine on it's own. When I run both from the same PC, the second to start always receives a 'Can't bind to com port' error from the FP create tag.vi. Both programs are using different .iak files which only reference their own com port.

    The FieldPoint Server, which is launched wheen you run the FP Open.vi can only have on instance running in memory. You can not have multiple servers running simultaneously, which is what your programs are attempting to do. Merge both IAK's into a single IAK that each program will access. Each Comm Resource (one for Com8 and one for Com 9) should be given a unique name.
    Regards,
    Aaron

  • Wether can invoice have with two different VAT rates, 16%

    Dear SDN team,
    I have a requirement like a invoice should have two different VAT rates.
    Situation is below:
    A rebate agreement is created and it was settled partially and final settlement is also carried out.
    Rebate agreement nº  XXXXXXXX, with a validity period between the 01.05.2010 until 31.07.2010. This rebate agreement created the credit memo XXXXXXXXX with the VAT rate of 18%.
    Mean time the VAT rate was changed from 1st July from 16% to 18%.
    There are invoice created in the first half and others belonging to the second half.  Invoice created during the First Half it was created the VAT value with 16% (Before July)and the Invoice created with the Second Half it was created with 18% (After July1st).
    But customer request is to have an invoice with two different VAT rates, 16% and 18%. However, the invoice only takes into account the 18%.
    And i have suggested the below resolution - But user still needs to have two different VAT rates in one invoice for the line item this is for the have a legal precept which force me to have a different VAT rates depending on the original invoice date
    Please let me advice how to resolve this issue.
    Looking forward for your favorable reply.
    Thanks and Regards,
    Jana
    Suggested Solution:
    But having two different VAT rates in one single invoice or credit note is not possible at all.
    Further if you would liked to have different VAT rates for the two separate ivoices - This can be done by doing the Rebate agreement with partial settlement for the First half that is before 30.06.2010 and final settlement after 01.07.2010. By doing this rebate agreement will have two different invoices created with two different VAT rates.  But now this is not possible for the RA where it is done with final settlement.
    So, You can not have two different VAT rate in one single invoice.

    Dear,
    In order to solve this issue with wrong VAt rates I propose you to proceed as follow:
    1) Cancel the CN (Credit Note)
    2) In the CMR (Credit Memo Request) set the tax classification of the materials with wrong VAT % to 0 (inside the CMR in item-billing document).
    3) Maintain for the access sequence of MWST a higher access than the normal one for tax classification 0 with the old tax percentage (E.g.: 16% in your case)
    4) Determine a new pricing for the CMR (via menu path: Edit > New pricing document)
    At this stage your items will have some 18% and some 16% of VAT. When you create the CN those percentages will be kept.
    If you are satisfied with the result it is now a matter of making sure the program that prints your invoice is mentioning the different VAT rates of the items. As you didn't specify anything about this point, I seize the opportunity to advice you about. No matter of the type of print program you are using (SAP script, PDF or Smartforms), you need TO BE SURE that when the CN is created (with two different types of VAT %) also your PRINTOUT is properly created mentioning the two different rates and relative values.
    If not printed correctly because you did not foresee to have different percentages it is easy to solve it with a programmer.
    In case of questions or doubts do not hesitate to post back your answer.
    Regards,

  • Can I communicate with two different FP 1000 modules through one labview program at the same time

    I am wondering could you communicate with two seperate FP 1000 modules with one labview program, using a tab control, with page 1 of the tab communicating with one FP 1000 through com port 1 and page 2 of the tab control communicating with another FP 1000 module through com port 4, using different iak files for both. Can I do it through using those wireless modems supplied by National Instruments. Sorry I dont have a name for them.

    Noely,
    Within a single IAK file, you can have multiple FieldPoint modules on separate COM ports. There is no need to use separate IAKs for the program you are describing. Actually, older versions of NI-FieldPoint do not support having multiple IAKs in use simultaneously (I am not sure whether it is currently supported).
    As for the Radio Modems, they are called SRM-6000s and can be used simultaneouslyon different serial ports. Although, using the SRM-6000 in a single master multi slave arrangement, you could use a single serial port to talk to both FP-1000s (3 SRMs total). You will need to configure the FP-1000s to have separate addresses (DIP Switch setting).
    Regards,
    Aaron

  • 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).  

  • 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をサポートしていないと認識しております。
    上記内容をご確認頂き、ご不明な点がございましたらご返信くださいますようお願いいたします。
    よろしくお願い致します。

  • Can CUBE register with two CUCM clusters?

    We have two CUCM clusters - one is in US and one is in Australia. Currently CUBE is registered with US Cluster with the settings below -
    sccp local GigabitEthernet0/0
    sccp ccm 10.10.1.21 identifier 2 priority 2 version 7.0
    sccp ccm 10.10.1.20 identifier 1 priority 1 version 7.0
    sccp
    Now we need CUBE to communicate with Australia CUCM. Should we set sccp up for Australia CUCM cluster (version 6.0)?
    Thanks,
    Jessica Wang

    I think you are refering to registering media termination points / transcoders on the same router to two different CUCM clusters, correct?
    If yes, we can do it by creating separate sccp ccm groups.
    Example :
    sccp ccm identifier 1 version 7.0
    sccp ccm identifier 2 version 7.0
    sccp ccm identifier 3 version 7.0
    sccp ccm identifier 4 version 7.0
    sccp ccm group 1
    associate ccm 1 priority 1
    associate ccm 2 priority 2
    associate profile 1 register Transcoder1
    sccp ccm group 2
    associate ccm 3 priority 1
    associate ccm 4 priority 2
    associate profile 2 register Transcoder2
    dspfarm profile 1 transcode 
    codec g729r8
    codec g711ulaw
    codec g711alaw
    codec g729ar8
    codec g729abr8
    maximum sessions 5
    associate application SCCP
    dspfarm profile 2 transcode 
    codec g729r8
    codec g711ulaw
    codec g711alaw
    codec g729ar8
    codec g729abr8
    maximum sessions 5
    associate application SCCP
    Arun

  • Can aT30 run with two monitors , each monitor running a different application

    Hello,
    I have aT30 (model 2366 n6g) connected to a docking station. 
    the graphics system is ATI mobility radeon 7500  16mb ddr 4x AGP
    On the back of the docking station  there is of a VGA and a DVI  connection;
    When I connect two monitors to the docking, it displays the same screen. The laptop is not recognizing the second screen, so I can extend it in order to receive two different screens.  Can anyone advise?

    download the Omega Catalyst ATI driver, it should allow you to control the display setting a bit better. You should able to use the software to control the extended display property. 
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • How can I work with two images at the same time?

    I have downloaded Photoshop Elements 10 and I can not find the buttons for Minimize or Reset for the image. If I rightclick the miniature those options are grey. If I open two images so I have two miniatures in the holder and then go to Windows and Images the option Show Overlapping is grey but I can show Side by side. Then I can only shut down the images.
    Thanks for help
    Bibbi

      Open the Editor and on the menu bar click:
    Edit à Preferences à General
    Check the box “Allow Floating documents in Full Edit Mode” and click OK.
     

  • How can I work with two o more webcams in a java aplication ????

    Hi Everyone, I have an aplication that capture a frame from a webcam but I just wanna work with 2 o more webcam in the same code. In the JMF registry detect only one. I don't know what to do to solve the problem. Who know some tip about conect 2 webcams with JMF, please help me...!!!!!

    I suspect most slowdowns occur because of complex audio, not the size of the project. It sometimes helps to export the audio to an AIFF file, then re-import that file back into the project and place it in its own audio track. When you disable the audio of the other tracks, playback is improved.
    That makes it harder to edit a half-finished project, however. It's a technique best reserved for almost-finished projects.
    You could export the timeline to the camera, then re-import it to a new project. That will both make the project smaller and "flatten" its audio and video. Most clips will return as the clips they are now.
    70 minutes of video is ordinarily about 15GB, so something has increased the size substantially. (That's not normally a problem you have to worry about; the size of the project itself is probably not the problem.)
    Karl

Maybe you are looking for

  • Failed attempt at printing .txt file

    I've searched high and low for a solution, but I have just had no luck getting any output. I have a function that reads a text file and sends the file to the printer.. however, it never reaches the printer, rather, it just sits and hangs in the print

  • Firefox can't find images that are there. ALL other browsers can!! Durrr - it just started happening on live an test websites to which there have been no changes

    Try www.avivastringquartet.co.uk You will not see pictures on the index.html page. Try it in Chrome,Opera, IE and all is fine Look at source and look for image by clicking on <img src="..."- says it can't find image. Also Firefox does not follow the

  • Budget error

    Dear All In our client place we procuring Material against network and WBS Element.When i am doing PO for network the system throws error when it exceeded the budget.But when i am Procurement material WBS Element (Reservation+PR for WBS Element) Proj

  • List Import Launching Problem

    Hi, When SADMIN launches import, all works fine; but when non SADMIN user tries to launch list import, the "+You cannot currently update this record. Please check the No Update properties on the Applet, Business Component, and Link.(SBL-DAT-00284)+"

  • HELP! Cannot make Flash run in IE7 Vista - worked before

    I have been working on this issue for 6-7 hrs and can't make it work, studied many forums inc this one and tried many diff. recommended solutions, but to no avail....so I am posting to plea for help to end my misery and frustration....here are the de