LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to get 9870 RS232 working with 9147 cRIO with Scan mode

I'm trying to get a 9870 RS232 module working with 9147 cRIO chassis with Scan mode with some strange results. I see the serial ports in MAX but not the IO ports, but I see the IO ports in my project tree but not the serial ports. I can't seem to find anymore software to shove into either the laptop or chassis so I'm out of clues.

 

0 Kudos
Message 1 of 7
(2,542 Views)

The serial ports are VISA resources accessed through the NI-VISA functions. They do not show in the project tree since they are not accessed through that. The IO points are Scan Engine shared variables. NI Max does not show them since it is not dealing with shared variables. The project does, since shared variables are an integrated component of a LabVIEW project. 
To access your serial port in a LabVIEW program you use the VISA functions. The VISA Configure Serial Port function is likely the first you will want to look at. ViSA Write and Read the next two.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 7
(2,519 Views)

Averna, Thanks for your reply. I had tried VISA configure earlier and all I see is the COM 3 port on the laptop. I still see the ports in MAX though. There's a disconnect somewhere.

0 Kudos
Message 3 of 7
(2,511 Views)

VISA Configure Serial Port needs to be called from a VI that is placed under the device entry for your cRIO device. If you just open it from disk it will open in the MyComputer context, which is your local host computer and it will only recognize the serial ports from your host computer. 

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 7
(2,503 Views)

Hi Rolf, Yes I've seen VIs under the device in sample projects. All I get is a gray'ed out "FPGA target (LabVIEW FPGA not installed on host)". I also see it is installed in my software tree under LabVIEW 2020. so this ends a day with no progress whatsoever. thanks for all your help!

0 Kudos
Message 5 of 7
(2,496 Views)

Hi Andy,

 

I am speculating - never worked with an expansion chassis - but it might be that it is not possible to use NI-9870 in an expansion chassis with-out a compactRIO with an controller.

 

The important point about the cRIO-9147: it it not a stand-alone cRIO but an expansion chassis which you usually use in connection with a full-featured cRIO with an controller (like a cRIO-905x or cRIO-904x). That is where LabVIEW code under the real-time OS will run.

 

You cannot deploy or develop any real-time executable for this expansion chassis.

 

So currently you have no real-time target from where you could "locally" acces the VISA resource of the 9870.

 

One random shot/suggestion:

Did you install the VISA-server on the cRIO-9147 (if that is possible at all). That might make the 9870-VISA resource available over TCP/IP.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 6 of 7
(2,476 Views)

Hi Jens, I have VISA installed and NI-Serial 9870 and 9871 Scan Engine Support installed among other things in the chassis. I'm trying to follow the document "Discover, Configure, and Communicate with NI 987x Modules in Scan Mode". I fail to see the ports in my project tree after I "deploy all". That's where I'm stuck at.

0 Kudos
Message 7 of 7
(2,466 Views)