LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i send the 24th element of a cluster as an analogue output of a PXI-6221 card?cluster to analogue output pxi-6221

Hi,

 

I am very new to Labview and Data Aquisition. i have taken over a little project and am a bit stuck. I have an output currently as a 24-element cluster and i want to be able to output the 24th element of the cluster as an anlogue output using the PXI-6221 card. I have tested the card using the measurement & automation explorer and was able to get the correct voltage out etc. I have used a cluster unbundle to seperate all the elements, and i think i need to wire the 24th element to a DAQmx Export Signal block. Is this correct? And if so, any idea how i fill in the parameters such as "task in", "task out", "signal" and "output terminal"??

 

Any help would be very much appreciated,

 

Regards,

 

Kieran

0 Kudos
Message 1 of 7
(2,515 Views)

Hi Kieran,

to output a signal on your card the use of DAQmx is a good way. See the shipped examples for it (in the example finder, search for DAQmx). If all your cluster elements are from the same type you can transform your cluster to an array and use the indey array function to get your element. If all your elements have a name, then you can use the unbundle by name function instead of seeing all elements.

 

See also the Free LabVIEW Courses

 

Hope it helps.

Mike

Message 2 of 7
(2,505 Views)

Thanks Mike that 'unbundle by name' is a great help. I am going to try the tutorials etc now but if you can tell me as well it will help - once i've got the single signal i want to output does this go into the 'signal' terminal or the 'task in' terminal. Any ideas what else i need to input or output to this DAQmx signal exporter block? Or what i need to enter in the attributes on the front panel of the block?

 

Thanks again for any help at all,

 

Kieran

0 Kudos
Message 3 of 7
(2,485 Views)

Hi Kieran,

please see this vi: "Gen Voltage Update.vi". It shows how you can use DAQmx to output data.

 

Hope it helps.

Mike

Message 4 of 7
(2,480 Views)

Thanks Mike but i think you forgot to attach the VI. I think i'm gradually getting there but a VI would be useful to explore,

 

Thanks,

 

Kieran

0 Kudos
Message 5 of 7
(2,478 Views)

Hi Kieran,

you will find it in the Example finder. Search for DAQmx. Smiley Wink

 

Mike

Message 6 of 7
(2,473 Views)

Mike,

 

I think you've just answered my prayers there 🙂 Thanks so much for that, it was just what i was looking for.

 

Many thanks,

 

Kieran

0 Kudos
Message 7 of 7
(2,467 Views)