LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

laview 6 to 9 data types

I don't recognize that function from the Traditional DAQ library.

0 Kudos
Message 11 of 37
(1,427 Views)

its under functions-- analog output--analog output utilities

0 Kudos
Message 12 of 37
(1,422 Views)

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.

0 Kudos
Message 13 of 37
(1,406 Views)

I've attached write one update VI modified for DAQmx..Could you let me know of any errors?

 

thanks

0 Kudos
Message 14 of 37
(1,375 Views)

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?

0 Kudos
Message 15 of 37
(1,369 Views)

no the physical channel is not meant to be a control..

0 Kudos
Message 16 of 37
(1,356 Views)

besides the channel specifications, does the code look alright to you?

0 Kudos
Message 17 of 37
(1,351 Views)

besides the channel specifications, does the code look alright to you?

0 Kudos
Message 18 of 37
(1,332 Views)

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.

0 Kudos
Message 19 of 37
(1,322 Views)

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.

Sean Ferguson
Application Engineering Specialist | RF and Reconfigurable Test
0 Kudos
Message 20 of 37
(1,309 Views)