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();
Type: Posts; User: John Erlandsson
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();
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
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...
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...
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...
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...
Thanks for helping!
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...
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
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...
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...
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...
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...
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...
Doesn't National Instrument supply the appropriate documentation
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...
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...
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...
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...
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...
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...
Thank you!
I will ditch the join function... And i will try a semaphore instead of the vision finished variable...
//John
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...
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...