Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

driver initializes by itself

Good day. Im the one who posted the inquiry on GPIB missing card error. thanks for your reply.  However, I have another problem.  The driver that I have downloaded from your website for SR850 lock in amplifier by Stanford Research Systems initializes by itelf eventhough I have save the changes I desired and make those settings to be the default.  That is, I set the parameters on each of the functions e.g. line notches, displays, etc., make it as default (from Operate), then, save it.  The problem is when I run it, all of the initial settings were returned to its original values e.g. line notches, displays, etc., therefore, i cannot use the getting started VI. please help me with this. thanks.
 
carljr
0 Kudos
Message 1 of 10
(4,736 Views)
I'm not sure I understand. You've modified the Getting Started VI to have a different set of front panel defaults and after you run it, the front panel controls change to something else? Does this happen when you just run the VI by itself or when you call it from another VI? I don't see anything in the driver that will change the front panel controls after being run by itself. If you're calling it from another VI, there's no real reason to change the defaults. You should be specifying the values in the main VI either with constants or front panel controls there. Even when you don't need to change the defaults, it's often a good idea to explicitly define them in the main VI just so it's easier to understand how the instrument is being configured just by looking at the main program.
0 Kudos
Message 2 of 10
(4,722 Views)
No. What I mean is, when I change the settings in the front panel, for example, the line notches (there are 4 options < out, line, both, 2xline>) the default is "line" and I changed it to "both". then, I make it as default, and save it.  However, when I run it, it returns to its original settings "line". The other settings that I have changed also returns to its original settings.  The only thing I can change is the values of parameters, like the start and stop frequencies.  By the way, Im using the driver downloaded from this website and im running the getting started VI which has sub-vis also from this site... thanks a lot for the help....
0 Kudos
Message 3 of 10
(4,719 Views)
It's still a little confusing. Did you change the VI called SR850 _Config.Input? That's the only one that I could find with a "out, line, both, 2xline" setting. Did you also change the Application function VI? If you didn't, then of course your defaults make no difference. The Application  Functions is setting all of the parameters explicitly and it doesn't matter at all what your defaults are. This is expected behavior and the correct way to use the driver. Setting a VI's front panel to some default value is not.
0 Kudos
Message 4 of 10
(4,710 Views)
I have changed the application VI as well as all other sub-VIs and made it as default settings... In fact, everytime I open the VI, the settings I have chosen is already set BUT when i run it, the original settings are still the one being implemented. I wonder why. thanks for the help...
0 Kudos
Message 5 of 10
(4,694 Views)
Why don't you post your VIs.
0 Kudos
Message 6 of 10
(4,687 Views)
thanks for your time.  I have attached herewith the copy of the VI I have changed the settings.  However, the line notches, time constant, and display settings that I have changed was not implemented in the instrument when I run it. again, thank you.
0 Kudos
Message 7 of 10
(4,669 Views)
When I look at the Application Function VI, I do not see any changes to the display or line notches. You have made changes to the _Config.Input and _Config.Display. Run these two all by themselves. Do not run any other VI and see if the instrument responds to all of the different settings. If it does not, see if there is any error generated by the instrument.
0 Kudos
Message 8 of 10
(4,662 Views)
Ive made changes in the _Config.Input and _Config.Display sub VIs. And I also have run it by themselves.  the changes were implemented in the instrument, however, it returns to its original settings (that is, the display and the line notches) when i run the whole VI (getting started VI).  Thats the reason, i post the subject here, driver initializes by itself.  other settings were changed but the others are not. thanks for the help... 
0 Kudos
Message 9 of 10
(4,645 Views)
But like I said earlier, making changes to the default settings makes no difference when you call them from a main that explicitly passes values to the subVI. You changed the default line notches to Both (value of 3) but the application function sets it to Line (value of 1). There is nothing wrong with any of the VIs. You should not have to change any of the default values. You should be writing an application that passes the correct values to the subVI. If you don't want to pass values to the subVI, don't wire anything up to it's inputs. Right now, you have the inputs wired to values different than the defaults. LabVIEW is working exactly the way it's supposed to work. A subVI with default values that always overrides the parameters passed to it would be pretty worthless.
0 Kudos
Message 10 of 10
(4,641 Views)