From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-03-2020 08:29 AM - edited 11-03-2020 08:46 AM
I downloaded the plug and play drivers for the function generator 33210A from the ni website: http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=103
This code works fine. The only issue is that i want it to work continuously. I want to be able to change the amplitude, frequency and Waveform without stopping the program. So I assumed putting it on a while loop should do it. Unfortunately when i run the program on a while loop the outputs go all wrong. I can see the meter display changing the values when i change them from the program but the values been output are completely wrong. Any one experiencing the same issue??
Solved! Go to Solution.
11-03-2020 11:43 AM
11-03-2020 11:46 AM
I believe the problem is that the main setup VI you're running there has many different setup options and sends them all each time it runs. I have used a 33120A before but not recently, and I seem to remember that some things can change "live" with no problems, like voltage, and others cause the output to completely reset. And you're doing this as fast as your communications bus allows, which is another way to mess it up.
I recommend the following:
You'll probably find that one or more of the settings will still cause a twitch (I'm guessing the "waveform type", since switching from Sine to Triangle or whatever will be a big change) but since you are only changing one setting at a time, and not trying to change them 1000 times a second, it'll behave better.
11-04-2020 01:35 PM
Guys,
Thanks a lot for you help. Actually i was able to do what i wanted. Apparently there was one thing making crazy the meter. so i just needed to take that out to the loop.
the waveform function and the units have to be out of the loop. the rest of it can stay inside. So basically I rewrite the whole program without all the sub vi and make it one single program.Thanks again.