myRIO UART

Hey guys,.

I have a the Sensirion AFS1430 sensor RS232 interface. Now, I'm trying to contact him with the following code:

The problem is that I get no response at all. Bytes to port is always = 0. A warning I get in the while loop:

VISA: (Hex 0x3FFF0006) the number of bytes transferred is equal to the number of entries requested. More data may be available.

I also tried to change "line break" to "carriage return" always the same result.

With the help of an oscilloscope, I see that what I write is sent via TX, but nothing happens on the port for the while loop (TX is high all the time).

I'm getting a little frustrated...

Kind regards

Slev1n

More importantly - you have a line driver/transmitter/receiver connected to your myRIO? The UART pins on the myRIO are not RS-232 levels - they are 3, 3V (5V tolerant). If your meter's RS - 232 - there signal levels could be anything up to +/-15V - you might damage the pins of your myRIO - you need to put a line transceiver to convert RS-232 up to 3.3V-level signals.

Tags: NI Software

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.

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

  • How to replace the factory supplied FPGA functionality in myRIO?

    Hello

    I have created an example of FPGA code and downloaded in myRIO.  I expect he would have erased the FPGA factory feature shipped which included all the interpretation of the digital (DIO) of input/output PWM asynchronous universal receivers/transmitters (UART), inputs of encoder, I2C and SPI.  Is it possible to put this factory shipped to FPGA code?  Where can I get this code?

    Thank you

    Ajay.

    Hello Ajay,

    When you run your host code, which calls the FPGA VI (opens its reference), it automatically deploys the FPGA code to the material. If you run after code samples, to come with drivers myRIO, it will deploy default FPGA code included.

    To find the FPGA defalt code, which comes with the drivers, create a new project to create a project of-> models-> myRIO and select myRIO custom FPGA project, you will find a FPGA Default.vi of hand inside.

    It is sufficient to note that functiality UART is not implemented on the FPGA, but instead uses a feature included in the architecting processor. If you still have the UART functionality, even with your custom running FPGA code.

    Thank you

    AREV

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

  • use bluetooth on myRIO

    Hi all

    Small question.

    I just played with the myRIO, so forgive me if this question is stupid, but it is possible to connect a USB bluetooth dongle? Otherwise, what is the best way to connect a bluetooth to the myRIO interface?

    Thank you!

    Hey tonverra,

    In order to use a USB Bluetooth dongle with myRIO, you will need to make some changes to the operating system.  The Group NEITHER Linxu Real is the best resource for OS customization issues.

    Ferdinand, you could use a USB Bluetooth dongle simple with an interface UART or SPI as the BlueSMiRF without any OS custimizations.  Usually, these modules offer fewer features but can be quite good depending on what you are trying to do.

    -Sam K

    Hacker of LabVIEW

    Join us / follow theGroup of pirates of LabVIEW on google +

  • Programming of the digital I/o pins on the NOR myRIO-9100 for serial communication

    I use NEITHER myRIO for my robot and I want to use four reading of the distance sensors that communicate via the serial port. But the myRIO has only two UART ports on board so I was wondering if there is a way to program the digital pins use for serial communication. Any help appreciated.

    It is possible.  Here is an example that I could find.

    Example of reference to RS-232 for LabVIEW FPGA Interface

  • Engine for MyRio adapter command 2 DC motors

    Hello

    I have a question about the adapter engine for the MyRio. I found the following code example:

    https://decibel.NI.com/content/docs/doc-45592

    This afternoon, I was able to drive a motor continuous using this VI, but I want to use to control 2 Motors continuous. I tried the following (see photo) and it did not work.

    What should I do for the second DC motor?

    Thank you!

    Hello

    Well, the next time you post, it would be useful to have all the information to start with (what does your system, errors, measures

    you have taken to solve the problem, etc.). This way more people will respond and we can help you more easily.

    By parallel loops, I just run two processes in separate loops at the same time in the same VI (what they do on the link).

    If you think about it logically if this initial process is running one engine, then do the same exact process but that it points to the

    second motor will run the second engine. So, if you include the two pieces of code (exactly the same but different engines references) in the same VI then it can run two engines.

    If you look at the link I have attached before she speaks of two ongoing processes at the same time within the same VI.

    You can then use queues and the authors of the notifications (look in them) to communicate between the two processes you use, allows from Control Panel even before to control them and stop them both at the same time.

    With this, you should be able to all both enforce.

    Hope this helps

  • Reading of Thermocouple Type K with myRIO

    I have a myRIO (room only) and I need to read for an internal PID K type thermocouple measures.  I am able to do this directly in the room?  Or I need an adapter?

    Be as specific as possible.

    Thank you.

    The above listed connector is the connector for the card myRIO only.

    In addition, the thermocouple type k has a + and - sign. If the + needs to go to one of the analog inputs and - needs to go ALWAYS, analog ground. See page 5 of the below myRIO 1950 manual for the pinout of the connector.

    http://www.NI.com/PDF/manuals/376099a.PDF

  • Palette controls MyRIO appears not

    Hello

    I recently received a myRIO.  After graduating (relatively) comfortable with LabVIEW, I have connected the RIO for the first time and went through the getting started wizard and draw the graph of the accelerometer.  However, when I tried to move forward to control the LED on the myRIO through a VI, I couldn't find the relevant icons to insert in the tool Palette, as shown in the tutorial.  When I opened the tool palette there is no section "myRIO".  There are some elements of the FPGA and the visionRIO controls, but none of the standard (I guess) LED control etc.

    After some reading, I thought it's probably a problem with the Toolbox myRIO, I had installed LabVIEW and thought I installed the toolkit from the CD provided with the item.  Idecided to erase and reinstall the Toolbox.  With the CD, I uninstalled all myRIO toolkit that I had previously installed and rebooted, then installed the resources on the same CD and rebooted.

    No joy, the License Manager NOR has not shown and myRIO toolkit under toolkits when I checked.

    I am now installing the Toolbox to the web download of the group for the second time.  After reviewing the previous posts on issues that seem to be the same as this, I have tried almost everything, and he seems not to have worked.  When I open LabVIEW screen (where you can create the project/access those pre-existing) says "LabView... myRIO, ' is the LabVIEW installed from the disk of myRIO as far as I can tell.  I don't see why it shouldn't.

    Please help if you can.  Let me know if the necessary information.  I'm on Windows 10 on a HP Pavilion.

    Thank you

    Tom

    Looks like you had open the VI was under the FPGA myRIOs in the project. Palettes will change according to the context of the VI in order to ensure that the VI is created under the myRIO. You can also view and modify the current context at the bottom left of the VI.

  • How to set an application built using the C API for myRIO 3.0 to run when starting on a myRIO-1900

    It is even possible to define such an application to run at startup? If so how would you do it?

    I've compiled a program using the API and eclipse distribution OR and can run Eclipse or by running while SSH in the myRIO. Is the only document I could find about this one: http://digital.ni.com/public.nsf/websearch/B37FA04A1CB84B6C862571A30060EF03?opendocument&Submitted&&...

    The link is a little outdated, so I'm not sure of the relevance, it is today. I changed the lines of lvrt.conf to:

    RTTarget.ApplicationPath=/c/ni-rt/startup/startup.rtexe
    RTTarget.LaunchAppAtBoot = True

    None of the settings seem to do anything. I also tried to run the program as a script using rc.local which does not seem to be used in the same way as it is in Ubuntu. My compiled pogram does not include the .rtexe extension although I can add it later that might not be the same.

    I made sure that startup programs 'disable' has been disabled on the Server Web myRIO.

    Thank you

    Just in case someone has a similar question:

    https://decibel.NI.com/content/message/144527#144527

  • trigger digital output myrio

    Hello friends,

    I have a question. I need to trigger an output of Myrio with a single pulse. After the pulse, the output will remain active. Then with another single pulse, the output will be switched off. Should what tool I use?

    Thanks for listening,

    Kind regards

    David

    Hi Davi08,

    I did a little research for you answer and I found another "NI Discussion forums" forum that maybe can help you.
    Try using this link, I think this will help you.

    http://forums.NI.com/T5/academic-hardware-products-Elvis/myRIO-digital-trigger/TD-p/3278560

    Best regards

  • Output digital myrio

    Friends,

    I need help with the following situation: I want to trigger a digital output of Myrio with just a single pulse, and after this impulse, the digital output must remain enabled.

    Then with another single pulse, the output should be turned off

    Anyone know how to make a similar request?

    Thank you for the opportunity

    Best regards

    Q.Silva

    Hi Silva05,

    I did a little research for you answer and I found another "NI Discussion forums" forum that maybe can help you.
    Try using this link, I think this will help you.

    http://forums.NI.com/T5/academic-hardware-products-Elvis/myRIO-digital-trigger/TD-p/3278560

    Best regards

  • myRIO

    Hello

    I saw in the specification myRIO manual that it comes with a power cord, but it also comes with an adapter to plug into the wall? Or I have to buy it separately?

    Additioanlly, if I turn off the myRIo servo-motors using myRIO to feed servos while the myRIO is connected to a laptop via the USB cable as well as the wall will be the servo motors draw power from the computer or they will draw power from the wall adaptor?

    Thank you kindly,

    James

    Hi James,

    1. Yes, both are included.

    2. the servo should draw power from the wall.

    Make sure that you are in business in the power output of the myRIO specifications when you feed your servo motor.

  • update firmware 3.0.0f0 in 1900 to 3.5.0f0 and propellant myrio works not when use turn the engine.

    Dear Sir

    I run this problem when I updated the firmware in myrio 1900 version 3.0 to 3.5. Before update, thrusters worked fine using the runtime engine, after update, propellers no longer exists. Any help will be much appreciated!

    Thank you

    Long

    Hey Tao!

    I'm glad to hear that your ports are now displayed in MAX. And I think it is a good idea to use the outputs analog on the myRIO. As long as you know the needs of the motor controller to order the right moves tension and a control loop in place, you should be good to go.

Maybe you are looking for