01-09-2008 09:26 AM
01-09-2008 11:16 AM
Hello again-
I have included a copy of my modified air valve control vi. I was wondering if anyone could/would take a look at it and tell me if I am going in the right direction with it. I am trying to operate a ratcheting brake lever with Lab View. In order to do this I need to time delay 2 air cylinders. The first cylinder actuates the lever, when it turns off the second air cylinder pushes the release button and allows the first cylinder to retract. I need to incorporate a load cell a physical counter as well, and then log everything to a data file (excel) at a given interval. Any help would be great. Thank you!!
01-09-2008 12:14 PM
Jayberns,
You highjacked the thread.
PLEASE START A NEW ONE!
Jeff,
Do you need any syncrhonization betweem the two digital out lines. Do they need to operate simultaneously, or with a relative delay? You need to have a clear task after your loop for the lower DAQ VI's. You may need to create only a single task for both digital out lines. Sometimes separate tasks will generate errors that the resource is already in use if they try to execute at the same time. You'll have to see if you get errors when you run the code. I don't know what circumstances lead to such an error.
01-09-2008 12:35 PM
Ravens Fan
I do need syncrhonization between the tow digital out lines, they need to be in complete syncrhonization with each outher, they have to operate in this order: # 1 off, the # 2 on, and vise versa. I did try to include a clear task after the loop for the lower DAQ vi, but when I included it, the lines were broken, and I wired it in just as the upper loop was wired. How would I create a single task for both digital lines? It did appear that the upper task would operate just a bit before the lower task, but that was with the higlight execution on.
01-09-2008 12:52 PM
01-10-2008 10:09 AM
01-10-2008 12:18 PM
01-11-2008 09:23 AM
I understand the logic in my program, (mine is the portion with the 4 loop and timing on/off for two air valves) and it works for what I need it to do, but I am trying to add to mine with the logging, load cell read, and the switch count that another programmer built, and I am getting LOST. If someone could take a look at this code and can tell me where I am going wrong, please do. I can't get it to count, and it doesn’t log correctly either. I have yet to connect a load cell at this point so I don't know if that works or not. Feel free to change any code you like and repost it if that can help out. Thank you.
01-14-2008 05:47 PM
Hi Jeff,
When you say that the VI does not log correctly, what about the logging is incorrect? Does it record the wrong values, not enough values, etc.? Also, what does the Current Path.vi do? Since it is not included, the VI will not run without removing it from the block diagram.
I also don't see where the "Counter" variable is ever written. I see that it is read in the logging section of the code, but it does not seem to ever be written. Is it written from another VI somewhere? This could be why the logging is incorrect.
01-28-2008 11:46 AM
When you say that the VI does not log correctly, what about the logging is incorrect? Does it record the wrong values, not enough values, etc.?
The vi starts running the air valve as soon as you hit run. I want to be able to enter in the valid info into a screen before the valves start cycling. I know it needs a a sequence structure to do this, but I am not sure how to make it work in this mannor.
Also, what does the Current Path.vi do? Since it is not included, the VI will not run without removing it from the block diagram.
Current path is intented to bring in the values of load cells when the program is run, not sure that works correctly.
I also don't see where the "Counter" variable is ever written. I see that it is read in the logging section of the code, but it does not seem to ever be written. Is it written from another VI somewhere? This could be why the logging is incorrect.
I think you are correct in that the "Counter" cariable is not written. I was thinking "Count out" was doing that, but like I said new to Labview. Let me try to put something in where it will write it. Sorry it has taken so long to get back to this, busy in the lab running tests.