How to blink LED (USER1, USER0, /DONE, /INIT) MESA 6i25
- CERTIA
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
09 Mar 2018 10:43 #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 or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23310
- Thank you received: 4858
09 Mar 2018 13:10 - 09 Mar 2018 13:11 #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 onShould turn it off
halrun
loadrt hostmot2
loadrt hm2_pci
loadrt thtreads
addf hm2_5i25.0.read thread1
addf hm2_5i25.0.write thread1
start
show pin
setp hm2_5i25.0.led.cr0 1
setp hm2_5i25.0.led.cr0 0
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.
- CERTIA
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
09 Mar 2018 13:28 - 09 Mar 2018 13:47 #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
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