Search the Community
Showing results for tags 'callback'.
-
Hello, I am trying to figure out, if it is possible to create a native LabVIEW I/O interface to C/C++ code, that is using the I/O functions through callbacks. The scenario is as follows: I made a toolkit to process multimedia formats and (so far only) video codecs, it is using internally FFmpeg shared objects (DLLs or SOs, further just "DLLs"). They way the FFmpeg DLLs access I/O is through callback mechanism. Following all happens in the wrapper. If I want the toolkit to read data from some I/O like network or disk, I have to create a session, and part of the session are function pointers to callbacks doing various tasks, one of them is reading data. Anytime a user tries to read more data (1 data packet), he forces a call to the session demuxer, that further uses the I/O callback so long, until it parses one packet/hits EOF/corrupt data/etc..., now this works nicely if you want to provide data through standard means like video file or stream URL. Since the capabilities of FFmpeg allow for example (de)muxers and codecs for images, I thought it would be cool to give the user possibility to supply his own data, that he reads via LabVIEW from database or whatever. Not just limit the usage of I/Os implemented inside the DLLs. All I know, is that I cannot use VIs as callbacks inside C/C++ code, so the only way is to somehow "decallback" the implemented I/O mechanism.
-
Hello, I try to make application in LV which will start from TS and will receive callbacks from TS as standard UIMessage. All examples which I found was when LV application started TS and then register callback. This is in “simple UI example”. But I want to lunch panel after sequence in TS was started and then register callbacks. Normally to register callback “Application Manager” is using, but I don’t know how to connect this control to TS context. Also I try to use TS.IEngine obcject and connect this with TS via RunState.Engine but still nothing. Could anyone help me to move next step? This is my simple application example. Thank in advance adn best reagrds. PS: Sorry for my eng.