LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital output with NI9403 and cRIO9068 - LabVIEW FPGA

Solved!
Go to solution

Hello everyone,

i am trying to send digital output signal using a NI9403 module and a CompactRIO 9068. I wrote a very simple application which i think it's correct and works, also based on the examples that i found using LabVIEW "help". I just placed an I/O FPGA node in the FPGA vi, changed it to "write" and connected it with some boolean controls. I was now wondering if the same result can be obtained using "invoke method" -> "set output data". I tried but i think i have not clear how it should work. In fact, when i run the vi i am not able to control the output signal in this way. 

I am using:

-LabVIEW 2019 and the corresponding FPGA and Real Time modules;

-CompactRIO drivers 19.0;

-cRIO9068;

-NI9403 module.

Thank you for the attention!

 

 

0 Kudos
Message 1 of 6
(744 Views)

As it is a DIO pin, you need to set it to be an output too. DIO pins startup in input mode since that is the safest thing to do. In input mode they are high impedance and not potentially short circuiting an external voltage that may or may not be connected to it.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 6
(728 Views)

Hello rolfk, thank you for the reply. Just to understand more clearly: from the project tree, I had already configured the NI9403 module as "output" right clicking on the module and selecting "properties", where i could set the initial line direction of a channel as output. Is this what you are referring to? Or do i have to change the I/O node into "write" also using the invoke method->set output data? 

0 Kudos
Message 3 of 6
(721 Views)
Solution
Accepted by topic author Enomis

Hi Enomis,

 


@Enomis wrote:

Or do i have to change the I/O node into "write" also using the invoke method->set output data? 


Just change the IOnode to "write" mode using its context menu (aka right-click menu)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(711 Views)
Solution
Accepted by topic author Enomis

If you just use the IO node, then the line will automatically be set to be an output. This might not the case for the method node (would need to dig into documentation again to check), so you would need to use another method to set the output enable.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 6
(706 Views)

Alright, thank you very much to everybody!

0 Kudos
Message 6 of 6
(697 Views)