Hello183 Posted September 28, 2021 Report Share Posted September 28, 2021 I want to run a python node to call my python script. The function name is 'setupInf(InfDevice.FTDI_D2XX_MPSSE_SPI, True)', where the 'InfDevice' is an enum type, defined as class InfDevice(CtypesEnum): FTDI_D2XX_MPSSE_SPI = 0 FTDI_D2XX_FPGA = 1 ... My question is how to pass this class type data (InfDevice.FTDI_D2XX_MPSSE_SPI) to the python node? Thank you in advance. Quote Link to comment
Rolf Kalbermatter Posted October 13, 2021 Report Share Posted October 13, 2021 On 9/28/2021 at 9:47 PM, Hello183 said: I want to run a python node to call my python script. The function name is 'setupInf(InfDevice.FTDI_D2XX_MPSSE_SPI, True)', where the 'InfDevice' is an enum type, defined as class InfDevice(CtypesEnum): FTDI_D2XX_MPSSE_SPI = 0 FTDI_D2XX_FPGA = 1 ... My question is how to pass this class type data (InfDevice.FTDI_D2XX_MPSSE_SPI) to the python node? Thank you in advance. It's just an integer value. You can either just pass 0, 1 etc to that parameter or create in LabVIEW an enum that has these values assigned to the individual enum values. What doesn't work? 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.