08-18-2014 11:17 AM - edited 08-18-2014 11:24 AM
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.
08-18-2014 12:06 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-18-2014 01:16 PM
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.
08-18-2014 01:48 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord