05-18-2020 06:59 AM
Hello,
I have set up a programm with Queue Message Handlers,
1) when I start the programm, it tells me to create a file to save my data into, in which I create one with my column headers
2) my waveforms signals (CH1 and CH2) at 2MHz for 1M samples are logged in continuous mode
3) I press the save signals and the values are saved into my csv data - time, voltsCH1, voltsCH2
4) I then press the stop button to stop my data logging.
It pretty much runs the way I need it, until I change my input values while my programm is running - an example: at Step1 my input frequency is 350Hz, but when I change the input frequency to 550Hz, my values (seen on front diagramm) doesn't change? The same happens if I change my input voltage values, my Urms on front diagramm also stays costant. I would like it to be able to tweak my input values until I have tthe correct ones before saving my signal values into csv.
I'm thinking I might have missed something while programming, can't seem to figure out where what and why it isn't changing. Would appreciate it someone has an idea!
Attached is my vi and subvi-s, separated or in the forum.zip.
Jun
05-18-2020 10:08 AM
05-18-2020 12:30 PM - edited 05-18-2020 12:32 PM
The frequency indicators will update once you are in the CondSig state, while urms will update once you are in the WriteData state. It is not entirely clear how long it will take to get there.
(Sorry, I don't have DAQmx installed and your code is way too convoluted to follow in general. I get the feeling this could all be simplified dramatically. What's with all the hidden and backwerds wires? Why are diagram and front panel maximised to the screen?)