From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-05-2011 12:26 PM
Hello,
Thanks for your input I really appreciate it.I've attached an updated version of the VI.Could you tell me if any corrections are needed.Again I am new to labview.
thanks
01-05-2011 01:06 PM
also, my uploaded VI is similar in functionality to single point update.VI or the AO write one update.VI?
01-05-2011 11:35 PM
Neither. I don't think there is anything correct about that code. You are building an array, not a waveform and certainly not a single point. Passing an array to the timing function that expects a waveform with timing information is not going to work. It would be silly to be using the DAQmx timing function with a single point write anyway. Show the original code that was calling the traditional function.
01-07-2011 11:19 AM
I've attached the original code...I actually need to convert labview 6 to labview 9, so that was why i was using the DAQ mx functions.So you're saying I should just rather keep the traditional NIDAQ function A0 write one update.VI? origional part of the code is attached
01-10-2011 06:10 PM
Hi lakersrl,
I think the best way to approach this conversion is to let us know what you intend to accomplish with your program. It will probably be easier to modify an example DAQmx VI than to convert your VI from traditional DAQ to DAQmx.
Thanks,
01-12-2011 12:30 PM
would it just be possible to keep the traditional A0 write one update.VI? using A0 write one update.VI to output voltage until device is reset..any DAQmx examples I could modify to do this?
01-13-2011 01:02 PM
Hi lakersrl,
I would try the following example in the NI example finder: Hardware Input and Output » DAQmx » Analog Generation » Voltage » Cont Gen Voltage Wfm-Int Clk-Dig Start.vi. You will have to modify a few things:
1) It doesn't sound like you want a trigger, so you should remove the DAQmx Start Trigger VI.
2) I'm not sure how you plan on resetting your device, but you can do it in LabVIEW. In the example VI, you could have a Reset Device VI right after your loop exits.
01-21-2011 03:16 PM
using AO write one update to write a single voltage value to each of the specified analog output channels..Are there any VIs with NIDAQmx exampes that would do this?
thanks again
01-21-2011 04:10 PM
Would the VI I attached work? for using instead of AO write one update to write a single voltage value to each of the specified analog output channels?
thanks
01-22-2011 12:05 PM
Using the timing function is not necessary since you are writing a single sample. Your code is not like the original since that only did a single write - not continous inside a loop. Look at the shipping example called Gen Voltage Update. And has been already mentioned, If you were using the old function inside a loop, all that you should be doing with the replacement is a single DAQmx Write. All the rest should be done only once outside the loop.