LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using tab, relay module and datalog

Well, I've looked at the changes and saw that "relaysturing.vi" wasn't done right. Seems like I haven't made a decent subvi...
When I changed it, I keep getting an error in which I deduct that I can't use 2 DAQ assistent with the same channels programmed. So I tried (once again) to remove the relaysturing and simply remove the 4 channels in DAQ assistent 1 and use only channel 0. The Cycle1 switch has been put in an array (of 1 unit) and then connected to the DAQ assistent 1. I did the same with DAQ assistent 2 but with channel 1.
 
I tried it, and it worked. It switched the relays separately and was just what I was looking for. So there's no need to get data outside the while loop. Seems like this problem is solved, thanks 🙂
 
I use LV 7.1, and if I'm not mistaken, there are event structures in it. Never used it, so I have to find out how that works.
 
 
Back to my last reply, I had a new problem. I was thinking of a solution and came up with this. I lose the tick count outside the while loop, and just use the one from inside the while loop. The problem is, that this keeps running. So what I had in mind was to put the changing value in an array and lock the first value I get inside. Using the first value in the array which has been turned in a constant. Whenever a cycle is finished and I want to restart it, I use a button (reset or some sort) to let a new value of the tick count in the array in the first position (overwriting the last value) and using that in my time cycle. Just haven't figured it out how that should be made.
0 Kudos
Message 11 of 13
(658 Views)
Too bad I can't edit my last message, I found a solution to that problem also. By using a step detection, a feedback and a switch I realized it. Yesterday I was looking for it the whole time and today I just made that part like it was nothing. A day between can be really useful.
0 Kudos
Message 12 of 13
(651 Views)
I think this will be the last thing I need before finishing the troubling part. At least I hope so.
I need something which can make my graph appear on another screen.
 
I'll be needing several graphs and I can't put them all on the tab, it'll be too crowded, so I want to use a button that would make the graphs in another screen appear. How does that work?
0 Kudos
Message 13 of 13
(635 Views)