LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

No changes in output despite changing input values

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

0 Kudos
Message 1 of 3
(2,045 Views)

Hello,

Can you share all your DefTypes along with the VIs please ?

 

If a VI returns an error, nothing happens. You need to display a message or stop the loops or else. So my advice is to check if an error appears which will prevent a new acquisition.

I did not see anything else wrong

Yddet

0 Kudos
Message 2 of 3
(1,999 Views)

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?)

0 Kudos
Message 3 of 3
(1,984 Views)