ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Some DSC developing relating questions

Hi,
I am new with DSC and have some questions relating to building the custom periodic I/O DSC server:
1. After building the custom VI and implementing it as an I/O DSC server, I found there are some mistakes inside the custom VI. I would like to modify it and rebuild it. But all of the shared variables are bound to this server. What I did is I deleted and removed these variables and rebuild them again. It takes a lot of time when I want to  modify this custom VI. Is there anyway to avoid it?
2. To communicate with the custom VI, I use some controls and indicators. But to program a VI sometime I need to initialize or change the value of controls. But the guidelines for creatin a data access VI, I cannot use the local variables, property nodes, or control references for those controls need to be public. I would like to know if there is any solution to program effectively in my situations?
 
Thank you,
Thang
 
0 Kudos
Message 1 of 3
(2,433 Views)
I want to provide more information for my second question:
For example:
I need to control a valve, and the status of the valve will be save into a config file. If the next time I run the system, I want to load the status of the valve and update it to the control. I cannot do this withou using local variable or property node.
Thanks
0 Kudos
Message 2 of 3
(2,431 Views)

Hi - I'd like to clarify the issue you are having in question #1.

Here's what I think you are doing:

1.  You write a VI with some controls and indicators wired to the VI's connector pane.

2.  You use the DSC "create periodic I/O wizard" to create the server VIs.

3.  You open an empty project and right-click "My Computer" and select "New->I/O Server".  You then select "Custom VI - Periodic" from the list and click "Continue".

4.  You see the name of the VI you created in step 2 under "configuration name" pulldown and click "OK".  A new library appears in the Project Explorer called "Untitled Library 1". 

5.  You click the "plus" and see a globe on a hand icon with the name "Custom VI - Periodic1" or something similar related to your VI name.

6.  You right-click on "Untitled Library 1" and select "create bound variables".  You then navigate down through the tree structure to your server inputs and outputs and select them and add them and then click OK.

7.  The Multiple Variable Editor pops up showing the new variables.  You click "done" and see the new variables listed in your project explorer window.

8.  You use these variables on your Client front panel by dragging them from project explorer onto your VI front panel where they work ok.

9.  You want to make changes to the VI server, and rebuild it, and update your Client VI.  Rebuilding the VI server is no problem.   I don't think you will have any problems as long as you haven't added or changed any variable names.   If this is what your question #1 is about, then there are several different ways to deal with this using the multiple variable editor, or the front panel mass binding editor.

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