04-01-2012 12:15 PM
Hi All.
I'm trying to complete create this very simple VI inside the DSC shared variable engine.
It is just a simple tank fill and empty. It uses a local variable inside a for loop to empty the tank.
When I try to create my custom VI periodic IO server, I get the attached errors.
I have read on previous posts that it may be related to the local variable. I cannot figure out how to move this VI into DSC without the errors. If I move onto the next step and create the bound variables it gives a similar error on deployment.
Hope somebody can help.
It would be great if somebody could post up this program saved as a project and a little step by step on how it was done.
Cheers
Ciaran
04-01-2012 12:41 PM
The secret is to write your VI so you don't need local variables. Your two For Loops are essentially doing the same thing, just one is counting up and the other is counting down. You can combine that into one loop that will add 1 until the value reaches a certain level, then it continues subtracting 1.
04-05-2012 05:58 AM
Raven is correct.
The way to go about this is using the compare and select functions in the programming palette.
Hope that will get you started.