Using the same interface CAN read and write

Hello.

Can I use the same CAN interface to read and write?

For example:

I send you CAN frame using CAN1 to my MCU.

IF MCU confirmed the order of receiver it immediately sends the echo return command and there different ID to send the command.

I tried to use CAN1 output framework and then reconfigures CAN1 to frame in queue and retrieve the frame of the echo.

But it seems that I was always missing. The 'framework of CAN' kept vi expire.

When I used the separator on the outlet BOX in my configured MCU CAN1 for frame and CAN2 for chassis in and I managed to catch the echo framework.

I think about 100 ms for the frame in response that will be sent after the order has been received. It takes longer for the NI PXI-8513 reconfigure? Can I still do it, or I have to use the separator?

I wad jump to use an interface to read and write.

Thank you

Ok. I misread your notion of echo. I understand now. I'm sorry.  The code you posted seems reasonable.

(1) did you notice on or off for the session?

(2) what baud rate? You can add a parameter of baud rates for the property to be explicit node.

(3) I don't remember the name of VI, but you can add a status of Comm Get after reading. This will give you some information about the bus - if errors were detected, etc. Which can be useful to help debug.

Tags: NI Products

Similar Questions

  • How is it that a computer which works very well with a direct Ethernet connection won't work with a switch, however any other computer using the same port, cable, ect, and so on, can?

    Switch issues. Help, please.

    How is it that a computer which works very well with a direct Ethernet connection won't work with a switch, however any other computer using the same port, cable, ect, and so on, can? We already checked the firewall as a question, that it was not, and now, we are puzzled.

    Well, I know that the issue is long-term... believe me, it's a long, but as they say, the devil is in the details. Anywho, the question is, my grandfather has a HP laptop, which for two years has been able to run through a Linksys switch to his router and connect its printers to his laptop. About two months ago it suddenly doesn't work like that. Now, it works fine if it plugs directly into the router/Ethernet. My uncle suggested that the switch was bad, but after testing the same port, cable and all, the switch worked well for him. ' GRAMPS really needs this answered, but someone else, it is called can not understand and now I, in turn, ask you all for what you can offer. Here are the ideas that we have already discredited.

    -Switch bad: as above, is that this particular laptop, even under identical conditions, the works of my uncle very well.
    -Bad NIC: debunked through the fact we connected to the computer directly to the router and it worked fine.
    -Bad configuration of the firewall: we have disabled the firewall (please do not notice, he wasn't the smartest idea, we already know) and even if she recorded the switch exists, the internet is always triggered when you are connected with the switch.

    Thanks in advance for any assistance that you can provide and Merry Christmas to you all.

    It would be useful to consult the results of the ipconfig/all command both when it is connected to the switch and when it is connected directly to the router.  In addition, what is the model of the switch?

    To save the manual copy and the new hits of the ipconfig/all command output-

    First connect through switch.
    Open a command prompt window (start > run > cmd > OK)
    Type the following lines in the black command prompt window and press ENTER after each line

    echo "Connected via the button" > "% UserProfile%\Desktop\ipinfo.txt".
    ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".

    Now connect directly to the router, type the following lines in the command prompt window and press ENTER after each line

    echo "Connected to the router" > "% UserProfile%\Desktop\ipinfo.txt".
    ipconfig/all > "% UserProfile%\Desktop\ipinfo.txt".
    Notepad '% UserProfile%\Desktop\ipinfo.txt '.
    output

    Copy the contents of the Notepad window in your response (if you use the laptop when it is connected directly to the router) or close the Notepad window, and then copy ipinfo.txt of the laptop to the Gramps in a USB FlashDrive you can connect to any computer allows you to answer.

    You can delete ipinfo.txt on the desktop when you are finished.

  • with third party applications, I can read and write on the external drive HFS + for windows?

    Hello

    I see with third party app I can read and write to external disk NTFS on the mac computer.

    then othrwise, then I can read and write on extern hardrive HFS + with application of third party windows computer.  So who are the best third-party applications to read and write HFS and if they are free of charge on the external drive?

    Thank you

    Johan

    Now that I understand your goal, check out http://www.ufsexplorer.com/rdr_hfsp.php but your YMMV.

  • Loading multiple files using the same interface in ODI

    Hi all

    We load multiple files using the same interface and get the error "java.sql.SQLException: ORA-00942: table or view does not exist" while inserting record in the staging table. It looks like the same temporary table is used when loading multiple files and the error. Grateful if someone offers a solution to avoid this error.
    We use the following KMS:

    (1) LKM SQL file
    (2) IKM Oracle SQL COMMAND append.

    Receive a quick response.

    Thank you
    RP

    Hello

    See this http://odiexperts.com/interface-parallel-execution-a-new-solution

    Thank you
    Fati

  • Can we use the same package for main and begotten of concurrent programs.

    Hello

    I use a package.procedure1 for a simultaneous program. Can I use the same package.procedure2 of a pondu simultaneous program which was called from package.procedure1? If I say incompatible as the same program of 1, which will create problems by running the 2nd program because the package is same?

    Thank you
    HC

    I use a package.procedure1 for a simultaneous program. Can I use the same package.procedure2 of a pondu simultaneous program which was called from package.procedure1?

    Yes you can.

    If I say incompatible as the same program of 1, which will create problems by running the 2nd program because the package is same?

    When you second the 2nd program it will not work if the 1st program execution, and he has to wait until you have completed the 1st program.

    Don't know what code you use in the first and second procedures or even in the whole, but you can try this in a TEST instance first and check whether or not it works as expected.

    Thank you
    Hussein

  • Brander DVW/RW can read and write DVD double layer dvd

    Hello

    I would like to know if brander DVD/RW can also read and write the DVD DL(dual layer) dvd.

    or I have to buy for that special brander!

    Johan

    What is a "brander DVD/RW?   Support double layer DVD depends on the material.   Try to identify the make and model of the car since the Device Manager and find its specifications.

  • The best way to read and write?

    Hello

    I'm working on the project with labview.

    with this program I connect PC to MCU via modbus RTU sreial.

    in this program, there are some data must be read and some data they need to write.

    what I need is most of my reading polet exuted time except when some of the elements of control (as the edit box) changed by the user.

    every time something has changed by the user writing polet executed.

    now, what is the best way to do this?

    Best regards.

    Structure of the event within a while loop.  With the structure of the event, detect you the change of values and send the appropriate commands.  You can use the case of timeout for reading the State of the MCU.

  • Using the same PIN for input and output

    Hello

    I would use a single PIN for input and output.

    I'm experimenting with writing a driver for the DHT11 that using a single interface

    I have the following code to open the PIN, but it fails

    GPIOPin dhtPin = (GPIOPin) DeviceManager.open (new GPIOPinConfig (0, 17, GPIOPinConfig.DIR_BOTH_INIT_INPUT, GPIOPinConfig.DEFAULT, GPIOPinConfig.TRIGGER_NONE, false));

    VM - iso [DAAPI] =-1: not supported direction was placed for 17 GPIO pin number. Open failed

    jdk.dio.InvalidDeviceConfigException

    -com/oracle/deviceaccess/gpio/impl/GPIOPinImpl.openPinByConfig0 (), bci = 0

    com/oracle/deviceaccess/gpio/impl/GPIOPinImpl. < init > (), bci = 87

    -com/oracle/deviceaccess/gpio/impl/GPIOPinFactory.create (), bci = 6

    -com/oracle/deviceaccess/gpio/impl/GPIOPinFactory.create (), bci = 3

    -jdk/dio/DeviceManager.openWithConfig (), bci = 49

    -jdk/dio/DeviceManager.open (), bci = 6

    -jdk/dio/DeviceManager.open (), bci = 2

    -dht11 / DHT11. < init > (DHT11.java:42)

    -dht11 / DHT11. < init > (DHT11.java:37)

    -dht11/DHT11Midlet.startApp(DHT11Midlet.java:25)

    -javax/microedition/midlet/MIDletTunnelImpl.callStartApp (), bci = 1

    -com/sun/midp/midlet/MIDletPeer.startApp (), bci = 5

    -com/sun/midp/midlet/MIDletStateHandler.startSuite (), bci = 264

    -com/sun/midp/main/AbstractMIDletSuiteLoader.startSuite (), bci = 38

    -com/sun/midp/main/CldcMIDletSuiteLoader.startSuite (), bci = 5

    -com/sun/midp/main/AbstractMIDletSuiteLoader.runMIDletSuite (), bci = 132

    -com/sun/midp/main/AppIsolateMIDletSuiteLoader.main (), bci = 26

    I have the following permissions value

    jdk.dio.gpio.GPIOPinPermission "*: *" 'open, setdirection '.

    jdk.dio.DeviceMgmtPermission "*: *" 'open '.

    I tried a few other pins too, I don't know if some ankles are entered or only output pins.

    Any help would be appreciated. I could not find documents explaining how to configure more than one action for a permission ( 'open, setdirection'), so I tried just until he stopped to complain about the values...

    What I need is to open a PIN, set it OUT, write a few high and low values... set it to the direction of the ENTRANCE, and reading back high and low values... But right now my GPIOPinConfig seems to be problematic

    (... Configuration of the meaning to DIR_INPUT_ONLY or DIR_OUTPUT_ONLY, works until I try to change the direction of the port - what is expected...)

    Hi Charl-

    As far as I KNOW, he is there no current plan to apply 1 thread in Java ME Embedded.

    I also looked at Pi4Jand they do not also support 1-wire, however, there is an enhancement request to add support for the bit hit Linux driver will have to perform 1-wire work.

    The raspberry pi support it, it's just Java ME holds back me.

    BTW - the article has been referenced in the enhancement request notes that he is not taken in native support for 1 wire on the Raspberry Pi - it requires a Linux kernel driver module.

    Tom

  • I read and write English but my husband reads and writes in Russian. How can I activate the taskbar of the Russian language?

    My husband is from the Russia.  It reads and writes in Russian and I'm having a problem turning on the Russian keyboard.  I went many steps of the menu start, Control Panel, regional and language options, languages, details.  I added the Russian.  under the Russia, there is a symble of a keyboard than Russian (typewriter) Russia and the United States.  acorrdign at every stage, there should be a tab in the bar of tasks showing that I can switch bewteen eglish and Russian.  who does not come to the top.  I have check the tab bar of language and made sure all the boxes are ticked, but I still can't find the language bar. what I am doing wrong?

    I don't need a translator who is the other thing that I still find.  I need for my husband who bought the computer to be able to type in Russian, his mother tongue.

    Thank you for your time,

    Heather

    See if that helps you

    http://Office.Microsoft.com/en-GB/Outlook-help/switch-between-different-languages-by-using-the-language-bar-HA010362283.aspx

  • Read and write data to the content repository.

    Hi all
    We use the content repository to store a document and images on the web server in the Center.
    So we have created/setup a repository of content on the web center.
    Please proivde me some might document page to get an idea of how I can read and write the date
    content repository.
    You are most welocme to provide some idea /suggestion.
    Thank you
    Arun.

    You are using webcenter spaces or you create a custom application webcenter?

    When you create a custom application webcenter, you can make use of the workflow Documents. Jdeveloper resources catalog, you will find a few flows of Documents job that will allow you to add some components to manage documents in a folder structure.
    You must first create a connection to your content from your application server. This can be done in the Application resources, right-click on the connection and in the context menu, select "content repository". Them you must filll in connection to your content server details. Make sure you have selected "Set as primary connection for document service" because otherwise the document taskflows you deposit on your page will not find a connection.

    Once you have added the connection, you will also find a datacontrol to the content repository. In this way, you can use the datacontrol place the taskflow and you can create several custom tables.
    I'm not sure but I think the datacontrol also include surgery to create the document but I'm not sure...

    And if not enough, you can always do use the webservices provided by content server. In Jdeveloper you can easily create a datacontrol from Web services by providing the wsdl file. UCM provides for services so that you can import the wsdl into your application and you can easily create your own forms checkin, tables...

    Here is some information on how to integrate services document:
    http://sqltech.CL/doc/oas11gR1/WebCenter.1111/e10148/jpsdg_doc_lib.htm

    and here are some others:
    http://sqltech.CL/doc/oas11gR1/WebCenter.1111/e10148/jpsdg_content.htm#BABCCFJH
    http://sqltech.CL/doc/oas11gR1/WebCenter.1111/e10149/documents.htm#WCSUG2635
    http://sqltech.CL/doc/oas11gR1/WebCenter.1111/e12405/wcadm_documents.htm#WCADM205

    Published by: Yannick Ongena on Oct 8, 2010 08:23

  • Impossible to find the field read and write VI in labview 2009

    where is the field point to read and write VI in labview 2009

    According to the version of LV, BT pallets can be sensitive to the context. Try to create a project and add a fieldpoint target to the project.  Right-click on the target of FP in your project and select new > vi.  Now FP functions should appear

  • Can I enroll in two Windows 8 computers using the same account at the same time?

    I just bought another laptop Windows 8 and want to set up using my Microsoft account, can I use the same account on both computers at the same time, or do I have to sign up an account?

    Hi Disuhall,

    Thanks for posting your query in Microsoft Community.

    From your description, it seems that you want to know if you can register in two other computer using the same account existing Microsoft at a time in your operating system to Windows 8.

    I'll be happy to help you.

    You can register in both computers using the same account to Microsoft and you have to sign on the account to be used in another computer.

    For all windows questions do not hesitate to contact us and we will be happy to help you.

  • Satellite M30X-165: Mat * a UJ - 831 S is not read and write any DVD

    Hello

    the next problem is sticky on the laptop Satellite M30X 165 with the burner Mat * a UJ - 831 S: it can read and write CDs, but is not able to write them to DVD or even read some of the ones I've burned and also read in the same drive. Even at the start of the DVD, it does not start from the recovery DVD, the player starts and slows down very quickly.
    Without doubt, it must be put at the service of repair or someone has other suggestions?

    Could you please tell me how long the repair takes (I know what it takes to install the desktop temporarily used).

    Thank you

    Post edited by: DerSeher
    Using burning software, it detects the DVD, but invite you to an "error of calibration power (037303).

    Hello

    If you cannot use recovery media, I guess that the drive is defective and must be replaced.

  • Problem with digital I/o read and write in CVI

    I have a PXI with PXI 6225 Renault installed box. For some uses, I wired 4 lines of digital port 0

    for its 4 top lines so that the output digital on bottom lines can be read as a digital input on the top lines.

    In the CVI program I have set up two input and output of tasks as follows:

    Enter task:

    DAQmxCreateDIChan (digitalInputTask, "PXI1Slot5/port0 / line4:7","InputLines", DAQmx_Val_ChanForAllLines ");

    DAQmxCfgSampClkTiming (digitalInputTask, ' AI/SampleClock ", 4000, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 2000" ");

    Output task:

    DAQmxCreateDOChan (digitalOutputTask, "PXI1Slot5/port0 / line0:3","OutputLines", DAQmx_Val_ChanForAllLines ");

    DAQmxCfgSampClkTiming(digitalOutputTask,"ai/SampleClock", 4000, DAQmx_Val_Rising,DAQmx_Val_ContSamps, 2000));

    DAQmxCfgOutputBuffer (digitalOutputTask, 2000);

    I also started a task of analog input to ensure that the analog "IA/SampleClock" sample clock is running, and I check

    as I interpret the correct analog data of my analog lines.

    Here's the problem:

    I write 2000 identical samples of zero for the 4 lines (port0/$line0... (3) with the following command:

    DAQmxWriteDigitalU32 (digitalOutputTask, 2000, 1, 10, DAQmx_Val_GroupByChannel, sampleArray, & writing, NULL);

    After a while, I try to read the 4 lines (port0/4... (7) using the:

    DAQmxReadDigitalU32 (digitalInputTask, 2000, 10, DAQmx_Val_GroupByChannel, scanArray, 2000, & read_num, NULL);

    but the values returned in scanArray are nil!

    If I replace the digitalInputTask by digitalOutputTask in the above function call, I get the good samples rewritten

    (do not know how the 4 lines below that are configured in output mode can be read back! could it be just read buffer?)

    I don't know that the hardware configuration is correct, because when I try to emulate this feature in Labview, it works.

    (I use an output data acquisition assistant to write down the 4 lines of port 0, using a digital wave of entry, then)

    top reading 4 lines with the help of one Assistant DAQ to enter a digital waveform VI.

    In another test, I have 4 lines below in CVI, put on stop my CVI program, start a simple Labview VI to read from

    upper 4 lines and I can see the values I just write in CVI).

    Any idea what could be causing DAQmxReadDigitalU32 to read only zeros in CVI?

    I compared my settings in CVI with parameters DAQ assistant in Labview and tried to make them identical, but nothing helped.

    Thank you

    Try to use these examples to see if you can read and write in CVI

  • Use the same table queue send two different messages?

    Hello

    We have a reconciliation and an outgoing queue in our database!

    Now, we need to create another message content to send to IBM MQ series, so it's just an outgoing messages (no incoming message!)

    To the exsisting two queues, we have the gateway messages in place!

    I was wondering if I can use the same outgoing queue table and infrastructure Message gateway to send another message charge (contect) to the IBM MQ.

    Don't you think it's possible?

    More info made me know!

    Thanks a lot for your help!


    Hello Louis,.

    first of all I didn't detect something strange or even incorrect - perfect!

    Your questions:

    > 1. have I defind is correct? "multiple_consumers => TRUE);"

    Yes, that's correct. We must define this order to use MGW.

    > 2. I failed: gv_mq_inbound_log_queue: = 'ORACLE.002 ';     part because I have not all incoming messages to oracle, I just sent messages in my case! > Is this correct?

    Yes, that's also OK. Since you're carrying data from AQ to MQ in an outgoing queue. Incoming queue would be

    the other way around. You have configured your MQ as a remote queue (sys.mgw_property ('MQ_openOptions', 16')).

    You wishes to clarify this yet once with your MQ management group if this is correct. You may not know at this stage.

    The alternative would be a local queue (value = 2066).

    You don't show the part for the queue. This should be something like:

    BEGIN

    v_message_text: = p_message_text. GETCLOBVAL().    -using the XMLTYPE as payload type

    v_text_body: = SYS. MGW_TEXT_VALUE_T (NULL, v_message_text);

    v_payload: = SYS. MGW_BASIC_MSG_T (v_header, v_text_body, NULL);

    DBMS_AQ. ENQUEUE (queue_name-online p_queue_name,

    enqueue_options-online enqueue_options,

    message_properties-online message_properties,

    payload-online v_payload,

    -Online v_msgid msgid);

    > 3. The last of them, do you think I'll reach my goal with all these codes? Is that what you think may be missing or... ?

    Yes, you will reach your goal using this code. Try it and tell me what happened.

    Kind regards

    WoG

Maybe you are looking for