Use both CAN APIs

Hi,
I am developing an application that talks to a microcontroller.  I would like to use the Frame API for setup where I can send commands and get responses, and would like to use the Channel API for a mode where I am simply monitoring messages that I receive from the micro.
I have a state machine where I begin by opening the Frame API, have some different states that i go into which utilize the query/response aspect of the frame API and then a state which closes the Frame API and opens the Channel API.  The problem that I am having occurs when I have already closed the Frame API and started a read task with the channel API.  When I click the stop monitoring button, I exit the While loop which was reading a message defined in the Can DB (havn't actually had it read data yet) and execute the Channel APIs CAN Clear.VI i get the following error.
Error - 1074388720 occured at CAN Initialize.vi
Possible reasons:
NI-CAN (Hex 0xBFF62110) You cannot use the Frame API and Channel API simultaneously on the same interface (such as CAN0).   tools in MAX use the Channel API.  Soultuon: Use a different interface with each API.
I need a way to work around this and am not sure why the Frame API isn't seeming to be closed, especially since I have a state in my state machine to close the Frame API before I begin using the Channel API.
If anyone has any suggestions please let me know.
Thanks,
Gary
Solved!
Go to Solution.

sorry i will attach it all again so it can be run.  Use this VI.  it has a tab control.  when the program starts, the frame api is running and then you click stop and switch the tab to see the channel api running.  when you click the stop button on the channel api you should see the error.
the error has been occurring every time, but when i just ran it, it didnt give that error.  I still think the problem exists and I see the problem in my real app that basically does the same thing.
Attachments:
Test for both APIs.zip ‏44 KB

Similar Messages

  • Pull large amounts of data using odata, client API and so takes a long time in project server 2013

    We are trying to pull large amounts of data in project server 2013 using both client API and odata calls, but it seem to take a long time. How is this done
    In project server 2010 we did this creating SQL views in both the reporting database and for list creating a view in the content database. Our IT dept is saying we can't do this anymore. How does a view in Project database or content database create issues?
    As long as we don't add a field in the table. So how's one to do this with creating a view?

    Hello,
    If you are using Project Server 2013 on premise I would recommend using T-SQL against the dbo. schema in the Project Web Database for your reports, this will be far quicker that the APIs. You can create custom objects in the dbo. schema, see the link below:
    https://msdn.microsoft.com/en-us/library/office/ee767687.aspx#pj15_Architecture_DAL
    It is not supported to query the SharePoint content database directly with T-SQL or add any custom objects to the content database.
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS |
    MVP | Downloads

  • Can we use Essbase JAVA API in Hyperrion Planning

    Hi,
    I want to load data and extract data from Hyperion Planning applications. can i use Essbase Java APIs to do this Or is there any separate set of APIs available for Planning Applications ?
    Thanks a lot,
    Prince

    Hi John,
    I have following doubts regarding loading data to Hyperion planning by a custom connector
    1) Loading data to Hyperion Planning application using Essbase Java API would be possible at application layer (Hyperion Planning) or at database layer (loading data directly to essbase database) ?
    2) If we load data directly to essbase database how are we going to recognize which essbase server is connected with Hyperion Planning application ? Does user require to know in advance the underlying databse server ? Is there any API in Essbase or in Planning to connect to Planning application ?
    3) If we load data directly to essbase database how to find out Planning applications and essbase application ? In other words how to differentiate between essbase applications and Hyperion Planning appllications ? Or How to recognize Planning applications ? Is there any API in Essbase to find out this ?
    4) If we read data directly from Essbase how do we recognize data from a Planning application ?
    5) What is the difference between Classic planning application and EPMA planning application ? Can we develop a connector to work with both these flavour or type ?
    Please suggest.
    Thanks,
    Prince

  • How do I set upmy Imac to allow using both my computer speakers and a Bose SoundLink system as outputs at the same time.  I can use one or the other, but not both.

    how do I set up my Imac to allow using both my computer speakers and a Bose SoundLink system as outputs at the same time.  I can use one or the other, but not both.  From systems Preferences I must select one or the other.  I want both to work all the time.

    Hi,
    I would recommend you to use 0FI_AP_4 rather using both, particularly for many reasons -
    1. DS: 0FI_AP_4  replaces DataSource 0FI_AP_3 and still uses the same extraction structure. For more details refer to the OSS note 410797.
    2. You can run the 0FI_AP_4 independent of any other FI datasources like 0FI_AR_4 and 0FI_GL_4 or even 0FI_GL_14. For more details refer to the OSS note: 551044.
    3. Map the 0FI_AP_4 to DSO: 0FIAP_O03 (or create a Z one as per your requirement).
    4. Load the same to a InfoCube (0FIAP_C03).
    Hope this helps.
    Thanks.
    Nazeer

  • Ive lost my apple ID for my ipod, now i have an iphone and i want to use the same apple ID for both can someone tell me how to do this

    I have lost my apple ID for my ipod, now ive got a new iphone and i want to use the same ID for both, can anyone one tell me how to do this? ( i no my ID for the iphone)

    Just use the same ID.
    These may alos help:
    How to use multiple iPods, iPads, or iPhones with one computer
    What is the best way to manage multiple...: Apple Support Communities

  • Can I use both newly cloned MBPR retina and old-MBP with same Time Machine

    When my new-MBPR retina cloned from the old-MBP back up in Time Machine via migration assistance, will this newly-cloned MBPR continue thereon backing up with the same old-MBP back up in Time Machine? I.e. continuing same timeline?
    And what happen to my old-MBP back up, if I continuing to use my old-MBP with the same Time Machine on? Will TM recognised 2 different MBP and thus creating 2 back ups? I seem to have problem to keep 2 MBP running with same TM. Programs not responding even force quitting them!
    And what should I do to use both? Appreciate your help. Thank you.

    OK, but in general I can use this one device as both file storage and Time Machine.
    I thought that (for some reason) once I set up the Time Capsule to act just as Time Machine storage I would be unable to access it as a plain file storage.
    I have just tested it now, and it seems it can work as both - file storage and Time Machine. I can see the Time Machine backup file on it and folders where I can dump regular files.
    The only thing I would need to occasionally do is delete some old backups to keep Time Machine segment below 1 TB just so I have plenty of space for regular files.
    This thing is awesome. :)

  • How can I split the video port of an older Mac Mini so I can use both the 922-6199 DVI to RCA, S-Video Adapter and a Cinema Display?

    How can I split the video port of an older Mac Mini so I can use both the 922-6199 DVI to RCA, S-Video Adapter and a Cinema Display?

    Which exact Mini?
    At the Apple Icon at top left>About this Mac.
    Then click on More Info>Hardware and report this upto but not including the Serial#...
    Hardware Overview:
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 6 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version (system): 1.21f4

  • Can I use both Wifi and a Lan connection at the same time?

    With me back in the dorms I have been limited to a slower connection than what I would like. Now we are able to use both Wifi and a Lan line so I was wondering to somewhat "double" my speed if there was any way to use both connections at the same time.
    Now I know that you can have both plugged in at the same time, I guess what I'm asking is, is there a way that I could set programs to use one or the other? Or some kind of virtual desktop that is set to use the other connection or anything that would allow both be used at the same time.
    Or am I just wishing for something that doesn't have any possible way to work?
    -nathan
    MacBook pro 2.16 C2D 2gb ram   Mac OS X (10.4.8)  

    You can use both at the same time, but not gor Internet access if that's what you're asking.
    Now there is a thing called Link Aggregation, which combines a number of interfaces for speed/redundancy, but it really only works locally, and then only with ALL special equipment in the route, and most likely OSX Server involved.
    Sorry.

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • I have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    i have two users with different music on each itunes and i can only use one library, how do i use both for one iTouch?

    Chris, I believe this link may have the information you're looking for. Welcome to discussions!
    http://docs.info.apple.com/article.html?artnum=300432

  • HT204053 I have different iCloud IDs for my iPhone &Mac and I have 5GB on each, if I decide to use only 1 ID for both, can I have 10GB or will I be limited to 5 since it's 1 iCloud ID.

    I have different iCloud IDs for my iPhone &Mac and I have 5GB on each, if I decide to use only 1 ID for both, can I have 10GB or will I be limited to 5 since it's 1 iCloud ID. I am afraid that if I I use only 1 iCloud ID for both of them I will be limited to only 5GB which is small a nd I don't have money to be paying annually for extra GB. Thanks and waiting for your replies.

    The free 5GB allowance is per account, not per device.
    If you back up to iTunes, 5 GB should be more than enough for the average user.

  • I have a personal itunes account with an iPhone5s and an iPad 4 mini. I have unlokced my old iPhone 4 to use for work on a diffeent SIM and new number, can i have all devices associated to me single appleID and use both numbers ?

    I have a personal itunes account with an iPhone5s (perosnal mobile numer) and an iPad 4 mini (no SIMM). I have unlocked my old iPhone 4 to use for work on a different SIM and new number,
    Do you know if I can have all devices associated to my single apple ID and still use both numbers without messing up my profile. It has just changed my number over.

    I would not be able to give you idiot proof guide, since different games are different. Some of them have icloud integrated already, but those already taken care of. Some of them use specific logins and once you log - you get your info. General recommendation is to contact support sites of those games for enabling icloud instructions or enabling of transfer. There are other purely apple ways - like sync your phone in itunes and then sync apps with ipad, but those are only one time transfer. There is another way that is not typically recommended - restoring ipad from iphone backup. It may transfer your game content, but once again sync in the future has to be done by game.
    So if I were you, I would address that individually with every game provider.

  • HT204053 I changed my apple id, but my ipad does not allow me to change it for Icloud, so I can't  edit my account so I can access Icloud. I was told at Apple store that I could use both Apple ids, but my old one is no longer recognized. Any suggestions?

    I changed my apple id, but my ipad does not allow me to change it for Icloud, so I can't  edit my account so I can access Icloud. I was told at Apple store that I could use both Apple ids, but my old one is no longer recognized on the appleid website, so my password for my old apple id won't work.
    Any suggestions?

    If you only changed the name of your ID rather than creating a new ID, just go to Settins>iCloud and tap Delete Account then sign back in with the new name.  (Deleting the account from your phone does not delete it from iCloud.  Your data will be synced back to your phone when you sign back in.)
    If you created a new ID, you'll have to go to Settings>iCloud on your phone and turn all data you are syncing with iCloud (contacts, calendars, etc.) to Off.  When prompted choose to keep the data on your iPhone.  (If you are syncing iWork documents with iCloud, also open your iWork apps and turn off iCloud syncing and choose to keep the documents on your phone.)  After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using your other ID, then turn syncing for your data (contacts, etc.) back to On.  When prompted, choose Merge.  This will upload the data to your new account.
    You won't lose any photos in your camera roll or photo library.  If you have any photos in your photo stream that are over 30 days old that are not in your camera roll or saved on your computer, be sure to save these to the camera roll before deleting the account.  To do so, open the photo stream album on your iPhone in the thumbnail view, tap Edit, tap all the photos you need to save to select them, tap Share, then tap Save to Camera Roll.

  • Can I use an iPad and a ipad2 with the same iTunes in my computer? I want to use both

    Can I use an iPad and a ipad2 with the same iTunes in my computer? I want to use both. Want to give one to wife.do I need to open a new iTunes account for her?

    bashepard wrote:
    Can I use an iPad and a ipad2 with the same iTunes in my computer? I want to use both.
    Yes, No problem at all.
    Want to give one to wife.do I need to open a new iTunes account for her?
    No - you can share the same iTunes account (my wife and I share the same account). But when you sync the iPads, just remember to select the correct content for her iPad and the correct content for your iPad.

  • I have a Ipod Nano and want to get another one , and use both. Can I use the same computer and library for both?

    I have a Ipod Nano and want to get another one , and use both. Can I use the same computer and library for both?

    Yes

Maybe you are looking for

  • Can anyone help? iMovie wont open

    I just started iMovie (9.0.9) havent used in a while, It keeps not responding> so i have tried opening as guest user and it still says not responding. also tried removing 'new folder' from events. why does this suddenly start playing up when i havent

  • Add an apple keyboard to apple tv

    I need help to pair an Apple keyboard and Apple TV.  The keyboard is currently paired to a Mac mini.

  • How to disable "corrections" as I type in Mail (and/or everywhere)

    Dear all, Most features that are commonly considered "handy" I find extremely annoying. At the top of the list is automatic correction of the text I type, most notably automatic capitalisation. I tend to use abbreviations, e.g. like this. It's extrem

  • Merge PDF document at report time

    Through XMLP - Is there a way i could merge content of a static PDF document into the current report output (report output is a pdf). or merge 2 pdf documents into 1. Subhash

  • User Task only in default Domain?

    Hello, I have a problem with the user task. Can one call a user task only on the default domain? I have provided a new domain where the BPEL processes are deployed. I do not use the default domain. I have a BPEL process which contain a user task. Fir