Arduino MyRIO via UART communication

Hello

I am trying to achieve the data between MyRIO1900 and Arduino via UART communication.

Interface UART on Arduino Uno is minus 16 MHz clock.

The UART to myRIO can set baud rate. However if the frequency is different from the Arduino, the connection will not be built.

How to set the frequency of MyRIO UART? What is the default frequency of MyRIO UART? Where can I find this setting?

I don't understand. If the transfer speeds are the same, you should be fine. The clock frequency is used to calculate the bit rate and is the rate that data is transmitted/received.

Tags: NI Hardware

Similar Questions

  • Arduino MyRIO UART question

    Hello

    I do the Arduino MyRIO UART communications

    The issuer is the arduino which continue to send 0 x 68 and the MyRIO is the receiver

    The data frame and the baude rate are the same on both sides.

    The receiver can read the length of the message list 1 (the number sent only, so the length is 1)

    The problem is the character is not displayed (this is always 0)

    I have attached the arduino code and myRIO vi.

    Is there someone who gives a solution for this?

    SergioMa wrote:

    Hello

    I do the Arduino MyRIO UART communications

    The issuer is the arduino which continue to send 0 x 68 and the MyRIO is the receiver

    The data frame and the baude rate are the same on both sides.

    The receiver can read the length of the message list 1 (the number sent only, so the length is 1)

    The problem is the character is not displayed (this is always 0)

    I have attached the arduino code and myRIO vi.

    Is there someone who gives a solution for this?

    3 information on the same subject?

    We can see them. They are all still there for people to see.

    There is no need to continue to ask the same thing again and again and again.

    And you even wrote that you got it working.

  • UART communication

    I have a PXI test system that I use to test some custom hardware. Some of the tests require UART data to be sent and received. I have a UART to USB device I can use, but I rather not depend on material outside the PXI chassis if I can. I have some channels to spare on a 6535 I tried to use to get the job of the UART. Unfortunately, I can't surely receive long sequences of bytes (I can send them without problem). I still have the budget to buy additional cards if I have to, but I'm not sure that none of them will allow reliable UART communication. The big problem I had with the 6535 s is that I can't always rearm the fast enough task for each byte, and avoiding is too unreliable. I'm pretty sure I'll have the same problem with other cards, I also take.

    Is it possible to get surely communication UART to work using only the PXI hardware, or do I have to use additional hardware (like a converter USB UART)?


  • Help! I deleted all MyRIO software and it is stuck in safe mode

    Hello

    In the NI MAX interface, I saw that there was a new version of the software to intall, in the section where it is possible to add and remove items from software to MyRIO among a list with checkboxes. The last option in this list was something like all erase, remove all software or other similar texts.

    I did intend to install the new version of the software after that. Then the MyRIO restarted in safemode, whith the led blinks three or four times every 5 seconds. And it was never recognized by the computer.

    I tried the button to reset without success. The MyRIO is still stuck in safe mode.

    Then I tried to communicate using the serial port on my computer set up according to the Guide to MyRIO, fitting RX, TX and GND of the connector on the PC in the ports of the UART of the connector has MXP. But the MAX NOR see the MyRIO, there is no response to the serial communication.

    How can I install the software again in MyRIO?

    Thanks in advance.

    Kind regards

    Rodrigo.

    Hello

    Today, I managed to communicate with MyRIO and now its working again.

    The RS232<->UART using the MAX232 IC worked, but I couldn't install the software in MyRIO via this interface.

    Without doubt, I uninstalled the software OR associated with MyRIO from my host, because when I plugged the MyRIO using the USB interface for my other computer, he acknowledged, and I installed the software into it without problem.

    Kind regards

    Rodrigo.

  • Stand alone driver for the minimal application installer MyRIO

    Dear all,

    I'm trying to deploy a full installation package for a laboratory study, which would include:

    1. exe application file compiled from a VI. This VI connects to the MyRIO via network flow.

    2 labview runtime engine

    3 driver for the USB LAN unit MyRIO.

    First 2 steps succeeded, and the VI communicates with the device via WiFi MyRIO. However, I would like to connect trough USB and need a driver on the host machine. Installation of a complete driver package is certainly an overdose for this occasion.

    Therefore, I'm looking for someone to report to a minimum installation package that would ensure good communication with MyRIO via USB.

    Regarding kind.

    Česlav

    Thanks for the quick response Sam K

    .

    After all, I found the file msi corresponding to the LAN drivers on the DVD myRIO. There is a separate driver for win XP, that does not work on my Win 7 64 machine. The following file actually worked very well "NiRio_USBLAN64.msi" with the associated cab file. Without the rest of the CompactRIO drivers it does not appear as MyRIO, but as a generic USB LAN adapter device. Connections work properly, exactly what I was looking for :-).

    The bad news is that when you create an installer in the construction specifications, the .msi files are not considered as executable files and can not be integrated in a single installation procedure. Students will have to make several more clicks.

    I also noticed that CompactRIO drivers can be integrated into Setup completely, which facilitates the procedure, but adds an another 150 MB to the installer against the 3.5 MB for only the LAN driver.

    Maybe this thread will help someone else.

    Greetings,

    Česlav

  • using several of the ADC (ad7476a) via SPI

    Hello:

    I BF537-EZkit and AD7476A-GERD and I set to work using the project "SPI and UART.

    But in my project, I have to AD7576A several... How to configure the SPI to do this?

    I used the "analog s in reading" loop inside the moment (who writes via UART), but he reads the ADC too slowly for the reading of the AC...

    What is the correct way to do it? The UART is useless I use it just to see the values read by the ADC...

    Thanks in advance,

    Antonio Freitas Verissimo

    Hello

    To control the operation of the multiplexer, you can use a digital output of the Blackfin. You can use the PPI on the Blackfin to do. You will be able to control in LabVIEW with functions at Black fins that have been added to the palette for LabVIEW.
    If you are not familiar with LabVIEW, you can learn here:
    http://digital.NI.com/public.nsf/allkb/7D5F60ADBFD9CDC2862572BA005DD96A?OpenDocument
    Besides, the exercises provided with the EZkit should help ( http://zone.ni.com/devzone/cda/tut/p/id/6949 ).

    Best regards

  • Read 1 k samples of 2 bytes each FPGA by UART

    Hello

    I'm designing a system composed of a board FPGA based (NEXYS4 DDR) which read high speed ADC via the parallel interface. Now, I programmed the FPGA for 1000 samples and send it to a LabVIEW GUI questioned by GUI via UART. Each content sample data 2 bytes so the finals will be 2000 bytes on UART.
    At the moment I have not a syntax of separation between samples (to each 2 bytes), do I need? Then when I hit the LabVIEW acquisition he will show me the samples without separation between them.
    How is the best way of? To make a separation in the FPGA firmware to each transmission of the sample, or to work with data in LabVIEW and do a syntax with a stacked sequence which will allow me to read 2 bytes and increment an index that will allow me to go to the next 2 bytes.

    I hope that I was clear where I have my doubts.
    In this message, you will find a screenshot that show you how the data looks like when I receive the FPGA. In this screen printing indicator are defined to display the codes and hex display display and 028F is the value of the sample.

    Thank you in advance,

    Vlad

    Looks like you are doing things correctly.  Just use Unflatten string to convert to a table of U16.  I recommend using the Unflatten of string so that you can choose the endianness if necessary.

  • Remote panel using myRIO

    Hi all

    I would like to distance, monitor and control an executable on my goal of RT myRIO via a web browser in another system. I followed the same procedure, such as mentioned in this KB (who worked on the cRIO). But when I build the executable, I'm not able to find an .ini file or a .config (please refer to preview files, .ini and .config build are not generated too) file to check the settings as a target of cRIO. I tried opening the page in a browser, it says that it cannot open the document. What could be the reason? And I use web services to achieve the same thing in myRIO (who uses lv classes)?  Thanks in advance.

    Concerning

    Arya

    Hi arya1

    Please try this one with the LINUX based path:

    http://digital.NI.com/public.nsf/allkb/AB6C6841486E84EA862576C8005A0C26

    It works with my myRIO

  • CRC 32 bit

    Hello

    I am in communication with stm 32 via UART. The framework that I get is "1C000000B0B80700040400000000000000" and the CRC of the frame is "9D0351B5". its does not not in the calculation of the crc which I do, the calculated crc is '226F9471 '. I tried the calculation with python and other sources calculated crc works very well. If someone how to solve, pleas ëlet me know.


  • GUI is unresponsive upon receipt of data

    I am relatively new to Labview and still getting used to the model data flow programming. I'm using LV as a control panel for some software and hardware running on an FPGA for a prototype I've created. Communication with the FPGA is made using the UART and seems to work correctly. I have however the problem as my command buttons unresponsive in certain special occasions. I think that the best way to go here, it is that I explain what must do my program (and what I think he should do), post my VI, explain when it blocks and I hope someone can help me to identify the problem.

    As I said LV is supposed to be the Control Panel, via this Panel the user can change some settings and start/stop the measurement. Orders should be sent to the FPGA (ZYBO Board for those interested) which applies the commands and sends return measures.

    I founded my VI on the simple state machine model and build the rest from there. I tried not to use too variable, as I read that this breaks the flow of data model, but sometimes I could not find another way.

    It is thus the VI should work: after initialization, it should be waiting for the event status, pending a change in the value of the start/stop button or the button exit. Every second, a timeout event occurs and LV checks with the FPGA (and sends the commands to the FPGA). If the Start button is pressed the FPGA starts to measure in each packet, it returns the FPGA will tell how tall are there are still and send the data 60bytes to LV most of the time the UART communication is the bottleneck and the number of measures will begin to grow. During this time, however, I am still able to change the values of the controls I have send to the FPGA (I like). If I press the start/stop button once again I send the command stop to the FPGA, which means that it will stop measuring, but always send data to LV I think VI makes a loop on the same States when it measures (communication-> button control-> manage data-> communication). Meanwhile however the GUI does not appear to meet my keys, it won't let me change the commands I send or even use the exit button. This lack of response remains while I get data. Once the number of remaining measures hits 0 (the variable 'name' in VI) goes back to the State "in anticipation of the event" and at that time there my previous keys are executed. (So let's say that I pressed the convenient stop button are still some measures should be sent, if only the moment where I press the exit button it will not respond but once the communication has been completed, it will record key press exit and exit the VI.)

    I tried to avoid working with timers since communication is the bottleneck for the moment, this is the reason why I will not return to the State "wait event" once the measures began.

    I hope my explanation is clear, that otherwise, I'm happy to clarify even more (or reword if necessary). A summary of my problem:

    During the time that I am able, and receive data I have to loop through the same States that when I stopped position and am simply receive data ("communication-> button-> handle control') data-> communication. When I am able the GUI is always sensitive and when I stopped measuring it is not. I hope that someone can help me to find the problem and we hope to offer you a solution.

    Thanks in advance!

    PS as I said that I am relatively new to programming LV so if you see some other "nono" you can also tell me to improve myself.

    It is the nature of the beast when it comes to State Machines. This is why if you perform operations of a lot of time, you will need a parallel loop in order to accept user input. Look in the architecture of messages in queue manager that comes with LabVIEW. It is essentially a structure of the event in a loop that sends messages to another loop through a queue. The loop (slave) receiver is on these messages and takes as long as he wants without interrupting the user input.

    In other news, it seems that you used the simple state machine good enough popularize and how to configure reports and other things. Here are a few tips none-the-less:

    • You don't need the structure of the sequence. Your code already follows the stream, so you don't need to create separate data sections. It compartmentalizes the code and ultimately get rid of the ability of LabVIEW to perform some of these operations in parallel to increase the speed of execution. Structured sequence should be used when you do not have a way to control the operation order (by adding a wait between two operations, etc.).
    • You can move the control command structure of the event and manage changes in value through a shift register. There is overhead associated with reading the control every single loop.
    • Once you look into the QMH architecture, you will be able to get rid of all the Boolean reading of output you have in each case. The structure of the event should contain all your controls to optimize the functionality of input from the user.
    • You have the cluster of error through each case because the model put there for you, but you do not use. You should the dishes your clusters of error through so that you know if you made a mistake somewhere. Your initialization and Comm States should have it wired for sure to see if you have a series being undermined.
  • VI run slowly after a specific time

    Hello

    I have a VI that reads data via an arduino Mega Board UART port.
    I have a problem and I don't know how to deal: when I run first time the VI his works very good, but if I let him to run minimized (for example one hour) and after I tried to see the VI and make tweaks (enlarge the window) its very difficult to deal with it, its frozen sometimes get and sometimes his slowly moving. Anyone have any idea of this problem?

    The system configuration:

    OS: W10 (8 GB of ram and i7 processor) 64-bit

    LabVIEW 2015 64 bit

    PS: if I can post my VI, but I know this problem with the other screws.

    Thank you in advance,

    Vlad


  • How to install the OPC Server with the Application Setup

    Hi all,

    I make the datalogging progam in the PLC via modbus communication using the OPC server.

    1. I got configer the opc via the Project Explorer client some time it works perfectly, but when I run it by the next day, he cannot communicate with an OPC server but the OPC server is to communicate with the PLC. When I right click on the properties of the customer e/s in the exploer project opc and make any change and still run the application it works where is the problem.

    2. the second problem is by building the installer that will be installered to my PC targate OPC server. Bacuse I had installed the application on the computer target just for testing but OPC Server havn't installed even if there is no option for adding the OPC while bulding server.

    Serdar, SALVATION

    Thanks for the reply I saw your example, your idea is ok, but if I have more then 100 and with different types of data tag then where is the problem to manage all these tags.

    Now, what I had done I took the express to create vi or configer server I/O and give the name of the process even as file name as opcdemomo and same server name reference in the Project Explorer and restart and scream in low tow and three times it works I havn't get any problem.but which is not the right method. 

  • Problem with the digital data to write VISA function

    I have a GE's PowerPC that is running on the VxWorks operating system. I have a tornado application where I run my C code to generate a file .o & .out, then I empty image .o files & .out for PowerPC via FTP, now I need to communicate with PowerPC of LabVIEW (via serial communication using VISA vi) using the VxWorks controls. When I enter orders VxWorks in LabVIEW

    That is to say for Eg: 1 > ls --> the contents of a directory list IE .o & .out files. The problem I'm facing here is, when I run the vi, I am able to read the file in the box to read the string but keep files on speeding up juice,

    2 > ld <> --> load a module object in memory. I face the same problem here.

    3 > then I need to type the name of funtion main c program, after which I can give input to the program.

    4 > I need to enter numeric data as inputs to my program. but the write VISA function accepts the only input string and read VISA function gives only out of string... I want to give digital entries and read the digital output.  Any help would be appreciated.

    Hi Luke,.

    You can try with this reliable hyperterminal VI.

    http://lavag.org/files/file/172-hyper-Terminal/

  • GPIB connection block manual access to the DG535

    Dear all,

    I'm relatively new to the labviw. I wrote a program (in labview 7.1) to contact generator of Princeton Reserch systems delay DG-535 using GPIB. It works very well! However, I have a little problem here. As soon as I have the DG535 communication using labview program it blocks the manual operation of the DG535. Even after I stop the program, I can't access all channels. I have to restart the DG535 to operate it manually and it repeates every time that I try to communicate via GPIB using my vi. I tried closing the labview to see if communication is complete and I can access the DG535 maually, but it did not work. Someone in this forum had the same problem? If it of normal or not. If this is not normal, so what is the solution to put an end to the DG535 via GPIB communication and reactivate the manual access without retarting the DG535.

    Thank you much in advance.

    Best regrads

    Champion

    It is quite normal for an instrument to stay in remote mode. Most of the instruments have a "local" button Alternatively, you can issue a command to GPIB GTL (go to Local) with VISA.

  • Read file measure that VI does not work

    Hello experts!

    I want to display a previously saved tdms file in another vi. But I kept getting error 7, and the data does not appear in the graphical indicator... (see the attached jpeg file)

    Here's the PDM file: https://drive.google.com/open?id=0BwSzf9jm9UeNOEtFaE1CUVpKS1E

    I have also attached my vi to this post.

    Please help :-(

    Thank you!

    I see the problem.  It is the code that runs on a myRIO.  You think the myRIO as another computer.  But there is no access to your C drive.  If you want the myRIO to play the file, you must first set the file on the myRIO (via FTP or WebDAV) and point your control over the file on the myRIO.

Maybe you are looking for