Doug M
2006-08-16 22:10:07 UTC
Khalid, thanks for noticing this, I'll get the example updated. The API for programmatic creation of libraries and shared variables has changed a bit from 8.0 in 8.2, but should hopefully be simpler. If you have LabVIEW DSC 8.2, there is a good example called Library Generation that ships with the module that shows the new API as well as includes some good subVIs for setting all the DSC parameters of shared variables. There are four VIs that can be used for programmatic library and shared variable creation that ship with LabVIEW regardless of the DSC module, but these VIs did not make it onto the VIs palette. They are located at C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Utility\Variable.Attached is a simplified example that shows creation of a shared variable and library regardless of whether DSC is installed.
Programmatic SV Creation.lvproj:
http://forums.ni.com/attachments/ni/170/201084/1/Programmatic SV Creation.lvproj
Programmatic SV Creation.vi:
http://forums.ni.com/attachments/ni/170/201084/2/Programmatic SV Creation.vi
Programmatic SV Creation.lvproj:
http://forums.ni.com/attachments/ni/170/201084/1/Programmatic SV Creation.lvproj
Programmatic SV Creation.vi:
http://forums.ni.com/attachments/ni/170/201084/2/Programmatic SV Creation.vi