I needed to create a single block VI in LabVIEW that behaves like a MATLAB S-Function:
-
Iblah blah blah
11-25-2025 04:22 AM
@thesara wrote:
I needed to create a single block VI in LabVIEW that behaves like a MATLAB S-Function:
Iblah blah blah
Somehow, your single-sentence cryptic question just turned into a tome! 😮
This is just getting silly again, as we had in your earlier question.
If you want to implement it in LabVIEW, why are you constantly talking about DLLs? Who writes these requirements?
What step of these instructions are causing you problems?
11-26-2025 03:19 AM
Implementing something simmiliar to s function on labview so that we have three tasks
11-26-2025 03:21 AM
Implementing something simmiliar to s function on labview so that we have three tasks
11-26-2025 03:24 AM - edited 11-26-2025 03:35 AM
11-26-2025 03:54 AM
@thesara wrote:
Implementing something simmiliar to s function on labview so that we have three tasks
Strating ( run once)Runing( run forever)Termination task ( run after hitting the abort excution button )The excution of tge starting protocol is done via cliking the run button of labview itself there isnt a trigger input or somethingThe whole thing should be one configurable subvi( just one block )
If you hit abort button, then no code can run after that. You are stopping ALL execution, with no exception.
This is a very bad idea to stop code.
When you close Word, do you stop it in Task Manager?
11-26-2025 10:49 AM - edited 11-27-2025 02:19 PM
@dkfire wrote:
@thesara wrote:
Implementing something simmiliar to s function on labview so that we have three tasks
Strating ( run once)Runing( run forever)Termination task ( run after hitting the abort excution button )The excution of tge starting protocol is done via cliking the run button of labview itself there isnt a trigger input or somethingThe whole thing should be one configurable subvi( just one block )If you hit abort button, then no code can run after that. You are stopping ALL execution, with no exception.
This is a very bad idea to stop code.
When you close Word, do you stop it in Task Manager?
The abort execution button in the LabVIEW toolbar is for use during development and debugging. It should never (never ever!) be visible to the end user. (Let's assume that you don't also have your own button labeled "abort execution" on the front panel.). I typically re-use the [X] in the upper right and capture it with a "panel close?" filtering event, discard it, and then do whatever needs to be done.
11-27-2025 07:18 AM - edited 11-27-2025 07:22 AM
11-28-2025 12:39 PM
Since we are not "getting through to you" (you've not shown us any of your code, not given an adequate description of what you want to do, not sufficiently described your environment (hardware platform, OS, software platform, the "constraints" and the real reason for them for your task), and thereby don't provide us a "handle" to point you in the right direction, here is a suggestion:
A well-known and well-described protocol that seems to answer the "general" question of "How to Implement Start/Run/Stop Tasks" in LabVIEW (forget the DLL, and the ridiculous and crippling condition "Without Using Loops in LabVIEW") is to do the following:
A more advanced and newer framework is the Delacor Queued Message Handler (DQMH), easily found by searching for DQMH. I believe it has good "Getting Started With" material.
Since your lack of response to our requests hasn't you allowed us to help you, I hope pointing you to other sources for you to learn proves helpful.
Bob Schor