06-22-2011 06:42 AM
Dear all,
I want to set up a digital input signal as a Boolean function. How can I do that?
I also want to know how I can get Digital output lines which are all in DataAquisition box into different lines on my LabView screen? Is this possible with an array?
Cheers
06-22-2011 07:34 AM
We need more information before we can give you the info you need.
I would highly recommend you run through the LabVIEW tutorials on the main NI website. There are several, depending upon how much time you have.
06-22-2011 01:58 PM
Dear all,
to 1. I only want to transfer an on/off signal (digital in) from a machine into an 1/0 boolean that I can activate a boolean lamp with it.
to 2. I know how to get the data into the machine! I want to give data out of LabView to the machine, but I have 5 lines wired on a Digital output programmed in only one Data Aquisition Manager (DAQ). So I have only one symbol in the block diagram. How can I give different data to different lines in this symbol? I think it has something with arrays to do, or?
06-22-2011 02:33 PM
To convert a 1/0 to a Boolean, all you have to do is wire it to a Not Equal to Zero? function.
Not sure what you mean by Data Acquisition Manager. There is a DAQmx Write and the DAQ Assistant. The DAQmx Write can be configured several ways for multiple channels. It could be a numeric (i.e. binary 11011/hex 33/decimal 27) or Boolean Array as well as a couple others. The DAQ Assistant would typically use a Boolean array for single sample/multiple channels. I hope the numeric format is self explanatory. The Boolean Array is also simple with the first element corresponding to the value for the first channel, the second element for the second channel, etc. You have not attached or VI or even an image of it so no one has any idea how you configured the digital write.
I'll repeat the suggestion for the LabVIEW tutorial as well as DAQmx Getting Started.