07-10-2013 11:20 AM
The loop doesn't seem to be working for me. I have ran it a couple times but can't seem to find the problem. The output value is also not the same. It also does not run continuously, for me. I even went through the block diagram and it looks like it should work, but I can't seem to see why it doesn't.
I also attached the pump_repeat file you sent me. I may have misdownloaded it. So I want to see if you can open it on yours and see if it has the same issue. What I did when you sent me the file was: I downloaded the statemachine.ctl from you and saved it. Then I opened the vi with a reference to the statemachine.ctl. See if you have the same issue.
If anyone can offer some insight that would be great!
Thank You
07-10-2013 12:09 PM
@Jerome1288 wrote:
The loop doesn't seem to be working for me. I have ran it a couple times but can't seem to find the problem. The output value is also not the same. It also does not run continuously, for me. I even went through the block diagram and it looks like it should work, but I can't seem to see why it doesn't.
I also attached the pump_repeat file you sent me. I may have misdownloaded it. So I want to see if you can open it on yours and see if it has the same issue. What I did when you sent me the file was: I downloaded the statemachine.ctl from you and saved it. Then I opened the vi with a reference to the statemachine.ctl. See if you have the same issue.
If anyone can offer some insight that would be great!
Thank You
Weird. I didn't have any problem opening the VI and the .CTL. I made a small change to the shutdown condition in the new VI I am attaching with this post. In your pump data picture, when you say your VI, you are referring to your VI from your original post?
07-10-2013 01:15 PM
Yes that is correct.
Also, when I change the frequency, it's supposed to revert back when I stop and then start the vi again, right? But if I change it while the vi is running, nothing happens to the output...
Sorry for all the trouble.
Thank you so much for all your help.
07-10-2013 02:13 PM
@Jerome1288 wrote:
Yes that is correct.
Also, when I change the frequency, it's supposed to revert back when I stop and then start the vi again, right? But if I change it while the vi is running, nothing happens to the output...
Sorry for all the trouble.
Thank you so much for all your help.
Ok, I made a small mistake on the code. That's what happens when I write code in a hurry 🙂
Go ahead and wire the frequency wire through the "running" case.