05-04-2011 04:21 PM
Hello everyone,
I've been struggling with creating a VI. to display and record freq and some analog channels. I can create a VI to either measure freq or analog but the program slows down once I combine the two. My most recent attempt is to use the producer consumer loop scheme. All seems well with only one analog channel and freq measurement. When I try to convert to use five analog channels I can't seem to get the VI to work. It appears that the data type seems to be a problem with the Obtain Queue function (not totally sure though) since a variant is created. I have never used a variant before and not sure why this data type is created. I have tried setting the data type to DBL but the output of the Analog read function is a 1D array so that doesn't work. Has anyone had similar problems or can point me in the right direction?
The goal is to display the voltage signals in the consumer loop and then save the data in a text file.
Thanks
** I'm kind of new to LabVIEW but have a few VI.s under my belt.
05-05-2011 10:37 AM
Hi there,
If you wire a couple DBL constants into a build array and feed that into the element data type of the Obtain Queue function then your queue type will accept the 1D array that the Analog read function is outputting.
Let me know how that works out for you.