CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > LinuxCNC (formerly EMC2)


LinuxCNC (formerly EMC2) Discuss LinuxCNC (formerly EMC2) Controlers here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-11-2009, 09:48 PM
 
Join Date: Jan 2009
Location: USA
Posts: 234
CalG is on a distinguished road
New to EMC2, New to Linux Trouble loading SIM files

Hello all (first post)

Having succeded loading Ubuntu Hardy Heron with EMC2 after several days of less than spectacular results, I am working my way around both the OS and the EMC application.

A trouble I am having is when trying to open a SIM file and selecting the option of making a copy so that changes can be made, the file display etc. starts to load up, but before much takes place, the mouse and keyboard freeze up ( well, I suppose the OS locks up, but how to know. (No input, no change) I have to Turn off the power to reset and rstart.

I've used the system monitor application, and have never seen swapfile activity displayed there, just a flat line along the bottom. (Symptom 1?) I have seen the processor indication maxed out with just the sys monitor application active.(symptom 2) Everything else "sleeping". That seems strange.

The entire install is from the LinuxCNC "packaged" live CD. All the other parts of the Ubuntu bundle seem to work fine. Except for the restarts, I see nothing in the /var/message listing. Not that I know what to look for.

Can someone help a newb ?

Gateway E-4200 PIII 700MHz
384 DRAM

Thanks in advance!

Cal
Reply With Quote

  #2   Ban this user!
Old 03-12-2009, 12:39 AM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

I'm not sure what the sim files are, there is a sim version of EMC2 that doesn't need a real time OS, but that is not included with the CD package.

But, the usual cause of the system locking up is having the BASE_THREAD setting in the xxx.ini file too low. This requires the CPU to be interrupted so often it can't get anything done. So, you might try increasing that value until the system is stable. 700 MHz is certainly a workable CPU, but is pretty slow for software generated steps. I use a 600 MHz CPU just fine with external hardware assist, but in that case there is no BASE_THREAD at all, and the SERVO_THREAD is 1,000,000 ns
(1 ms). I think you will have to increase BASE_THREAD significantly to run the step generator on a 700 MHz machine.

The system monitor only sees the NON real time Linux activity, it never sees what is going on in the real time environment.

Swap file activity would indicate you have run out of physical memory, shouldn't be much of a problem in most cases.

Jon
Reply With Quote

  #3   Ban this user!
Old 03-12-2009, 10:43 AM
 
Join Date: Jan 2009
Location: USA
Posts: 234
CalG is on a distinguished road

Jon

Thanks for the reply

SIM files are described as "simulations" that do not require real hardware to be connected. something to get a preview with.
I detect no action at the LPT port with th LED test modual inserted.

Last night after posting this question, I tried the SIM file "Axis-mm" again This is the one that locks up the OS.(yes, It locked up again ;-) Some of the other files seem to behave well. Like "Sim-mini".

Perhaps there is something specific with that files display type or....

I'll keep looking.

Cal
Reply With Quote

  #4   Ban this user!
Old 03-12-2009, 11:44 AM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

I think you need to join the EMC users list on SourceForge. Instructions for joining are on the linuxcnc.org web page. The real pros are much more easily found there. I know certain areas of EMC2 fairly well, and others I know little to nothing about.

First, a sim version of EMC is not SUPPOSED to move anything, so you shouldn't expect any activity on the parallel port. I don't know why a sim version of EMC would lock up a slow computer, as there is no real time part to hog the CPU. I think that the default stepper configs such as stepper_inch or stepper_mm might lock up a 700 MHz CPU, with the stepgen task running at a 50 us interval. I notice that sim_mm also has a BASE_PERIOD of 50 us, but don't know if the real time scheduler is even loaded when you run the sim version. You might try changing BASE_PERIOD to a larger value, maybe 100000 (100 us) and see if that helps.

Another possible trouble has to do with open-GL, the 3D rendering software that supports the Axis preview window. You should run the program "glxgears". If it runs OK, and can be dragged around the screen while running, you should be OK. If it doesn't run, crashes the system, or just covers the screen with thin black lines or other trash, then Open-GL is not working right, and Axis won't run right either.

Jon
Reply With Quote

  #5   Ban this user!
Old 03-12-2009, 11:48 AM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

Originally Posted by CalG View Post
Jon

Some of the other files seem to behave well. Like "Sim-mini".

Perhaps there is something specific with that files display type or....

Cal
Yes, see last paragraph of my previous reply, I think that may be your problem. Axis uses open-GL, the mini interface doesn't. If glxgears also has problems, you need to address that before Axis will work right.

Jon
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-12-2009, 05:50 PM
 
Join Date: Jan 2009
Location: USA
Posts: 234
CalG is on a distinguished road

Jon

Thanks agin for your reply!

Both the Lists and IRC are on my "resource list"

I'll give your suggestions a try this evening
Reply With Quote

  #7   Ban this user!
Old 03-12-2009, 06:39 PM
 
Join Date: Jan 2009
Location: USA
Posts: 234
CalG is on a distinguished road

Jon

Just to let you know I'm trying

glxgears displays 300 to 1000 fps and drags around the desktop without a glitch!

Regards

Cal
Reply With Quote

  #8   Ban this user!
Old 03-12-2009, 09:11 PM
 
Join Date: Mar 2004
Location: St. Louis, MO
Posts: 309
jmelson is on a distinguished road

Originally Posted by CalG View Post
Jon

Just to let you know I'm trying

glxgears displays 300 to 1000 fps and drags around the desktop without a glitch!

Regards

Cal
OK, then. One theory down the drain, then. I have had Open-GL mess up the screen pretty badly, but never cause a complete hang. But, it has been one of the difficulties that people run into.

So, then, I think maybe looking at the BASE_PERIOD in the .ini files of the config that works, vs. the configs that lock up, might be instructive. (Still, if these sim versions really are the EMC sim scheme, they don't use real time at all, so they shouldn't care whatever you have in BASE_PERIOD. So, I'm still confused as to what is going on, here.)

Jon
Reply With Quote

  #9   Ban this user!
Old 03-12-2009, 11:20 PM
 
Join Date: May 2005
Location: canada
Posts: 1,149
cyclestart is on a distinguished road

Yuck ! Probably the most frustrating type of computer problem. Those brutal shutdowns will cause additional problems soon.

Originally Posted by CalG View Post
I've used the system monitor application, and have never seen swapfile activity displayed there, just a flat line along the bottom. (Symptom 1?)
My machine has 512 ram and after some time in a normal session some swap is always in use.
I have seen the processor indication maxed out with just the sys monitor application active.(symptom 2) Everything else "sleeping". That seems strange.
Yes it does seem strange. Wrong even. You might find running the command "top" in a terminal more informative.

Can someone help a newb ?
Maybe but not likely. Some scatter shot troubleshooting;
Install all available updates (but don't accept any system UPGRADE)
If you're using the fancy desktop effects (compiz) shut them off.
Try running with nothing plugged into USB if possible.
Look in System>Administration>Hardware Drivers. Sometimes proprietary drivers help, other times they're a problem (not very helpful I know)
It could be a start-up option command is needed but not sure which one, if any.

As already mentioned, some frighteningly sharp people read the emc-users-mailing-list. The Ubuntu forums are also good, though not if this problem is truly emc specific.
__________________
Anyone who says "It only goes together one way" has no imagination.
Reply With Quote

  #10   Ban this user!
Old 03-13-2009, 05:32 AM
 
Join Date: May 2006
Location: Australia
Age: 40
Posts: 2,205
epineh is on a distinguished road
Buy me a Beer?

I tried installing 8.04 and had problems similiar to what you mention, and looking at your hardware specs I would suggest what worked for me.

I used the 6.06 version of Ubuntu, still the CNC brain dead install version.

All problems gone and the system is rock solid. As far as I know 8.04 is better suited to more modern faster PC's, while 6.06 is better for older PC's.

Another thing that I have read and only just tried is to add a video card and not use onboard video, I have not put it through any tests yet but the whole thing just seems a lot faster and I would expect faster pulse rates, but need to try that out before commenting any further...

Little more RAM wouldn't hurt either

Cheers.

Russell.
Reply With Quote

Sponsored Links
  #11   Ban this user!
Old 03-13-2009, 10:18 AM
 
Join Date: Jan 2009
Location: USA
Posts: 234
CalG is on a distinguished road
More disciplined

Last evening the emc program was asked to perform. And it did!

Lights blinked on the test module placed on the LPT port, and my small benchtop O-scope showed all sorts of activity on the pins. (not the 0-scope app. contained in emc) .

That's good!
The tkemc display panel was used and arcspiral.gnc was used for this tsting.

Perhaps the more demanding graphics of the other display is the problem.

On the road to find out!

Cal
Reply With Quote

  #12   Ban this user!
Old 03-13-2009, 10:23 AM
 
Join Date: Jan 2009
Location: USA
Posts: 234
CalG is on a distinguished road

Russel

There is an ATI "Rage 128" video adapter in this system.

I hope that's good ;-)

Cal
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TROUBLE W/EMC2 UBUNTU 6.06 DOWNLOAD Gads LinuxCNC (formerly EMC2) 2 01-22-2008 08:10 PM
Having trouble loading program using Mastercam"s Cimcov5 in my Haas Robert Timby Mastercam 3 01-19-2008 05:25 PM
Mach 2 not loading files JFettig Mach Software (ArtSoft software) 3 11-10-2007 03:35 AM
Getting started with EMC2, Linux, etc..... Chris D LinuxCNC (formerly EMC2) 6 11-04-2007 10:05 PM
viewing .dxf files Linux Breaker OpenSource Software 0 10-01-2006 05:14 PM




All times are GMT -5. The time now is 05:33 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361