Use the two CAN API

Hello

I develop an application that communicates with a microcontroller.  I would like to use the API to frame for a setup where I can send commands and get the answers and want to use the API channel for a mode where I'm simply followed the messages I get from the microphone.

I have a state machine where I starts with the opening of the frame API, have some different States I'll in that use the appearance of the request/response of the API framework, then a State that closes to the API of frame and opens the Channel API.  The problem I encounter occurs when I already closed the frame API and began playing with the API channel work.  When I click the monitoring button stop, I leave the while loop, who read a message defined in the DB can (havn't had in fact he still read the data) and run the Clear.VI Channel API CAN I get the following error.

Error - 1074388720 CAN Initialize.vi

Possible reasons:

NI-CAN (Hex 0xBFF62110) you can use the frame API and Channel API simultaneously on the same interface (for example CAN0).   MAX tools use the channel API.  Soultuon: Use a different interface with each API.

I need a way to get around this and I'm not sure why the raster API is not pretending to be closed, especially since I was a State in my state machine to close the frame API before you start using the channel API.

If anyone has any suggestions please let me know.

Thank you

Gary

It is more a question LabVIEW but because its you, here's an example that lets you switch back and exit if you set the output check.

DirkW

Tags: NI Products

Similar Questions

  • When you use the NI-CAN Transmit sample receive the same Harbor; can a virtual CAN channel (RCA or 257) be used?

    I work for a company that produces and transforms electric parts. We strive to get in remission at nine of the ECU, experiences, Instrument clusters etc. I'm trying to learn how to use LabVIEW to write commands and read the data on the CAN bus. I have downloaded the NI-CAN driver. I am currently 'play' with the same reception Port.VI show in the basic frame of the finder example API folder OR. I am not able to send the number in the data to write the table that it be read by the ncReadNet Mult .vi. When I put the parameter to 'Pending entries reading' the ncGetAttr.vi returns a 0 to indicate that there are no frames to read. As a result, the Mult.vi ncReadNet does not run.

    I don't have any connected equipment, I use the virtual CAN channel CAN256. Is this the reason why I can't get data frames in my queue for the Mult.vi ncReadNet to read?

    When you use the NI-CAN Transmit sample receive the same Harbor; can a virtual CAN channel (RCA or 257) be used?

    CAN carry 256 and 257 are connected to eachother through software.  When you write about 256, you can read the data on 257 and vice versa.  I think the example you mention is a writing and reading on the same port, but what you want is to probably to make a copy of this VI, in order to run two at once, where it opens 256 and the other opens 257.  Then, when you write one that you will see on the other.  I think you might be able to use the test panel CAN too read an and use the example of the other.

  • How to use the two counters to PXI-6280, to read and write at the same time?

    Hi all

    I try to use PXI-6280 counter to generate a command of step motor pulse train.  The idea is to send a number done and known pulse for the engine, which belongs to a system XYZ. The point is, if, at some point, the user or the security system can interrupt the movement. If this happens (and will be... a lot), I will lose the real position, because I don't know how many pulses were actually sent to the engine. That is why I want to use the other cost to count impulses how were actually sent to the engine. I can start any tasks (generating or account), but only the first started task will operate. I met a couple of mistakes and I'm not able to find a solution.

    Is it really possible to use the two counters? I've already done this in a pci system and worked without problems.

    Thanks in advance,

    Giavonna

    Electrical engineer

    I'm afraid that I don't understand your idea. Could explain you better?

    Material of the series M support pointing to an arbitrary digital signals at rates (the clock must be provided from another source, for example a counter).  If you want a digital pulse train finished output and have access to a counter (the two counters if find you another source for your clock, for example the subsystem "output frequency"), you must use this subsystem 'digital output' rather than the output of the counter.  There should be examples in the finder of the example shows how to configure a finished task of digital output.

    Now I'm generating sample clock having a single Timed material Point (the only mode accepts this mode), and configure the counter with finite samples.

    I don't think not just single point NI the hardware, that's what you want.  More commonly, output meter tasks use timing 'Implied', where the release date is implicitly determined by the characteristics of the pulse user-defined.

    Is there a way to stop the production of only one meter when a finite number of pulses has been played in another counter?

    Yes, but it's a little tricky.  You can set a trigger 'Pause' on the output task, with the soruce the break being the internal release of the counter used for the task of entry.  Set the initial value of the counter of entry to 2 ^ 32-N (or maybe 2 ^ 32-1-N, I don't have a system right now to check) where N is the desired number of pulse output.  Together the counter event behavior for the counter edges of County switch output (this is a property of DAQmx export Signal).  When the counter of entry reaches terminal, its in-house production switches, causing thus the task of output to pause.  You can then stop the task in the software (you should be able to use the output of the task of entry counter event to signal to the software when the output is paused).

    Now that I've written that the whole paragraph, I remember something * similar * to work around a limitation of the driver here .  It is not quite the same implementation I described above, but really, you can use a meter output or a counter entry to get the same effect (it could be a good place to start anyway if you want to try this).

    Is there a way to read pulses them how have been generated, without the other counter, counting impulses?

    N °

    Best regards

  • Update Windows using the two direct connection to proxy nd

    Use the two nd direct net connection by proxy, more time via proxy, is there a way I can configure update without changing the settings?

    am on windows 7 Home premium

    Please correct me if wrong, using "netsh winhttp import proxy IE" it says you can update via proxy, passing 'autamatically detected settings' proxy servers, will be here all the problems and errors in its conclusion/search for updates (does not search for updates error codeWindowsUpdate_80072EE2""WindowsUpdate_dt000")?

    Asked me to do this update of proxy (windows security essentials)

    The open command prompt window. [In Vista and Windows 7 you need to open the prompt as Administrator]

    2. type of this syntax: NETSH WINHTTP PROXY DEFINED (Insert here the number and proxy server) and press ENTER.

    Example: NETSH WINHTTP SET PROXY 1.1.1.1:8080
                           OR: NETSH WINHTTP SET MYPROXY .NET PROXY: 8080

    If his point is it normal that windows update as well as the WSE update fails with direct connection?

    happened with me with error msg error codeWindowsUpdate_80072EE2""WindowsUpdate_dt000"

    If the details of my proxy are 192.168.0.1 port 3128, which is the entrance to the command line...

    I had to reset the connection parameters using winhttp reset to retrieve the update in direct connection to the network

    Please give me a good solution with this

    Help us help you: start by reading this post 'sticky '...

    What information to post in the Windows Update forum
    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/1467f44b-ee27-4F7D-98d7-f1c4b35b3395

    =======================

    You can encounter errors related to connect temporary [e.g. 0x80072EFF 0x80072EFE 0x80072EFD; 0x80072EEF; 0x80072ee20x80072EE7; 0xC80003FA 0X8024402F] when you use Windows Update or Microsoft Update to install updates
    http://support.Microsoft.com/kb/836941

    How to reset the Windows Update components?
    -Online skip the section to APPLY to if Win7; Access KB971058 via Internet Explorer (32-bit) only. Run the difficulty in DEFAULT and AGGRESSIVE modes, then restart [1]
    http://support.Microsoft.com/kb/971058

    ~~~~~~~~~~~~~~~~~~~~~~
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will remove your update history but not list the updates installed in Add/Remove Programs (Windows XP) or updates installed (Vista & Win7).

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How to create IT strategy using the BES administrator API

    Hi all

    Can tell me, how to create IT strategy using the BES administrator API.

    Please provide me with the code example.

    Thanks in advance.

    Kind regards

    Sampath

    Hi Sebastian,.

    The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.

    Kind regards

  • Using the two RAM slots

    I have 2 RAM slots. I have 1 GB installed on one of these locations.

    A few months before that I installed a 1 GB of RAM on another location (I gave my CPU to the shop actually to install) and it worked very well.

    I had some problems with my PC so I formatted the entire hard drive and reinstalled my Windows 8. But now, he uses only one slot.

    So please tell me that

    How can I use the two RAM slots?

    (Task Manager)

    (My computer properties)

    Unplug ALL power - then remove the memory - and then put back them in (this process
    is known as the relocation and will help if there is corrosion or other question contact). If it's been
    contributes not to remove both once again put the one who was in the second slot in the first location to
    see if it actually works. If this does not work, you have a bad memory module. If so, put the
    another return to the second slot. If it works the problem solved. Otherwise you may have a bad
    memory slot so trying combinations using other passers-by.

    How to reinstall a desktop memory Module
    http://pcsupport.about.com/od/fixtheproblem/SS/reseat_memory.htm

    Reinstalling your RAM, graphics card and hard drive
    http://www.YouTube.com/watch?v=DLxNPBQBfT8

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Applications that use the non-public API will be rejected

    Hi guys

    Just read the iOS guidelines before getting too deep into the manufacturing of the native version of a web application.

    I was wondering what:

    Applications that use the non-public API will be rejected

    We hear when to submit an application in AIR - does that mean that you can not use your own custom classes?

    See you soon

    If you mean custom AS3 classes, Yes, you can use those. What you can't do, is create a DONKEY who calls in the frames of the iOS itself.

  • I used up to the allocation for the region 1 & 2 DVD for help. stuck on region 1 now. I need to use the two regions for my DVD. Help, please. Beryl

    I used up to the allocation for the region 1 & 2 DVD for help. Stuck on region 1 now.  I need to use the two regions for my DVD. Help, please. Beryl.

    It isn't a MS solution, there are solutions to third parties not supported by MS

  • Why is it necessary to use the tag can be bound

    Hello, I am working with some simple data binding concepts.

    I defined a Combobox


    < mx:ComboBox id = "FirstCombobx".
    dataProvider = "{asArray1}" >
    < / mx:ComboBox >


    To provide data, I use a table

    public var asArray1:Array = ["state1', 'state2',"State3"];


    It works fine, I mean it shows data on the combobox control, now please tell me why it is necessary to use the tag can be linked with table.

    [Bindable]
    public var asArray1:Array = ["state1', 'state2',"State3"];

    Thanks in advance.

    Hello

    If you write a tag bindable and change this variable it will reflect automatically whenever you have assigned to this variable. Here is therefore the combobox will change each time you change the table not the inside of objects.

    I hope this helps.

    Rush me

  • How can I connect HDTV and LCD to PC using the two - as a dual monitor.

    I recently bought the PC HP Pavilion a6600f w1707 with HP. I also bought a DVI cable to HDMI to connect PC to Samsung HDTV. I can use the VGA cable to connect the monitor and cable DVI to HDMI to connect to HDTV, but log off for the other use. Is it possible to configure Windows Vista Home Premium to display on both screens at the same time, or at least be able to switch between the two without having to unplug one, then restart the computer?

    This can be annoying, but I've done it before.  Usually, you can connect at once, then go to the display panel, settings, advanced, and then there is usually a tab to select the components of the video card.  Mine says NVIDIA...  Once there, you can choose a number of options, for example, clone, extended desktop, etc..  I found that there is some problems with resolution when the display on my TV is over the current screen.

  • Using the two PB 2.0 + SDK &amp; BB10 Air SDK in Flash Builder 4.6

    Hello

    Any of you have experience creating applications using the PB2 + and BB10 Air SDK in Flash Builder? How do you change the build configuration between two SOFTWARE development kits? So let's say you make apps for Playbook and at the same time you are doing apps for BB10...

    Where do you set your IDE with these settings?

    Looking forward to your answers.

    There is essentially only one way to do it: you first install the 2.0 + SDK, then the BB10 Beta SDK. This is how you make sure that you have the data of these two software development kits installed on your pc. The Flash Builder plugin will be the BB10 sdk.

    I tested some of the components of the SDK BB10 on PlayBook OS 2.0.1. Needless to say that some features are not supported.
    Note: When I talk about libraries and 'ane's, I mean those provided by the SDK BB10. The following findings are valid with a pre-BB10 PlayBook OS 2.0.1 is the last one I think. PlayBook OS 2.1 can be considered BB10, although some features don't work there either.
    Here's what I found: you can use fuse controls, but the classes in the package "qnx.fuse.ui.dialog" do not work because the classes in the package "qnx.fuse.ui.window" do NOT work.
    You cannot use "QNXDevice.ane" because "NavControl" class which is indispensable to the actions of the bezel does not work and the notifications do not work either.
    If you use "fuse" components, you must also use 'QNXSkins.ane '.
    The "QNXLocale.ane" does not work. 'QNXNetwork.ane' no test however. The framework of the call does not work.

    Phew, that was some writing. If I missed something or you have any other questions, feel free to ask.

  • ADF mobile: how to download a file by using the adapter remains api

    Hello

    I want to download files using the adapter. How would download files like PDFs, images (png, jpg...) etc... Some code would be appreciated.

    Thank you

    Ok

    After days of headaches, there is a way to send files using the adapter and the code above for the side server. Even if it's a big fall in mobile ADF perspective they have no api for this.

    To download a txt file, you can simply copy and paste the text file into a string and have the string supplemented with appropriate limit values and padding values ('\r\n') before and after the string.

    To transfer a binary file, you must convert the file to a base64 string, then put it in the form mentioned above.

    then you can send it as follows:

    restAdapter.send (fileString);

    Don't forget to add the appropriate headers.

    content type

    and

    definitions of values to the limits

  • Using the Java Collections API in language PBL

    Hello
    You can use the collections api in a PBL language. Can someone provide an example of the same thing?

    Thank you.

    Hello

    Here is an example that you can make use of the api of Collections (Java).

    arrayList as ArrayList = ArrayList()

    Add arrayList using arg1 = "A".
    Add arrayList using arg1 = 'B '.
    Add arrayList using arg1 = 'C '.
    Add arrayList using arg1 = "D".
    Add arrayList using arg1 = 'E '.
    Collections.swap (arg1: arrayList, arg2: 0, arg3: 4)
    Collections.sort(Arg1: ArrayList)

    I hope this help you.

    Sidonie

  • Portege R700: Cannot use the two SVGA HDMI on the Port PA3838E-1PRP Port Replicator

    Dear all,

    I have a Portege R700 series (PT311E) and a high speed P/N PA3838E-1PRP port replicator.

    Today, I tried to connect two external monitors on the VGA port and the second HDMI port replicator port.
    Unfortunately, I was not able to configure the laptop / duplicator to * work with external monitors stand *.

    Do not work in this way portable stand and port replicator becomes useless.
    Although it is a default installation on other products manufactured without drivers and special parameters will be needed, I hope that in our case a key combination or a driver may resolve this problem.

    To be even more precise, I don't want to also use the laptop screen. I want to just connect laptop closed and turned off in the duplicator, to turn on the laptop the power button of the port replicator and to have the image on two external monitors.

    Thank you for your quick responses,

    Best regards

    Cristian

    Hello

    What R700-xxx you have exactly?

    How to connect two monitors? Are the two monitors connected only to the Port Replicator or is one of the monitor connected to the laptop and the other monitor is connected to the duplicator?

    Could you please post this?

    I'm not quite sure of HDMI and Port Replicator (PA3838E-1PRP) but many laptops equipped with support DVI dual video output (VGA and DVI) port using Advanced Port Replicator III (PA3314E-1PRP) or Advanced Port Replicator III more (PA3474E-1PRP).
    But this is only possible if the laptop itself supports the simultaneous use of RGB & DVI too.

  • Using the two connections of cable and wireless on a laptop Windows 7

    I have a wireless router on my home network, which works very well.  Sometimes, I connect my laptop with a wired connection for faster speed during file transfer.  When I do that, I have 2 network connections: Wi - Fi and wireless.  Should I disconnects me wireless connection, or is it possible to have both connections at the same time?  Is it possible to configure Windows 7 to disconnect the wireless when it detects a wired connection?

    Thank you.

    It's OK to have two connections.  Windows automatically uses the one with the highest rated speed.

    I don't know how to have it automatically disconnect one of them. Steve Winograd, most Microsoft Valuable Professional (desktop experience)

Maybe you are looking for