Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Analog Inputs for NXP(Create an analog input in forte to run in NXP)
Analog Inputs for NXP [message #1862744] Tue, 26 December 2023 13:45 Go to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Hi, its possible to create the program to use analog inputs in forte?
Re: Analog Inputs for NXP [message #1862751 is a reply to message #1862744] Wed, 27 December 2023 15:48 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

normally yes
Re: Analog Inputs for NXP [message #1862756 is a reply to message #1862751] Wed, 27 December 2023 18:49 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Have some example to make access to analog inputs in NXP??
Re: Analog Inputs for NXP [message #1862757 is a reply to message #1862751] Wed, 27 December 2023 18:51 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Do you have some examples to create this access analog pins of the NXP microcontrollers? I made the GPIO, but i dont find the analog;
Re: Analog Inputs for NXP [message #1862776 is a reply to message #1862757] Fri, 29 December 2023 08:30 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

I don't have any NXP microcontroller so sorry I can not help you here. But it should be similar to GPIOs. Maybe the code for Wago Kbus modular can serve as inspiration.
Re: Analog Inputs for NXP [message #1862780 is a reply to message #1862757] Fri, 29 December 2023 09:24 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

I don't have any NXP microcontroller so sorry I can not help you here. But it should be similar to GPIOs. Maybe the code for Wago Kbus modular can serve as inspiration.
Re: Analog Inputs for NXP [message #1862811 is a reply to message #1862780] Fri, 29 December 2023 18:37 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
Problem solved. Thanks for the help.
Re: Analog Inputs for NXP [message #1862813 is a reply to message #1862811] Fri, 29 December 2023 22:04 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

Do you have any feedback for us and other 4diac users who may face similar issues?
Re: Analog Inputs for NXP [message #1862828 is a reply to message #1862813] Sat, 30 December 2023 18:48 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
In the case Alois, i dont adjust the software in the right way, using GPIOS and analogs input. I have problem when i cast the value to BOOL to WORD because in the nxpDigitalHandle.cpp the library "../../../core/datatypes/forte_word.h" dont be called. When i put this on my software and made the cast, i can read the analog value off the pin. That's what i did. But now i will change the software to add the analog pins together with the GPIO pins.
Re: Analog Inputs for NXP [message #1862829 is a reply to message #1862813] Sat, 30 December 2023 19:01 Go to previous messageGo to next message
André Soçva is currently offline André SoçvaFriend
Messages: 88
Registered: November 2023
Member
In the case Alois, i dont adjust the software in the right way, using GPIOS and analogs input. I have problem when i cast the value to BOOL to WORD because in the nxpDigitalHandle.cpp the library "../../../core/datatypes/forte_word.h" dont be called. When i put this on my software and made the cast, i can read the analog value off the pin. That's what i did. But now i will change the software to add the analog pins together with the GPIO pins.
Re: Analog Inputs for NXP [message #1862832 is a reply to message #1862829] Sat, 30 December 2023 21:54 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1589
Registered: January 2014
Senior Member

Thx for the feedback. For that you will need to rework the handles to be of WORD or DWORD type. I think you can find an example for that in the Wago modular kbus implementation.
Previous Topic:4DIAC IDE
Next Topic:Error when using dlopen function in ext_modules
Goto Forum:
  


Current Time: Thu May 09 12:54:10 GMT 2024

Powered by FUDForum. Page generated in 0.03671 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top