ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help needed with enabling the digital module

Hi,

My current code: Once the captureIT.txt is found, the FPGA target in invoked and data acquistion is perfomed. I have used 20 Analog channels and 1 digital channel for data acquisition code.  

 

But I need to add in a part where if Drive.txt is found, I will have to enable only one more digital module to high and not the rest.

 

Knowing that there can only only one bitstream file, How do I make changes in my realtime vi so that I can perform both the cases by invoking the fpga target once? 

 

Any ideas on how do i proceed? 

 

0 Kudos
Message 1 of 2
(2,553 Views)

Hi ravi_93,

 

I can think of 2 options

 

-Having 2 bitfiles in memory and configure the RT VI with a case structure containing the FPGA Open Reference pointing to one bitfile or the other. 

http://zone.ni.com/reference/en-XX/help/371599N-01/lvfpgahosthelp/forcing_an_fpga_vi_to_download/

 

-Converting the FPGA VI into 2 similar subVIs with the necessary modification and have a case structure in the FPGA VI.

 

Regards

0 Kudos
Message 2 of 2
(2,494 Views)