LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronize two tick count

Solved!
Go to solution

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.

0 Kudos
Message 1 of 13
(4,407 Views)
Solution
Accepted by topic author LOC91

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 13
(4,404 Views)

Hi,

I'm confused too. What is your goal?

 

Simyfren

0 Kudos
Message 3 of 13
(4,399 Views)

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

0 Kudos
Message 4 of 13
(4,386 Views)

My code is only example to everyone easy to visualize my question.

thank you very much.

0 Kudos
Message 5 of 13
(4,380 Views)

Major recommendation: Go to a LV training class - your code makes a lot of very fundamental mistakes

 

  1. You don't need sequence structures, use dataflow
  2. You don't need tick counts, use the real time 
  3. You don't need all the timed structuresif the timing is that tight you shouldn't be running on PC.

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 13
(4,377 Views)

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/main.xhtml

LabVIEW Wiki on Training http://labviewwiki.org/LabVIEW_tutorial#External_Links

 

But vision is a whole 'nother beast.

Message 7 of 13
(4,369 Views)

Excellent! I'll keep this post bookmarked.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 13
(4,359 Views)

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.

0 Kudos
Message 9 of 13
(4,355 Views)

@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.

0 Kudos
Message 10 of 13
(4,351 Views)