06-30-2009 05:02 PM
I am using LabVIEW 8.5.1 on Windows XP. I recently got a PCI-6703 for use as a voltage reference and supply. I can't figure out how to check the last voltage written to the device, which I assume is needed if I want to ramp up voltage over time.
Basically, I want to do the following:
1: Write a voltage to be set.
2: Start voltage.
3: Read voltage last written and increment accordingly.
4: Stop after reaching desired voltage, leaving voltage on until manually ramped down.
Right now, I'm looking to figure out how to read before I code the ramping into the VI. Any help would be appreciated.
06-30-2009 11:22 PM
07-01-2009 11:11 AM
07-01-2009 11:14 AM
07-01-2009 11:34 AM
07-01-2009 03:47 PM
Hello Isaac,
Thanks for using NI support. So why would the user be aborting the VI? Is this some sort of LabVIEW crash? The reason I ask is because aborting VI's is a very bad practice and should not be used unless extremely necessary. I was thinking you could use a functional global variable to store your data, but this would not work if LabVIEW closes because its memory would be lost. I was also thinking that you could write your data to an ini file and read the value once your program started back up, but this isn't a very efficient method. Could you please give me a little more information about how the program is being stopped and restarted.
07-01-2009 04:08 PM
07-01-2009 10:53 PM - edited 07-01-2009 10:56 PM
I don't think you can do an analog read on your analog output. For one thing, in case you haven't noticed, your card only has analog outputs.
What about buying a DAQ card with analog inputs?
edit - and why would the VI be necessarily stopped? If an error condition occurs, that does not mean you have to stop the VI.