04-13-2011 11:57 PM - edited 04-13-2011 11:59 PM
I'm trying to replicate a code that acquires temperature data from a temperature sensor using a USB-6009 DAQ. The temperature measurement is compared with several thresholds. Once the temperature exceeds each threshold, a corresponding physical LED and front panel LED will light up. There are 4 LEDs connected to 4 DAQ digital lines.
My question is how to configure the second DAQ assistant Express VI shown below (on the right) to send the signals to light up the 4 LEDs on the breadboard. See picture of the code below:
I couldn't configure the DAQ assistant express VI to accept an input array. I will appreciate any help.
Thanks
Here is the image of the LEDs below
04-13-2011 11:59 PM
Post your actual VI so we can see how your DAQ assistant is configured.
04-14-2011 12:03 AM
Here you go
04-14-2011 12:15 AM - edited 04-14-2011 12:16 AM
Why are you converting your boolean array to a number, than trying to build an array of that?
Your DAQ assistant is set up for a digital output. So just wire your boolean array to that.
I'm not even sure how you got your screenshot to look the way it did with a blue integer datatype input. When I opened your VI, the data input was green, which means boolean, which makes sense since it is set for digital output.
04-14-2011 12:40 AM
The screenshot was from a tutorial. I was trying to replicate it. I couldn't figure out how the blue integer data type input was created on the DAQ Assistant Expresss VI.
So are you saying the tutorial could be wrong? Is there a way to configure the DAQ assistant express VI to accept the blue integer data type array?
04-14-2011 09:56 AM - edited 04-14-2011 09:58 AM
Does the tutorial tell you how the DAQ assistant is configured?
It's possible that however they configured it, they set it for a port output where you write an integer value (such as U8) so that it turns on or off multiple digital lines at once based on the boolean combination of the bits. However, I can't get a DAQ assistant to configure as an entire port. It always comes up as individual lines meaning you have to send a boolean array, as opposed to an integer value.
Maybe it depends on the physical device that you are trying to connect with that determines whether you can write it as a port or as individual lines in the DAQ assistant?
04-14-2011 05:50 PM
No, the tutorial didn't show how the DAQ assistant was configured. They assume that people completing the tutorial are familiar with labview code. Anyways, wiring the boolean array to the data input of the second DAQ assistant worked fine. Thanks for your help.