From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

i go a strange behaviour from PXI 7830R digital output, two of digital output channel goes high when i stop the code...

hai friends,

              I am using PXI 7830R for source 3.4 v from connector 1. when i am executing the code, i am able to control the digital output, but when i stop the execution, channel 3 and 5 output automatically goes to high. how to troubleshoot this.....please help me.....

0 Kudos
Message 1 of 4
(3,372 Views)

Have you tried adding shut-down code to the end of your VI that manually sets all DIO channels low?  When you stop a VI the DIO should stay at the state in which the VI ends.  How are you stopping the VI?  Do you just have a stop button the ends a loop or are you force aborting it?  Also are you stopping the host VI or the FPGA VI?

 

PS.  Duplicate post here 

0 Kudos
Message 2 of 4
(3,356 Views)

Thank you Mr.David,

                                 i am using abort function in RT to stop the FPGA code.... in my code, i can set active high or active low to 3rd and 5th channel....but when i stop the code from RT then the 3rd and 5th channel goes to active high even in previous state these are in active low...when i reboot the RT, these channels are in active high....what is the problem...

0 Kudos
Message 3 of 4
(3,331 Views)

When there is no VI running on the FPGA, DIO lines are set to high impedance.  Depending on what you have the line connected to, you can see different results.  There are two methods I would suggest to avoid this:

 

Instead of aborting your code, stop your FPGA loop with a boolean control.   Then after your while loop ends, have another endless loop that will always write  false to the DIO pins.  See the image for an example:

 

stopFPGA.PNG 

 

Alternately, you can use a pull down resistor external to the FPGA card that will always set the pin to be low if it's in a high impedance state.  

 

Similar to my first suggestion, you can also set a VI to run at startup in order to control the power on state of the device.  See the following KB for more information on this:

 

http://digital.ni.com/public.nsf/allkb/CB2F146DB6B56D29862572640073B57D?OpenDocument 

0 Kudos
Message 4 of 4
(3,303 Views)