Search:

Type: Posts; User: John Erlandsson

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    467

    Need help with IPC

    Hi!

    I am writing a C++ lib that wraps around IgH's ethercat api. I intend to use it for industrial automation.

    It works like this:


    Master master();

    DigitalInputModule inp();
  2. Replies
    9
    Views
    5,462

    Youre both right! No need to complicate things. ...

    Youre both right! No need to complicate things.

    I just looked at the problem and thought signal/slot. But the "go to die in a circular buffer" approach is awsome!

    Thank you!

    //John
  3. Replies
    9
    Views
    5,462

    My only experience int this field is Qt's...

    My only experience int this field is Qt's signal/slot.
    Something like that would be awsome, but i want to keep Qt/Boost etc out of this application. (I may want to deploy on an embedded system)

    I...
  4. Replies
    9
    Views
    5,462

    The chain works that way. What I need is a way...

    The chain works that way.

    What I need is a way for the socket thread class to tell main that it needs a fresh frame from the pipeline.

    The pipeline has a constant flow of images, but the...
  5. Replies
    9
    Views
    5,462

    Actually it is a pipeline of several image...

    Actually it is a pipeline of several image processors. They all have an in buffer and an outbuffer. The inbuffer is a pointer to another classes outbuffer. The outbuffer of the last processing class...
  6. Replies
    9
    Views
    5,462

    Event handling in threaded C++

    Hi!

    What is the recommended way of raising an event from a threaded member function?
    Preferably a native solution.

    My my main.cpp, I have one class that in a threaded function continuously...
  7. Replies
    4
    Views
    928

    Thanks for helping!

    Thanks for helping!
  8. Replies
    4
    Views
    928

    Bit puzzeling

    Hi!

    I am looking for a good way of assigning a specific bit in a variable the value of a specific bit in another variable.

    For example bit 2 in variable a = bit 5 in variable b.

    Any...
  9. Replies
    12
    Views
    6,256

    I will experiment a bit with the Etherlab Master...

    I will experiment a bit with the Etherlab Master and C++. Got a bit of reading to do as well.

    Thanks for all the input. I will pick this thread up again, when I have more questions.

    //John
  10. Replies
    12
    Views
    6,256

    manasij7479: Thanks for pointing that out. I...

    manasij7479:


    Thanks for pointing that out. I didn't know that you could include just any c lib in a c++ application. I need to do some serious reading on the subject before undertaking this...
  11. Replies
    12
    Views
    6,256

    MK27: I think your point is slowly working its...

    MK27: I think your point is slowly working its way into my head.

    Writing the entire application iń c++(Except the web gui) would be pretty cool.

    I have been reading a lot of mailing lists and...
  12. Replies
    12
    Views
    6,256

    The most commonly used digital output module...

    The most commonly used digital output module EL1004 has a filter time of only 3ms, but Beckhoff has modules with filter times down to 3us.

    Say that my machine has a bunch of inductive sensors and...
  13. Replies
    12
    Views
    6,256

    Hi! Thanks for the links! Yes, The Ethercat...

    Hi! Thanks for the links!

    Yes, The Ethercat master is a kernel module. That module creates a /dev/EtherCat0 device.
    You then access that device from your custom application, using the Etherlab...
  14. Replies
    12
    Views
    6,256

    Hi! I don't know anything about working with...

    Hi!

    I don't know anything about working with device drivers. Can anyone recommend a good read on the subject?
    The Etherlab api is well documented, and quite easy to use. So reading data from the...
  15. Doesn't National Instrument supply the...

    Doesn't National Instrument supply the appropriate documentation
  16. Replies
    12
    Views
    6,256

    Linux Automation project.

    Hi!

    I am about to start working on a new project, and I am in way over my head. I was hoping that you guys could point me in the right direction as to what kind of IPC to use, and perhaps to a...
  17. Replies
    12
    Views
    10,804

    Hello again! This is actually turning in to...

    Hello again!

    This is actually turning in to something good... I am still working on the function, making it find the center of a rounded corner and such. I also prepare the contour before calling...
  18. Replies
    12
    Views
    10,804

    Sorry about the poor description. English is not...

    Sorry about the poor description. English is not my primary language...

    I have every point along the objects contour.
    The points are extracted from the image using a function called...
  19. Replies
    12
    Views
    10,804

    Ok.. Here is what I came up with: First I'll...

    Ok.. Here is what I came up with:

    First I'll explain the opencv specific variables:
    CvSeq = A struct containing my contour, from which i can extract CvPoint objects
    CvPoint = A struct containing...
  20. Replies
    12
    Views
    10,804

    I tried the convex hull algorithm included in...

    I tried the convex hull algorithm included in opencv. But i could not find a way to limit it to only four points.




    Here is an extreme example of my polygon. (This polygon is filled, but my...
  21. Replies
    12
    Views
    10,804

    Find corners in array of points

    Hi!

    I have an array of points, describing a rectangular shaped polygon. And I am looking for a function to extract the four corners of that polygon.

    The difficulty I am facing is that the...
  22. Replies
    5
    Views
    2,197

    Thank you! I will ditch the join function......

    Thank you!

    I will ditch the join function... And i will try a semaphore instead of the vision finished variable...

    //John
  23. Replies
    5
    Views
    2,197

    Thanks for replying. I do realize the problem...

    Thanks for replying.

    I do realize the problem in joining something that doesn't exist.
    But I cant find an alternative.


    void *ethercat_cyclic_function()
    {
    printf( "Starting cyclic...
  24. Replies
    5
    Views
    2,197

    Joining thread before creating it

    Hi!

    I am new to the forum, and kind of new to c programming.

    Came a cross a problem while writing my first multithreaded program:


    while( cyclic task )
    {
    some stuff...
Results 1 to 24 of 24