LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you see if this would work??

Bethany, I don't think you want to run the relay switching and the DAQ at the same time.  You would be measuring outputs while the relay is transitioning from open to closed.  Well maybe this is what you want to do.  If so, see bottom part of attached vi.

The attached vi shows how data dependency works to ensure execution flow.

- tbob

Inventor of the WORM Global
Message 11 of 23
(1,803 Views)
Bethany,

The DAQ2 state has a zero value constant as input to the DAQ Assistant - I copied that from your original diagram. If that is not what you meant, I have misunderstood your question.

For user interaction I would usually use the event structure, but I did not want to add another level of complexity to your VI at this stage.

Lynn
Message 12 of 23
(1,802 Views)
Also, I saw where the inputs were for the second relay, but not for the first one.
Thanks,
Bethany
0 Kudos
Message 13 of 23
(1,801 Views)

That's right - I just don't see where the input value of "0" is in the block diagram.

Thanks,

Bethany

0 Kudos
Message 14 of 23
(1,800 Views)

Thanks tbob,

That makes a lot more sense. Thanks for your thorough explanation in the program as well! MUCH appreciated! I'm pretty sure that's exactly what I need! I just need to run it on the right computer and see if it works! Thanks!

Bethany

0 Kudos
Message 15 of 23
(1,796 Views)
Also, I saw where the inputs were for the second relay, but not for the first one. I'm just not seeing them!
Thanks,
Bethany
0 Kudos
Message 16 of 23
(1,795 Views)

I was trying to put the error in/out on my subvi's... where do I find that in the functions box?

Thanks!

0 Kudos
Message 17 of 23
(1,791 Views)
Go to the front panel.  Error In and Error Out are in the Array & Cluster palette since the Error structure is a cluster.  I'm not sure what you mean by you can't see the relay inputs for the first.  Isn't the control on your front panel the input?  You have two controls on your front panel, one is wired to the first digital.vi, and one is wired to the second digital.vi.
- tbob

Inventor of the WORM Global
Message 18 of 23
(1,790 Views)
I added some comments to my version of your VI. You did not have a control for the second voltage originally; it was hard-wired to zero. Go through each state and look at the comments and the "Next State" logic. You should be able to follow what it does. I could not test it because I have no DAQ hardware.

Lynn
Message 19 of 23
(1,786 Views)

Thanks tbob! (Actually I already figured out how to wire the errors in and out. The other question was to Lynn, not you. Thanks for all your help! That helps me tremendously! I also learned quite a bit - so now I can use that to expand the program 🙂

Thanks,

Bethany

0 Kudos
Message 20 of 23
(1,741 Views)