- Posts: 9
- Thank you received: 0
How to blink LED (USER1, USER0, /DONE, /INIT) MESA 6i25
8 years 7 months ago #107143
by CERTIA
How to blink LED (USER1, USER0, /DONE, /INIT) MESA 6i25 was created 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
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.
8 years 7 months ago #107146
by andypugh
Replied by andypugh on topic How to blink LED (USER1, USER0, /DONE, /INIT) MESA 6i25
Just type this at the terminal:
(Nothing happens with the card without being attached to a real-time thread)
(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)
Should turn an LED on
Should turn it off
Code:
halrun
loadrt hostmot2
loadrt hm2_pci
Code:
loadrt thtreads
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
start
show pin
Code:
setp hm2_5i25.0.led.cr0 1
Code:
setp hm2_5i25.0.led.cr0 0
Please Log in to join the conversation.
8 years 7 months ago #107148
by CERTIA
Replied by CERTIA on topic How to blink LED (USER1, USER0, /DONE, /INIT) MESA 6i25
Thank you so much for your fast reply andypugh,
I tried it and it worked perfectly!!
Mervin
I tried it and it worked perfectly!!
Mervin
Please Log in to join the conversation.
Time to create page: 0.098 seconds
