Hello all,
I am trying to create analog output from my NI 4461 Analog I/O card and change the voltage for each iteration of my loop. I initially thought I would use the DAQmx commands to create the channel, configure timing, write the waveform, play it, etc. without a task. However, I would run my code, it would show no errors, yet it wouldn’t change the output voltage.
I did not initially use a task because I didn’t think the voltage level could be changed if I used a task for a set voltage. However, I created a task and ran it in NI MAX and I received the correct voltage from my analog output signal so there is nothing wrong with any equipment or connections.
I guess my basic question is: Can I create a task and then adjust the analog output voltage for each iteration of the loop? It seems so simple to do this but I haven’t been able to figure it out.
I attached my code. It also sets a power supply to a voltage and reads it in the first part of the case structure as well as saves values in a .csv file in the second part. Everything works great but the analog output. Sorry for the 2 snips, I don’t think there is a zoom button in labview.
Thanks!