Prototrak Plus Retrofit with Mesa 7i77 & 5i25 cards

More
9 years 6 months ago #90868 by new2linux
tommylight, many thanks for all your help! I have read this and tried some very small edits, but I don''t see the change later in the hal file you describe. Below is a section of an earlier post, advise you offered I did not make out so good, could you offer any suggestions? I do not think I used the "replace" anywhere.

""Even after this you will have to edit a bit, but very little. And use the "replace" in gedit or mousepad or whatever text editor you are using.
Do not use replace for replacing 1 with 0 or similar short things, never.
Select a long part that is the same in all the lines you want to replace and just replace with the same thing plus changes.""

If there is a section (or somebody) of hal file that I should study, please point me in best direction.
Many, many thanks!

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #90873 by tommylight
You mean editing the hal file right?
That was for replacing 5i25 config with 7i92 stuff if i am not misstaken.
All the text editors have a "find and replace" feature.
The following user(s) said Thank You: new2linux

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #90877 by new2linux
thanks tommylight!

So really its a edit feather only, and then really more for complex/lengthy editing.

many thanks

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #90888 by new2linux
tommylight, I had to go back and read the post again myself. What do you think?

"""

tommylight wrote: Well, you will have to fix more of those errors there, plenty more to go.
You have to use the replace function for doing such editing, and you have to keep track of what is changing and to what and how that change effects the other parts.
You can learn that in half hour, and it will save you a lot of time later.
Back on topic.
You still have to fix things like
You have scalemax and scalemin to analogout0 and analogout 1 as output for the same axis. That will not work. Same thing with limits and encoders.
It is much easier to do a new config, and place the connectors on the 7i77 in the coresponding places.
I do not understand why you change and edit hal to switch places, just unplug the connectors on the 7i77 and plug them as they should normaly be.
Even after this you will have to edit a bit, but very litle. And use the "replace" in gedit or mousepad or whatever text editor you are using.
Do not use replace for replacing 1 with 0 or similar short things, never.
Select a long part that is the same in all the lines you want to replace and just replace with the same thing plus changes.

"""""

truly, many thanks, for all the help!!

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #90891 by tommylight
That was general advice on editing hal and ini files, your hal and ini were very messy. Did you do a new config? You should start fresh and have things connected in order so you can follow easier what in hal or ini is related to things on the machine and Mesa boards.
The editing part is for examlple:
You have in hal
hm2_5i25.0.7i77.0.0somethinghere
But you need to have
hm2_5i25.0.7i77.0.1somethinghere
So you select everything from start to the last thing that is to be changed, in this case up to the last 0 on the first line. Under it you make the changes so when you hit replace it will replace only the last 0 to 1 in any line containing that phrase.
Where are you at now? Do a new config and try to get thing as close as possible in the pncconfig, then you might need a bit of editing but nothing major.
The following user(s) said Thank You: new2linux

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago - 9 years 6 months ago #90895 by new2linux
thank you tommylight!

I am working the fresh PNCconf, attached are the error files along with the hal and ini files. I starting with (TB5) Drv0 position 3 = position 5 (+REF IN) on amplifier and Drv0 position 4 = position 4 (- REF IN) on amplifier for each axes.

I will try the "replace" method in the morning. If I see anything.

Many thanks!

Edit: I see changes in the .hal file when using "replace" as you suggested, many thanks!
Last edit: 9 years 6 months ago by new2linux. Reason: thanks

Please Log in or Create an account to join the conversation.

Time to create page: 0.396 seconds
Powered by Kunena Forum