LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Select a list of tasks from a list and then execute the selected tasks

Hello,
from a list of possible tasks (ie do a wait, write a command ...), I want to select some of the tasks (one task could be selected several times) and then executes the selected tasks.
How can I do that ?
Regards,
Laurent.
0 Kudos
Message 1 of 7
(3,281 Views)
Laurent,
 
since your description of your question is.... well... at least in my opinion not sufficient for an answer, i can only guess. and the guessing a am doing here is, that you want to use a state machine. please take a look into the frameworks delivered with LabVIEW.
 
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 7
(3,277 Views)

Hi Norbert,

sorry for the previous description. I do not think this is a state machine I need.

I have a list of tasks (wait, do a write, do a read ..). Each task is a sub vi.

I want to select out of this list a sequence of tasks (ex: wait, do a write, wait, do a read).

Once I have selected the sequence, I want to execute it.

Laurent.

 

0 Kudos
Message 3 of 7
(3,274 Views)

Laurent,

 

this sounds a bit like the main functionality of TestStand Smiley Very Happy

Nevertheless, perharps you should take a closer look onto the "queued message handler" architecture then. this fits in a more confeniant way.... each message "state" includes one subVI and the array of messages is built in the beginning by your interface.

maybe this helps a bit more Smiley Happy

 

Norbert B.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 7
(3,268 Views)

Norbert,

I did find an example of a queued message handler architecture, the overall structure could somehow fit with my needs but it is mostly dealing with response notifier. May be I did look into the wrong vi ?

Laurent.

0 Kudos
Message 5 of 7
(3,263 Views)

Hello,

the main issue I have is the following: once I select the list of tasks, I have a 1D array of string (ex: wait, do a write, wait, do a read).

Each string correspond to a vi and I want this vi to open when I click on the string (to change the parameters in the vi).

Do some one know how to do it ?

Thanks,

Laurent.

0 Kudos
Message 6 of 7
(3,259 Views)
Laurent,

reading your prerequisites confirms me in my opinion that you should use queued message handler as your architecture. I would create it in a following way:
there should be an "idle" or "User Interface"-case in the architecture which enables you to queue messages into the 1D-String-array which controls the architecture. after hitting a "run"-button, you would disable enqueuing and start off retrieving message after message from the queue executing the appropriate VI for each message until you emptied the queue or a certain termination-message is included in the queue.

hope this helps,
Norbert B.
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 7 of 7
(3,240 Views)