LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

power control unit interface problem

I'm trying to get my intellegent power control unit running remotely through LabVIEW, but i'm having some slight problems. I want to make it a continiously running program so that the user can turn on or off the power to the outlets until they press the stop button. I've tried looping with a while loop but that doesn't seem to work quite right. Any suggestions?
0 Kudos
Message 1 of 4
(2,625 Views)
When you say it's not working quite right, what exactly do you mean? Are there errors generated, are the user's values not being sent, or something else? A while loop is the correct way to go but without seeing the code, it's hard to say what's wrong with your program. The controls have to inside the while loop and make sure you have error in/error out connections wired. Please provide more details or attach a sample program that demonstrates the problem.
0 Kudos
Message 2 of 4
(2,625 Views)
I apologize, I didn't realize how vague I was being. I am trying to make it so that the front panel will basically mimic the instrument itself. I am not able, however, to do so because when I write the code with a while loop I use 'ok buttons' and 'power lights' and place them on the inside of the while loop. I will turn on the power to a switch and when the loop goes through the first iteration the power light and button will reset itself to the default position (light off and button labeled off) I have attatched the very basics of what i am having troubles with (both front panel and block diagram). Thanks.
Download All
0 Kudos
Message 3 of 4
(2,625 Views)
Here's an example that shows how to do it with the event structure in LabVIEW 7.
0 Kudos
Message 4 of 4
(2,625 Views)