LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Archive many traces

Hello,   I  have to archive variables transfered by OPC in a database.

In order to archive one variable i am using these VI: "Open trace.vi", the "Wrtite trace.vi" and the "Close Trace.vi".
But these VI work with just one trace as input....but i need to archive at minimum 3 traces simultaneously...

My question is how could i use these blocks to archive (in the same database and process name) 3 traces or more ?
N.B: I need to indicate that all traces should be archived simultaneously...could you help me please ?

I joined an example of my VI

Samer,
Samer,
0 Kudos
Message 1 of 3
(2,782 Views)

Hi Samer,

if you make your trace vis reentrant, then you can use same in parallel, like shown in the attached picture. If the number of parallel process changed from time to time you can create a vit of it and load it as much as you need it.

Hope it helps.

Mike

0 Kudos
Message 2 of 3
(2,776 Views)

Thx Mike, but it is not what i want...

In fact in your VI every OPC variable will have the same
trace name...and it is not logical...

The VI that i am asking for should archive each OPC variable in a trace and  i would like to generalize my VI for n variables (because if n=100 it is not practical to draw 100 condition sequences).

Then i think i should have a trace table that corresponds to a variable OPC table...and
each OPC variable should be archives simultaneously  in the correspondant trace....

i need to do all this in a one generalized  block...

I hope that you got it....Could you help me ?

Samer
Samer,
0 Kudos
Message 3 of 3
(2,756 Views)