LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DSC 8.0 : How can I develop a client/server architecture

OK, I finally have LV 8.20 here and can test. Unfortunately your solution doesn't seem to work like I'd like to, but I think I found another solution.


Using the Variable Manager you can nicely create new processes and variables and set up all things but which database to log to. What I tried to do now, is to create a small application that binds another database to a exisiting process. Unfortunately it isn't as easy...

You can only define a database for a process on creating a new process using the DSC VIs! (Or did I miss something? I even had a look at the low level VIs but didn't find anything.)

So I did it the hard way:
  • choose a process
  • get a list of all defined variables
  • get all the properties of the variables and store them
  • delete the process
  • create a new process with the same name and attach it to the wanted database
  • recreate all variables
I have some "proof of concept" code up and running, even though I don't think this is the most elegant solution. Now I'll implement a nice interface where I can save the setup to an XML as well...

But maybe there's even a simpler way like some DLL call to attach a database to a existing process?

And please NI, add this feature to the next version! It's just a settings dialog for each process...

Cheers,
    Carsten
0 Kudos
Message 31 of 32
(2,621 Views)
It does seem that the solution above isn't very reliable. It works on one installation, but doesn't on another one... 😞

So I did solve it a little bit different (and more elegant) based on the lvlib solution provided by REM1. I save the process configuration I want to change to a temporary lvlib file. Open this file and change the database property of the lvlib. Save the lvlib back and use the deployment feature to load this new process configuration. After this I delete the temporary lvlib file.

Works fine so far...
0 Kudos
Message 32 of 32
(2,498 Views)