Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code to to activate blinking LED on PXIe-4309 front panel #57

Open
nahumpodokshik opened this issue Jun 15, 2023 · 4 comments
Open

code to to activate blinking LED on PXIe-4309 front panel #57

nahumpodokshik opened this issue Jun 15, 2023 · 4 comments

Comments

@nahumpodokshik
Copy link

Hi Tyler,

please advice, if have resource.pxi API to activate blinking LED (yellow or red if possible) on PXIe-1092 chassis front panel when
detected PXIe-4309 card's overheat

thanks and best regards!!
Nahum

@tkrebes
Copy link
Owner

tkrebes commented Jun 23, 2023

Hi,

You can use the pxi.chassis_led_blink_pattern attribute to control the behavior of the chassis LED. I did not find a way to change the color. I would expect the code to look something like the following:

import nisyscfg
from nisyscfg.pxi.enums import ChassisLedBlinkPattern

with nisyscfg.Session() as session:
    for resource in session.find_hardware():
        # if resource is PXI chassis ...
        resource.pxi.chassis_led_blink_pattern = ChassisLedBlinkPattern.ONE_BLINK
        resource.save_changes()

Regards,
-Tyler

@nahumpodokshik
Copy link
Author

Hi,

i tried to run the suggested example and not see any visual effect on our chassis PXIe-1092.
i also tried to change the pattern to THREE_BLINK_BLINK_BLINK and all other combinations, but no effect.

please advice.

thanks,
Nahum

@tkrebes
Copy link
Owner

tkrebes commented Jul 7, 2023

Support for the property was added in PXI Platform Services 20.0. You might check that you have the latest software and firmware installed for the chassis.

I do not have hardware to check, but I believe there should be an option in NI MAX to configure the LED. If it shows up there, then this Python module should be able to programmatically adjust it. Otherwise, I would recommend reaching out to NI directly or asking your question to the NI Community.

Regards,
-Tyler

@nahumpodokshik
Copy link
Author

i have on my systems PXI Platform Services 2023 Q1. i tried manually the NI MAX via "Front Panel Leds" --> Chassis Controller --> and responded properly. If running the script havent reaction. i will ask via "NI community"

thanks,

  • Nahum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants