LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to synchronize the Acquization part and control part?

I'm still on LV 6.1 so I can't read your vi. I would be happy to take a look at it if you would repost it in 6.1 format.
0 Kudos
Message 11 of 23
(1,238 Views)
The Sub-VIs:
- Steper_SUB.vi
- Setup_6025E.vi
are not included
=> LLB
0 Kudos
Message 12 of 23
(1,129 Views)
Lorand, those two subvis are not very important
for the purpose, and they include some other files.
So I did not upload them.
0 Kudos
Message 13 of 23
(1,129 Views)
John, can you get a labview 7 evaluation version? I am not a full time worker, so the resource is very limited(not easy to find a Labview 6.1). Or you can post
several samples which can demonstrate all the ways to sychronize the DAQ. This is a missing part for many of us.
0 Kudos
Message 14 of 23
(1,126 Views)
You should be able to use the "Save to previous" feature to save your LV 7 vi to LV 6.1. Look under "Save with Options" to find this feature.
0 Kudos
Message 15 of 23
(1,126 Views)
This is a test program. Only check one analog
input.
0 Kudos
Message 16 of 23
(1,126 Views)
All the files here.
0 Kudos
Message 17 of 23
(1,126 Views)
Look at the "red" commentfields in the attached VIs

comment: 2 comments
solution: 4 comments

Is this what you wanted?
Download All
0 Kudos
Message 18 of 23
(1,126 Views)
Thanks a lot Lorand. There is one thing not clear
to me. There are 3 states in this machine. In each
state, the program will stay there about 5 seconds.
In the new solution, how to add this feature?
0 Kudos
Message 19 of 23
(1,126 Views)
I see that Lorand has applied comments and a solution below. I expect that he pointed out that your vi is very hard to read because of the sequence structures and the fact that these are spread out over a wide area. Also, you used a lot of local variables which could be avoided in a true state machine structure.

It appears to me that you have a specific point in your program where you want to retrieve data and at another point you want to write data to port. This is easily accomplished with queues and notifiers. I can't read Lorand's solution (LV 6.1), but I expect that the solution deals with these issues appropriately.
0 Kudos
Message 20 of 23
(1,126 Views)