05-27-2018 02:28 PM - edited 05-27-2018 02:33 PM
Hi,
The code isn't mine and I have a slight different device (scope) to connect to the computer (with different Visa number)
Don't know how to find the Visa in the block diagram.
Would appreciate if you could advice with some instructional photos.
Thanks
05-28-2018 01:09 PM
In the 0th frame of the stacked sequence structure is a constant "USB0::010893::6000::MY544.." that is wired to the "VISA Resource name of the scope". See photo attached.
You can do 2 things:
1) Change the value of the constant of the constant in the code using the drop down menu as pictured.
2) Change that constant to an indicator. The indicator will appear on the front panel and you can change the address there without needed to look through the block diagram.
Good luck.
05-28-2018 07:36 PM
@cstorey wrote:
2) Change that constant to an indicator. The indicator will appear on the front panel and you can change the address there without needed to look through the block diagram.
There is already an indicator. So just use that. Also be sure to "Set Current Value As Default" after changing the value.
I will throw out a third option: Have code to read the resource name from a configuration file. Then you just have to change a simple text file next tie you change computers instead of rebuilding the executable each time.
05-29-2018 09:42 AM
Right, I meant change to a control!
I think config files are a little ways down the road at this stage 😉