LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic control

Hi all ,
 
I have labview 7.1 ,
 
Is there anyway to create a new event to the event structure  while a vi is running ?
The reason i want to this because my main vi has several controls but in the future i want the program to grow ,
Without touching the vi.
Any idea will be appericated
 
Doran

Message Edited by Doran on 07-25-2006 08:03 AM

0 Kudos
Message 1 of 3
(2,635 Views)
No you cannot add events, inorder to do that you would have to edit the vi and the event structure. there may be a way to do this with scripting but I would not go that route because it will probably be broken in the next release.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 3
(2,618 Views)

You cant add functions (without scripting, not suggested) but you can anticipate the use and have a plugin architecture.  Essentially you add the event case handle, leave it blank except have a dynamic function call.  This will be a dummy function, it does nothing.  You should be able to deploy this main vi and change the subvi at a later date without touching the main code.  Its not the best solution but is probably better than nothing if you need a solution.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 3
(2,615 Views)