09-08-2008 11:16 AM
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
09-08-2008 12:32 PM
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
09-09-2008 01:53 AM
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
09-09-2008 03:06 AM
Hi Kieran,
please see this vi: "Gen Voltage Update.vi". It shows how you can use DAQmx to output data.
Hope it helps.
Mike
09-09-2008 03:09 AM
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
09-09-2008 03:34 AM
Hi Kieran,
you will find it in the Example finder. Search for DAQmx.
Mike
09-09-2008 03:45 AM
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