VI class/Fake Exec State method: Difference between revisions
Added new method page. |
m Added VI Scripting Method Category to page |
||
| (One intermediate revision by the same user not shown) | |||
| Line 11: | Line 11: | ||
|}} | |}} | ||
{{TOCright}} | {{TOCright}} | ||
'''VI.Fake Exec State''' is a [[VI Server#Private|private method]]. It is used to make a VI appear to start or stop running without actually starting or stopping it. A VI that is fake-stopped in this way can be edited, including through [[VI Scripting]]. Clicking the Run arrow on a VI in this state will not restart the VI, but merely "remind" LabVIEW that it is actually running, allowing it to be stopped. If a non-running VI is fake-started using this method, it will become impossible to start or edit the VI until the method is called again with the actual execution state, as clicking the Stop button will have no effect. | |||
==Parameters== | ==Parameters== | ||
{{ambox|text=Parameters Table is incomplete. Please help to add missing information.}} | {{ambox|text=Parameters Table is incomplete. Please help to add missing information.}} | ||
| Line 24: | Line 24: | ||
| '''State''' | | '''State''' | ||
| Yes | | Yes | ||
| | | Using 1 will make the VI appear to be running, and using 2 will make the VI appear to be stopped, regardless of its actual state. | ||
|} | |} | ||
== Uses == | == Uses == | ||
[[Image:Fake Exec State.png]] | |||
Drag this [[VI Snippet]] into a VI. An LED indicator should appear on the front panel. Click the Run arrow, and the VI will appear to stop running immediately, but the LED will continue blinking. | |||
One real use this method can have is when testing things with scripting. If you want to just get a feel for how a certain method or property works, for example, you can wire 2 to Fake Exec State to test it in the same VI. This way you won't need to open a new VI. Keep in mind, however, that as with any private property or method, this is only to be used for experimentation like this, and is 100% <u>un</u>supported by National Instruments, so don't use it for anything important. | |||
== History == | == History == | ||
{{ambox|text=History information is needed. What changes have occurred over previous versions?}} | {{ambox|text=History information is needed. What changes have occurred over previous versions?}} | ||
| Line 44: | Line 47: | ||
== External Links == | == External Links == | ||
{{ambox|text=Add links to external resources that would also help.}} | {{ambox|text=Add links to external resources that would also help.}} | ||
[[Category:VI Scripting Method]] | |||
[[Category:Method]] [[Category: | [[Category:VI Server Method]] | ||
[[Category:Private Method]] | |||
Latest revision as of 22:22, 7 May 2020
| VI Server Method Information | |
|---|---|
| Method ID | 411 |
| Scope | Private |
| Data Name | Fake Exec State |
| Short Name* | Fake Exec State |
| Long Name* | Fake Exec State |
| * Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE. | |
| Owning Class ID | 2 |
| Owning Class Name | VI Class |
| Return Data Type | No return value |
| Invoke Node |
|
VI.Fake Exec State is a private method. It is used to make a VI appear to start or stop running without actually starting or stopping it. A VI that is fake-stopped in this way can be edited, including through VI Scripting. Clicking the Run arrow on a VI in this state will not restart the VI, but merely "remind" LabVIEW that it is actually running, allowing it to be stopped. If a non-running VI is fake-started using this method, it will become impossible to start or edit the VI until the method is called again with the actual execution state, as clicking the Stop button will have no effect.
Parameters
| |
Parameters Table is incomplete. Please help to add missing information. |
| Data type | Name | Required | Description |
|---|---|---|---|
| State | Yes | Using 1 will make the VI appear to be running, and using 2 will make the VI appear to be stopped, regardless of its actual state. |
Uses
Drag this VI Snippet into a VI. An LED indicator should appear on the front panel. Click the Run arrow, and the VI will appear to stop running immediately, but the LED will continue blinking.
One real use this method can have is when testing things with scripting. If you want to just get a feel for how a certain method or property works, for example, you can wire 2 to Fake Exec State to test it in the same VI. This way you won't need to open a new VI. Keep in mind, however, that as with any private property or method, this is only to be used for experimentation like this, and is 100% unsupported by National Instruments, so don't use it for anything important.
History
| |
History information is needed. What changes have occurred over previous versions? |
| Version | Change(s) |
|---|---|
| More info to come. |
See Also
| |
Add links to internal wiki pages that would also help. |
External Links
| |
Add links to external resources that would also help. |

