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

More
8 years 7 months ago #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 to join the conversation.

More
8 years 7 months ago #107146 by andypugh
Just type this at the terminal:
Code:
halrun loadrt hostmot2 loadrt hm2_pci
(Nothing happens with the card without being attached to a real-time thread)
Code:
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)
Code:
setp hm2_5i25.0.led.cr0 1
Should turn an LED on
Code:
setp hm2_5i25.0.led.cr0 0
Should turn it off

Please Log in to join the conversation.

More
8 years 7 months ago #107148 by CERTIA
Thank you so much for your fast reply andypugh,

I tried it and it worked perfectly!!

Mervin

Please Log in to join the conversation.

Time to create page: 0.098 seconds
Powered by Kunena Forum