- Posts: 4793
- Thank you received: 1480
Hal-Histogram
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
9 years 9 months ago #86557
by Todd Zuercher
Replied by Todd Zuercher on topic Hal-Histogram
I think any thread that it is associated with has to be a floating point thread,
To load a base thread with a floating point use loadrt motmod ... base_thread_fp=1 (With the ... being what ever else what already on that line in your hal file.)
To load a base thread with a floating point use loadrt motmod ... base_thread_fp=1 (With the ... being what ever else what already on that line in your hal file.)
Please Log in or Create an account to join the conversation.
- DomCa
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 6
9 years 9 months ago #86558
by DomCa
Replied by DomCa on topic Hal-Histogram
Hi Todd,
sorry to ask again, but I only have the servo-thread and motmoto is allready loaded.
I am using the axis simulation that is automatically selected when starting linuxcnc.
Can you give me some guidance on how to get a 25ns instead of the 1000ns base thread that I can analyze with the histogram?
Thanks
DomCa
sorry to ask again, but I only have the servo-thread and motmoto is allready loaded.
I am using the axis simulation that is automatically selected when starting linuxcnc.
Can you give me some guidance on how to get a 25ns instead of the 1000ns base thread that I can analyze with the histogram?
Thanks
DomCa
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4793
- Thank you received: 1480
9 years 9 months ago #86562
by Todd Zuercher
Replied by Todd Zuercher on topic Hal-Histogram
The line would be something like this.
but it could look more like this using ini variables.
Code:
loadrt motmod base_period_nsec=25000 base_thread_fp=1 servo_period_nsec=1000000 num_joints=3
Code:
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD base_thread_fp=1 servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
Please Log in or Create an account to join the conversation.
- DomCa
- Offline
- Senior Member
-
Less
More
- Posts: 71
- Thank you received: 6
9 years 9 months ago #86598
by DomCa
Replied by DomCa on topic Hal-Histogram
Thanks Todd,
Your help is realy appreaciated. However, I am getting an error because motmod is allready loaded. I am still using the axis Simulation.
If there is an easy fix, I would be glad.
However, I'm still learning inuxCNC and that goes beyond my knowledge at the moment. I will go on digging into LinuxCNC and come back.
Until then I will assume that the latency I am getting for the 1000ns thread is similar fo the 25ns thread and go on building my CNC.
Thanks
DomCa
Your help is realy appreaciated. However, I am getting an error because motmod is allready loaded. I am still using the axis Simulation.
If there is an easy fix, I would be glad.
However, I'm still learning inuxCNC and that goes beyond my knowledge at the moment. I will go on digging into LinuxCNC and come back.
Until then I will assume that the latency I am getting for the 1000ns thread is similar fo the 25ns thread and go on building my CNC.
Thanks
DomCa
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4793
- Thank you received: 1480
9 years 9 months ago #86610
by Todd Zuercher
Replied by Todd Zuercher on topic Hal-Histogram
You can't just add the line to a hal file. There is already one there somewhere (probably towards the top of your primary hal file.) After you find your existing line add the bits pertaining to the base thread to it. (has to go before the servo_thread part.)
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
9 years 9 months ago #86616
by andypugh
Make sure that only one HAL file loads motmod, and that it is the first HAL file loaded, and that it only does it once.
Replied by andypugh on topic Hal-Histogram
DomCa wrote: Your help is realy appreaciated. However, I am getting an error because motmod is allready loaded. I am still using the axis Simulation.
Make sure that only one HAL file loads motmod, and that it is the first HAL file loaded, and that it only does it once.
Please Log in or Create an account to join the conversation.
Time to create page: 0.156 seconds