How to blink LED (USER1, USER0, /DONE, /INIT) MESA 6i25

More
09 Mar 2018 10:43 #107143 by CERTIA
Hello everyone,

I'm new in this field, and I'd like to know how to use my new 6I25 Superport FPGA based PCIE Anything I/O card (bought it with the 7177).
I installed LinuxCNC on a USB drive that I plugged in my Windows PC. I am reading a lot of docs about LinuxCNC, HosMot2, HAL and others things, but I still don't know how to use this card.
Can anyone please give me advices or a little code to try it out? Like blinking one LED.

Thank you in advance for your reply.

Mervin

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

More
09 Mar 2018 13:10 - 09 Mar 2018 13:11 #107146 by andypugh
Just type this at the terminal:
halrun
loadrt hostmot2
loadrt hm2_pci
(Nothing happens with the card without being attached to a real-time thread)
loadrt thtreads
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
start
show pin
(I am guessing the next pin name, but it will appear in the list created by the command above, and you can use tab-completion to do most of the typing)
setp hm2_5i25.0.led.cr0 1
Should turn an LED on
setp hm2_5i25.0.led.cr0 0
Should turn it off
Last edit: 09 Mar 2018 13:11 by andypugh.
The following user(s) said Thank You: CERTIA

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

More
09 Mar 2018 13:28 - 09 Mar 2018 13:47 #107148 by CERTIA
Thank you so much for your fast reply andypugh,

I tried it and it worked perfectly!!

Mervin
Last edit: 09 Mar 2018 13:47 by CERTIA.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum