Prototrak Plus Retrofit with Mesa 7i77 & 5i25 cards

More
21 Feb 2017 14:26 #88427 by andypugh
Just type the commands in as shown (and in sequence).

I forgot to say, use "exit" to end the HAL session.

Do the testing with the cards not connected to the actual machine.
The following user(s) said Thank You: new2linux

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

More
21 Feb 2017 15:13 #88428 by new2linux
andy many thanks! I am seeing after the "setp hm2_5i25.0.7i77.0.1.analogout0" is keyed in, the return key entered, the line reads: "<stdin>:2: setp requires 2 arguments, 1 given" then screen is at: halcmd:.
I have keyed "all in" (from analogout0 to analogout5 ) and tried "start", no good.
I have keyed "all in" (from analogena to analogout5 ) and tried "start", no good.
I reviewed the HAL tutorial, not shore what I am missing.

Where do I try the multimeter at, please?

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

More
21 Feb 2017 16:10 #88430 by andypugh

andy many thanks! I am seeing after the "setp hm2_5i25.0.7i77.0.1.analogout0" is keyed in, the return key entered, the line reads: "<stdin>:2: setp requires 2 arguments, 1 given"


So give it two arguments, like I did in the instructions.

setp - pin - value
The following user(s) said Thank You: new2linux

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

More
21 Feb 2017 16:50 - 21 Feb 2017 16:56 #88433 by new2linux
andypugh, many, many thanks again!! I may be having a "brain fart" but having some difficulty with the "setp" I think. Are the arguments, something that I need to reference or just use any set of numbers?

halcmd: exit
Note: Using POSIX realtime
emc@cnc ~ $ halrun
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 10
<stdin>:1: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 5
<stdin>:2: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 1
<stdin>:3: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 2
<stdin>:4: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 3
<stdin>:5: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 4
<stdin>:6: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 6
<stdin>:7: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 7
<stdin>:8: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 8
<stdin>:9: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout0 9
<stdin>:10: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd:


If you look at these it appears there may not be anything to change, or am I misreading what it says?

many thanks!!
Attachments:
Last edit: 21 Feb 2017 16:56 by new2linux. Reason: clarify, add notepad code

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

More
21 Feb 2017 16:56 #88434 by andypugh
What happens if you simply type exactly what I told you to type?

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

More
21 Feb 2017 17:31 - 21 Feb 2017 17:34 #88438 by new2linux
andypugh, again I offer my most sincere thanks!! this is a set of files as per your post:


setp hm2_5i25.0.7i77.0.0.analogout0 10
setp hm2_5i25.0.7i77.0.0.analogout0 5
setp hm2_5i25.0.7i77.0.0.analogout0 1
.... (and so on)






<stdin>:10: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout0' not found
halcmd: exit
Note: Using POSIX realtime
emc@cnc ~ $ halrun
halcmd: setp hm2_5i25.0.7i77.0.0.analogout0 10
<stdin>:1: parameter or pin 'hm2_5i25.0.7i77.0.0.analogout0' not found
halcmd:
halcmd: setp hm2_5i25.0.7i77.0.0.analogout0 5
<stdin>:3: parameter or pin 'hm2_5i25.0.7i77.0.0.analogout0' not found
halcmd: setp hm2_5i25.0.7i77.0.0.analogout0 1
<stdin>:4: parameter or pin 'hm2_5i25.0.7i77.0.0.analogout0' not found
halcmd:


Many thanks!
Last edit: 21 Feb 2017 17:34 by new2linux. Reason: text correction

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

More
21 Feb 2017 17:47 #88440 by andypugh
You have to do the halrun / loadrt / addf to set up the hardware before you can use any setp commands.

You can't set pins that don't exist.
The following user(s) said Thank You: new2linux

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

More
21 Feb 2017 18:12 - 31 Mar 2017 13:51 #88442 by new2linux
andy, thanks again! I was working on just what you were describing, start with fresh .hal each time, (last command "start") correct?

(this is from earlier andypugh post)
""loadrt hostmot2
loadrt hm2_pci
loadrt threads
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
start
At this point I would expect to see some LEDs on the cards, and maybe a slow-flashing "heartbeat", But without a 7i77 to test with, I can't say for sure.

Get a list of all the HAL pins and parameters Copy this from the terminal and put it in a text file for later reference
show pin
show param

Now open a halmeter to display the encoder counts.
loadusr halmeter

This my current attempt to get it correct: It requires a 2nd value, and the value or number does that have a connection or relative/important? But it looks close.

halcmd: setp hm2_5i25.0.7i77.0.1.analogout0
<stdin>:14: setp requires 2 arguments, 1 given
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 0 10
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 0 5
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 0 1
halcmd: start
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 1 10
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 1 9
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 1 8
halcmd: start
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 2 10
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 3 9
halcmd: ""


andypugh, I offer my many thanks!!
Last edit: 31 Mar 2017 13:51 by new2linux. Reason: clarify

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

More
21 Feb 2017 18:27 #88445 by andypugh
You only need "start" once to start the realtime functions.

Every time you setp an analogout, the voltage on that output should change to the new value.

Have you at least confirmed that all the encoder channels can count?
The following user(s) said Thank You: new2linux

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

More
21 Feb 2017 18:46 - 31 Mar 2017 13:54 #88447 by new2linux
andy, thanks one more time!! Yes the encoders change the value in the Hal Meter. In this current conf, you see below, if you pick the analogout0 it will say 10 at the top center in that tab/window, but now it will change if I pick say analogout2 it will say 8, and stay updated!


<stdin>:14: parameter or pin 'hm2_5i25.0.7i77.0.0.analogout3' not found
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 0 10
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 1 9
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 2 8
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 3 7
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 4 6
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 5 5
halcmd: setp hm2_5i25.0.7i77.0.1.analogout 6 4
<stdin>:21: parameter or pin 'hm2_5i25.0.7i77.0.1.analogout6' not found
halcmd:


I see that "start" is only used as you describe.

Many, Many thanks Andy!!
Last edit: 31 Mar 2017 13:54 by new2linux. Reason: clarify

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

Moderators: piasdom
Time to create page: 0.125 seconds
Powered by Kunena Forum