Prototrak Plus Retrofit with Mesa 7i77 & 5i25 cards

More
9 years 8 months ago #88430 by andypugh

new2linux wrote: 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
9 years 8 months ago - 9 years 8 months ago #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: 9 years 8 months ago by new2linux. Reason: clarify, add notepad code

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

More
9 years 8 months ago #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
9 years 8 months ago - 9 years 8 months ago #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: 9 years 8 months ago by new2linux. Reason: text correction

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

More
9 years 8 months ago #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
9 years 8 months ago - 9 years 7 months ago #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: 9 years 7 months ago by new2linux. Reason: clarify

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

Time to create page: 0.313 seconds
Powered by Kunena Forum