From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control of vi execution from HOST to a vi on target(Not RT target vi)

Hi all,

 

I have application where i want to control execution of a vi in target(its not a FPGA target vi). For example, when i press "START" button in HOST, vi in target must run and upon pressing "STOP" in host, vi in target must wait(stopping execution and waiting for START command from HOST).

 

Im using cRio 9039.

 

0 Kudos
Message 1 of 3
(1,943 Views)

Hi siddu,

 

when i press "START" button in HOST, vi in target must run and upon pressing "STOP" in host, vi in target must wait(stopping execution and waiting for START command from HOST).

To have a VI react on an event in your host VI you need two things:

  1. a VI already running (and not quitting execution!) on your RT target, being able to receive commands from host VI
  2. a host VI sending commands to your RT target VI on those events

Do you have both?

(As you already named "STOP", "WAIT" and "START" actions for your RT target I recommend to look for statemachines to implement those "actions"/states…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(1,907 Views)

Thank you GerdW. Implemented with state machine architecture.

 

Best regards,

Siddharth

0 Kudos
Message 3 of 3
(1,802 Views)