From: Scott H. <st...@ma...> - 2005-02-14 14:35:13
|
>Hacking the default values in the registry is not only cumbersome because of the differences between Windows versions, but it is also an ugly procedure which in fact changes the default settings a user may have defined in Control Panels, without a clear indication of that fact (and other applications might then work not anymore correctly after you run an OpenG serial driver application). But using the LV config file VIs on the visaconf file to update it before opening each port should give you the ability to set the default values before connectiing to the port. Now it still doesn't solve all the problems since the port will still get a hiccup as the parameters are set while opening but it may make it a bit cleaner. Somewhere I had a set of VIs that opened and set values in the VISA conf file, but it was trivial to set it up again. The file is all set up for the section and value keys of the config files. However it will seriously change the comments in the file. The visaconf file is 'almost' compatible with the default labview config file VIs. Now to get away from using VISA can use a similar method to change the conf file. -Scott |