🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

PyBlockFunction Help in Python BLock

User: "Thinh"
New Altair Community Member
Updated by Thinh

Hello Guys,

 

While checking the PyCustomBlock, the skeleton python code  has this section:

 import hwx.activate.apis import numpy def PyBlockFunction(block,flag): 	apis = hwx.activate.apis 	nevprt=apis.vssGetEventCode(block) 	if flag == apis.vssBlockInitializeFlag(): 		pass 	elif flag == apis.vssBlockReinitializeFlag(): 		pass 	elif flag == apis.vssBlockTerminateFlag(): 		pass 	elif flag == apis.vssBlockOutputUpdateFlag(): 		#apis.vssSetOutputData(block,1,y1,apis.vssGetOutputDataType(block,1)) 		pass

I try to find the description and parameter meanings of PyBlockFunction, vssBlockOutputUpdateFlag, vssBlockInitializeFlag but there no info inside the Help

Please share some info if you know.

 

Thanks,

Thinh

 

Find more posts tagged with