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 Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed Loop crashes when used inside Diagram Disable Structure or the error nodes are wired

Hello,

I seem to have a couple problems using Timed Loops:

 

First, I put a Timed Loop that blinks an LED into the enabled case of a Diagram Disable Structure and the Timed Loop executed once, then the processor halted.

When I removed the Diagram Disable Structure, the application ran fine.

 

Second, I tried using the Error output and input nodes of the timed loop to propagate error from iteration to iteration instead of using a shift register. The timed loop does not execute at all in this case.

 

I've attached three files:

main.vi (runs as expected)

mainBadErroWiring.vi (doesn't run)

mainBadDiagramDisable (runs once) 

 

Has anyone else run into these problems, or is this unique to me?

Any ideas?

 

Thank you. 

   

Download All
0 Kudos
Message 1 of 4
(6,842 Views)

HI Kipp,

 

I will try and replicate this. I will keep you posted.

 

Jaidev

 

Message Edited by Jaidev on 09-22-2008 01:43 PM
Senior Product Manager
National Instruments
0 Kudos
Message 2 of 4
(6,806 Views)
Hi Kipp,

DO you use the LEDs blinking/not blinking as a sign of what works and what doesnt? I talked to the R&D team for this and they say that there might be some features of the timed loop that are not supported. For now I would advise you to go with whatever works. I am sending the code to R&D to evaluate. I am sure shift registers are supported and that implementation should work for sure. 
 
Thanks,

Jaidev 

Senior Product Manager
National Instruments
0 Kudos
Message 3 of 4
(6,766 Views)

Hi Jaidev,

I am using an LED to indicate functionality.  The LED is connected to port F4, and I use the BF Flag Toggle.vi to blink the LED. The BF Flag Toggle.vi just calles the C function "void  adi_flag_Toggle(uint32_t FlagID);". I was testing on custom hardware, but the code I posted to the forum was modified to duplicate the error on the BF537 ezKit using the standard blink vi.

 

I understand the R&D team is working on this, so I'll wait for hear back from them.

 

Thank you,

Kipp

0 Kudos
Message 4 of 4
(6,742 Views)