LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extend program functions in run time

Hello,

 

i am not sure how to describe the problem,

but i developed a program that logs plc data.

this plc data is collected by an opc server,

i use the dsc-module to log the data  in a citadel-database.

but it is very static because it only logs the variables that i configured before in my project settings.

My program should give the user the possibility to add more variables while running the application.

How can i do that.
It is a general problem for me.
Another example: You use the the "Write to Textfile"-VI,

you can wire it to one source etc. But how did i develop a program that gives the end-user the ability to

to add more parallel "Write to Textfile"-Functions. 

I hope you understand what i mean, my english is not so good.

 

greets

manuwestern

 

Here an example: You see it is static, because it only write 3 variable-values, but the end-user should have the ability to add a new tag-writer while running the exe-application, without to modify the sourcecode.

 

Unbenannt.jpg

 

0 Kudos
Message 1 of 4
(2,330 Views)

Use a table for the user to enter value and name pairs, then for all rows in the table (using a for loop) write the values one at a time.

0 Kudos
Message 2 of 4
(2,313 Views)

I know this solution, but it is not parallel only sequential.

The Loop only performs one "Tag Write" per Iteration. 

So the "Tag Write" process for Tag1 is stopped until the Loop repeats.

0 Kudos
Message 3 of 4
(2,295 Views)

@manuwestern wrote:

I know this solution, but it is not parallel only sequential.


Only if you code it that way.  I was suggesting putting a for loop, in your while loop.  Also if you configure the for loop to have iteration parallelism it won't happen sequentially.

0 Kudos
Message 4 of 4
(2,281 Views)