02-08-2017 01:34 PM - edited 02-08-2017 01:35 PM
Just delete the control. Right click on the subVI and pick Create Control. Now you know you'll have a control of hte correct type.
By the way, opening, initializing, configure, and close all belong outside the loop. Only keept he stuff that actually changes inside the loop. No need to close and reopen the device every loop iteration.
02-08-2017 01:43 PM
Thanks!
but when I do that, creat control is inactive.
I attached a screenshot
02-08-2017 01:47 PM
Don't click directly on the subvi, right click on the input node (visa resource name)
02-08-2017 02:03 PM
Awesome! it worked, Thank you so much!
Just 1 more question, How can I see the signal at each step of the sweep?
Thanks
02-08-2017 02:27 PM
You would have to have some other instrument to look at it. OScope or spectrum analyzer, likely, depending on how you want to visualize it.
02-08-2017 02:35 PM
Perfect!
I really appreciate it.
Thanks
02-08-2017 04:15 PM
Hi again,
Following your reply, I tried to put those Sub-VIs inside the For loop which iterate.
But, to sweep amplitude, when I wire it, I face error, I attached a screenshot,
In advance thanks for your time
02-08-2017 04:20 PM - edited 02-08-2017 04:20 PM
That doesn't look anything like what I said. The VI's that need to run each iteration of the For Loop belong inside the loop. The VI's that don't bleong outside.
If you get broken wires or errors, then click on the broken run arrow to see what is wrong, or hover over the broken wired. (Basic LabVIEW skills, have you taken the tutorials?)
In this case, wires are broken because auto-indexing tunnels were turned on automatically. Right click on a tunnel to disable auto-indexing. Make it output the last value.
02-08-2017 04:24 PM
Thank you!