08-26-2008 07:32 AM
08-28-2008 08:47 AM
Hi lars,
Unfortunately, the only way I know to read the AO value, is to read it back in on an analog input line. We would usually recommend reading it through an internal channel "_ao0_vs_aognd" for instance and is described in this KB. Since you have an Analog Output card, you don't have any input channels to read the value.
I believe there is still a relatively simple solution to this problem though. You can use an uninitialized shift register or a global variable to maintain the most recent value you wrote to the analog output channel. This would maintain your current value when you restart the VI. If the VI is closed (removed from memory), the shift register and/or global will no longer maintain the value, so if you need to be able to completely close out of the VI (not simply stopping and starting) then you can consider writing the value to a file (in the shutdown phase of your program) and reading from the file upon the next execution of the VI (during the startup phase of the program). I hope this helps!
08-28-2008 09:01 AM
08-28-2008 09:26 AM
08-28-2008 09:34 AM