Hello Guest it is March 29, 2024, 08:17:24 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - maxsteak

Pages: 1 2 »
1
Hello,

After searching on the web for implementing the QueryPerformanceCounter, the workaround is using currency type. However, I have a type mismatch issue.
Can you please advice how to make it work?

Quote
    Option Explicit
    Private Declare Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount As Currency) As Long
    Private Declare Function QueryPerformanceFrequency Lib "kernel32" (lpFrequency As Currency) As Long
    Private Sub Form_Load()
        Dim cTimer As Currency
        Dim cTimer2 As Currency
        Dim Freq As Currency
       
        Dim i As Long
        Dim temp As Double
       
        QueryPerformanceFrequency Freq 'get frequency
        QueryPerformanceCounter cTimer 'get first time
       
       
        'do your stuff here stuff
        For i = 1 To 2000000
            temp = Sqr(i / 20 * (50 Mod i) ^ 3.333)
        Next
       
        QueryPerformanceCounter cTimer2 'get second time
       
        Print Round((cTimer2 - cTimer) / Freq, 5) & "s" 'subtract first from second. then divide by freq.
    End Sub


2
General Mach Discussion / Re: Video can't work
« on: January 23, 2012, 02:46:07 AM »
It works much better, thank you.

3
General Mach Discussion / Video can't work
« on: January 20, 2012, 11:29:33 AM »
Hello Sirs,

I tried to connect a webcams that worked well on Windows (tried 7 and XP-SP3) but Mach3 gets the error message VideoOCX (VIDEO) - Decompressor not supported (try 24 bits color depth video format).

I saw another case in this forum that resolve the issue by using USB2 instead of USB1 port. So I tried 2 different computers (I'm sure I'm on USB2), still the same error.

How to resolve this issue?

The webcam is a logitech quick cam pro 9000.

4
General Mach Discussion / Re: coordinate accuracy in position and time
« on: January 18, 2012, 03:20:48 PM »
Hello Langosta39,

Thank you having explained your project.
Have you ever considered to use the toolpath in combination to the captured positions to come out a better instant position?

5
General Mach Discussion / Re: coordinate accuracy in position and time
« on: January 17, 2012, 07:09:43 AM »
Thank you for the comments. I will look at plugin stuffs

6
General Mach Discussion / Re: coordinate accuracy in position and time
« on: January 16, 2012, 10:37:56 AM »
Hello Hood,
Thank you for your time checking this topic.

I'm not sure about your conclusion: if the data from Mach is accurate at a certain level (let say +/-0.1mm at a fixed timepoint), it's enough for my need. However, I have no idea how to do it by script and which accuracy I can get.

7
General Mach Discussion / Re: coordinate accuracy in position and time
« on: January 16, 2012, 09:46:59 AM »
Sure, here's a more detail explanation.

I'm using my CNC with a 3D acceleration captor to test (accuracy, reproductibility, ...). So the CNC is the consign and the captor measurements the results. Then I can compare the results to the consign. The CNC is much more accurate in position than the 3D captor, so from pure static position viewpoint, it sounds safe. However, when we try to analyze the dynamic behavior of this system, it's less obvious.

That's why I'm expecting to collect the path of the CNC head in a log file. My best wish would be to get the (time, X, Y, Z).
-> How?

(Then if possible), can I trust these logged coordinates, at which accuracy? For example, a lag from the real head position compared to the computer real time expected value? Can I quantify it?


I wish it is more clear, no?

8
General Mach Discussion / Re: coordinate accuracy in position and time
« on: January 16, 2012, 08:46:08 AM »
Any reply, even mentioning my questions are not relevant?

9
General Mach Discussion / coordinate accuracy in position and time
« on: January 12, 2012, 12:48:11 PM »
Hello Forum guys,

I'm wondering how to collect (log of t; x; y; z) the real time coordinates of my axis during a program.

Side question: what's the accuracy of this log of coordinates with timestamp compared to the real position? Any risk of delay and mis-position?

Final question: at which frequency I can log these coordinates?


Thank you in advance for your answers.

10
VB and the development of wizards / Re: sleep issue
« on: November 14, 2011, 02:02:05 AM »
Ok, I will hunt the dragon.

Thank you for the answers.

Pages: 1 2 »