06-06-2014 08:04 AM
Hi everyone!
I want to synchronize two tick count. I want two tick count to start count together.I have two tick count in file VI, which was attached. I want to ask if two tick has start counting same time.
thank in advance.
Solved! Go to Solution.
06-06-2014 08:13 AM
In LV you don't "start" a tick count. The counter with which the tick count functions interact is a 32-bit counter that starts when LV does. You can compare the count in two places in your code and can be assured that they are both reading relative to the same starting point.
But I am totally confused by your code. What is it that you are trying to do?
Mike...
06-06-2014 08:18 AM
Hi,
I'm confused too. What is your goal?
Simyfren
06-06-2014 09:17 AM
I have a program but it has two task. the one is assigned core 0, the another is assigned core 1. I acquire two set of data from two task. each set of data include: time and position x axial. I want to plot two set of data in graph. i amn't sure two tick count start counting in the same time. I attach my program
06-06-2014 09:27 AM
My code is only example to everyone easy to visualize my question.
thank you very much.
06-06-2014 09:28 AM
Major recommendation: Go to a LV training class - your code makes a lot of very fundamental mistakes
Mike...
06-06-2014 10:59 AM
Here are some free training for the basics of LabVIEW.
3 Hour Introduction http://www.ni.com/white-paper/5243/en/
6 Hour Introduction http://www.ni.com/white-paper/5241/en/
LabVEW Basics http://www.ni.com/gettingstarted/labviewbasics/
Self Paced training for students http://www.ni.com/academic/students/learn/
Self Paced training beginner to advanced, SSP Required http://sine.ni.com/myni/self-paced-training/app/ma
LabVIEW Wiki on Training http://labviewwiki.org/LabVIEW_tutorial#External_L
But vision is a whole 'nother beast.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-06-2014 11:29 AM
Excellent! I'll keep this post bookmarked.
Mike...
06-06-2014 11:31 AM
can you recommend for a solution? I don't have much time. I want to two task run parallel, synchronize time between them.
Thanks a lot.
06-06-2014 11:58 AM
@LOC91 wrote:
can you recommend for a solution? I don't have much time. I want to two task run parallel, synchronize time between them.
Thanks a lot.
You're not giving us a lot to go on, and you aren't asking your question is an easy to understand way.
What do you need, and what have you done?
You say you need to run 2 tasks in parallel. This can be done the easiest with two while loops. Does this meet your needs? Not sure, you haven't told us more about what is needed and what each loop is doing. Are these analog output tasks? File I/O? UI updating? What hardware are you using? What are your requirements?
Depending on these, and other questions multiple valid design strategies will be suggested including but not limited QMH, State Machines, Producer Consumer, Publisher Subscriber, and Actor just to name a few.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord