LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my UART Channel selection not say (ASRL1:: INSTR) after the channel?

I have noticed on the youtube demo that the UART configuration screen has (ASRL1::INSTR) after A/UART in the channel box.  My UART configuration box only has A/UART ( ), with nothing in the parenthesis.  I think that is causing my LCD display to not work properly.  Can anyone tell me if I have failed to configure something properly?

 

Thank you!

0 Kudos
Message 1 of 15
(4,000 Views)
I don't know what video or configuration box you are referring to but you may be displaying an alias instead of the canonical name (ASRLn::INSTR). Look at the properties in MAX.

Provide details on 'not work properly'.
0 Kudos
Message 2 of 15
(3,985 Views)

When I use my LCD display with an example program from the NI website, the LCD displays the text and works properly.  When I double click the UART device in the Block Diagram (from the NI example program), it says it is configured to channel B (ASRL2::INSTR).  But when I try to write my own simple program, or even duplicate the NI example program, the LCD will not work.  When I double click my own UART device in the block diagram, it only says that I am configured to channel B ( ), without the same text in parenthesis.  I'm not positive that is the problem, but it's the only thing that I can find that's different between my program and the example NI program.

0 Kudos
Message 3 of 15
(3,974 Views)

Hi nephite,

 

we STILL don't know which "example program from the NI website" you are referring to…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(3,961 Views)
Or what you did to modify it. There is no UART function so we have no idea what you are double clicking. And, what is on the front panel of subVI is not really relevant. On the block diagram of the main VI, you would have a VISA Resource Namr control/constant that you select the actual resource from its pull down menu.
0 Kudos
Message 5 of 15
(3,958 Views)

I went to this website: www.ni.com/academic/myrio/project-guide-vis.zip:  which automatically downloads a zip file with sample programs for the myrio.  In section III of the zip file there is a folder entitled LCD (UART) demo.  Inside that folder is a project file and the file Main.vi.  Running that sample program worked for my LCD display.  In the Block diagram of the Main.vi, there is the UART symbol where it was placed in the code.  Double clicking it allowed me to see which port it was connected to etc.  

 

When I drop my own UART in my own program and double click it to configure, there is a difference in the ports.

0 Kudos
Message 6 of 15
(3,934 Views)

See now we know that you are working with myRIO and LabVIEW.

And you have started going throgh the project guide examples. 

 

You know the old saying: A picture says a 1000 words ?

If you what to explain something in LabVIEW a picture helps a lot.

 

If you open MAX and expand your myRIO under remote systems, what do you see under Devices and Interfaces?

 

This is what I see:

NI-MAX myRIO.png

0 Kudos
Message 7 of 15
(3,924 Views)

This is what I see:

Labview Resources.jpg

0 Kudos
Message 8 of 15
(3,908 Views)

And how does your configure UART look like ?

 

0 Kudos
Message 9 of 15
(3,898 Views)

I have clicked on everything under 'Devices and Interfaces' and I cannot find a UART configuration option. 

0 Kudos
Message 10 of 15
(3,889 Views)