LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Alternating signals

Right, I went through the tutorials, got a thing that almost works.

The problem that I have with my current design (see attachment) is that it works fine the first loop, but then it starts doing weird stuff, i think because of the timing, but not sure?

 

Sorry if someone can't open it because of version restrictions, but currently I can't save in to other versions.

 

0 Kudos
Message 11 of 15
(797 Views)

HI XebeXUC,

 

it works fine the first loop, but then it starts doing weird stuff, i think because of the timing

I think it's because of excessive usage of ExpressVIs… 😄

You use the DelaySignal-ExpressVI several times. Did you read the help for this function? Do you know what each input is used for? Hint: maybe you should think about the "Reset" input of those ExpressVIs…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 15
(792 Views)

Gerd,  I think you are onto something about those Delay Express VI's.

 

Xebe, in your own words, tell us what you are trying to do with those Delay Express VI's.

0 Kudos
Message 13 of 15
(788 Views)

I used a feedback node to the reset after the delay, which seems to work well. Not sure if this is good practice?

0 Kudos
Message 14 of 15
(776 Views)

I'm trying to simulate the valves opening and closing.

 

When a state opens the signal to the valve is delivered directly, then the state remains a few seconds (with the delay) and then decides to go to the next or back to start, depending on the state of the alarm.

 

Each state should remain a certain amount of time.

(I now see that the 'opening' and 'open' state are pretty much the same, but it makes it eassier for me to check where in the process it is and to adjust the timing)

0 Kudos
Message 15 of 15
(774 Views)