LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

while loop convert into SCTL in fpga

Hello, I have an vi which is want change the while loop into SCTL. since SCTL inside i can't have a while loop structure. What is the best way convert it? here is my vi.

Download All
0 Kudos
Message 1 of 5
(3,381 Views)

Hi Ambrose,

 

why use SCTL at all?

Why use (while) loops inside the case structure?

Why do you read the DIO pins outside of your loop?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,345 Views)

@GerdW wrote:

Hi Ambrose,

 

why use SCTL at all?

Why use (while) loops inside the case structure?

Why do you read the DIO pins outside of your loop?

 


I just correct my vi. miss use the SCTL. 

The reason i use while loop inside the case structure  (only false case this case is count down)  is because I doing X1 decoding and every falling edge of the signal A the counter will count down. 

I just make correction for DIO pin to put inside the loop d. Do you have an idea how to make this while loop inside case structure to implement on fpga? Since i need  to reduce resource use of fpga. Thank you.

0 Kudos
Message 3 of 5
(3,314 Views)

Hi Ambrose,

 

attach your current VI (converted to LV2014), please!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,299 Views)

@GerdW wrote:

Hi Ambrose,

 

attach your current VI (converted to LV2014), please!


Here it is.

0 Kudos
Message 5 of 5
(3,293 Views)