LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you configure a cRIO 9401 for output?

How do you configure a cRIO 9401 module for output?
0 Kudos
Message 1 of 6
(6,689 Views)
Hi CEY,

You have two ways to do this. One is at edit time by going to the properties page of the 9401 and selecting the desired initial line direction. The other way is at run-time, by using the "Set line direction" FPGA method for the 9401 module in your LV FPGA block diagram.

For detailed information about this look in the LabVIEW Help file for the following topics:

FPGA Module >> CompactRIO Reference and Procedures >> Digital Input Modules >> NI 9401

and

FPGA Module >> CompactRIO Reference and Procedures >> Digital Input Modules >> NI 9401 >> Configuring the Initial Line Direction

Also, you can just do a search for 9401 in the LabVIEW Help and you should be able to get to these two topics I mention.

JMota
National Instruments
Message 2 of 6
(6,681 Views)

Hi there:

I have a problem to use cRIO 9401 as an input for RS232. The very same code works perfectly fine in cRIO 9411, but in 9401 it shifting bits. Is there any configuration should be performed.

I will greatly appreciate any help.

Oleg Finodeyev

0 Kudos
Message 3 of 6
(6,477 Views)
Hi
 
I too am trying to set line direction (set output enable) on a NI-9401 module (in a cRIO 9012 Chassis) for SPI purposes using the FPGA I/O Method Node. There is no method for this with the 9401 as explained in the help file. Other methods not available are "set output data" also not selectable/present. Is there a way of coding to get the same functionality as this method?
I am using LV8.5 Dev Suite.
Thanks in advance
0 Kudos
Message 4 of 6
(6,204 Views)
The "Set output data/enable" methods are not available for the NI 9401. For that module you need to use the method "Set Line Direction", which is a method of the module and not the channels. This is because you can only change line direction on a per nibble basis (4-bits).

For detailed information about this look in the LabVIEW Help file for the following topics:

FPGA Module >> CompactRIO Reference and Procedures >> Digital Input Modules >> NI 9401

and

FPGA Module >> CompactRIO Reference and Procedures >> Digital Input Modules >> NI 9401 >> Configuring the Initial Line Direction
Did you try finding a shipping example for the 9401?  I know NI-RIO does not ship an example for the 9401 module, but I'm curious to know if that's something you have already looked for.

JMota
National Instruments
0 Kudos
Message 5 of 6
(6,106 Views)
Thanks JMota
 
I have managed to get it working fine using the module's "set line direction". I have not seen a shipping example (I haven't looked either), but thanks for the reply.
0 Kudos
Message 6 of 6
(6,062 Views)