12-16-2010 02:52 PM
I don't recognize that function from the Traditional DAQ library.
12-16-2010 03:16 PM
its under functions-- analog output--analog output utilities
12-17-2010 12:39 AM
Do NOT refer to some function by whatever you read on the icon. Use the actual function name.
Open that DAQ function and look at the code to see what it does. There is no such thing as a guide that defines a DAQmx equivalent for each and every traditional DAQ function or VI. If you haven't noticed yet, the traditional DAQ palette has items that are VIs that contain multiple subVIs. You really need to first understand what the original functions did before you start your rewrite. It is not going to be as simple as replacing one with another. For example, the single point update that you ask about would require you to place DAQmx create channel, timing, start task, write, and clear functions on your block diagram. The write function would be the only one placed inside a loop.
12-20-2010 01:34 PM
I've attached write one update VI modified for DAQmx..Could you let me know of any errors?
thanks
12-20-2010 01:39 PM
You haven't specified any channel(s), so you're not going to get a task created. Is that "DAQmx Physical Channel" constant supposed to be a control?
12-20-2010 03:02 PM
no the physical channel is not meant to be a control..
12-20-2010 03:21 PM
besides the channel specifications, does the code look alright to you?
12-21-2010 12:45 PM
besides the channel specifications, does the code look alright to you?
12-21-2010 09:52 PM
I've already given my opinion that it is a mistake to exactly reproduce the traditional DAQ function. All you need inside the loop of your main VI is a single DAQmx Writ set to 1Channel 1Sample.
Keeping what you have may be a problem since you do not clear the task.
12-22-2010 02:24 PM
Hi,
Thanks for posting! Dennis is correct in saying that not clearing your task will be a problem. You can verify this by simulating some hardware and running the VI. The correct way to do this would be to have everything outside of the except the write. This should make sense since the only thing you need to do repeatedly is write your output. You can find an example of this by going to Help » Find Examples » Hardware Input and Output » DAQmx » Analog Generation» Voltage » Cont Gen Voltage Wfm - Int Clk.