Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

3 Digital inputs with Binary using WSN-9791 Ethernet Gateway, NI WSN-3202 ±10 V Analog Input Node and NI WSN-3212 Thermocouple Input Node

I have 3 digital inputs to detect the wind direction. I am trying to use binary to give me 8 different events or directions. A, B, C, D;

D is connected to ground which means D is always 0

For the North is; A = 0, B = 0, C = 0, D = 0

For the North East is; A = 1, B = 0, C = 0, D = 0

For the East is; A =0, B =1, C = 0, D = 0

For the South East is; A = 1, B = 1, C = 0, D = 0

For the South is; A =0, B =0, C =1, D = 0

For the South West is; A = 1, B = 0, C = 1, D = 0

For the West is; A =0, B =1, C = 1, D = 0

For the North West is; A =1, B =1, C =1, D = 0

I am still wondering how to show that on labVIEW and how to detect the direction. I already made configure for WSN-9791 Ethernet Gateway, NI WSN-3202 ±10 V Analog Input Node and NI WSN-3212 Thermocouple Input Node but I really have no idea how to do the DAQ Assistant as I tried to download it but it didn’t show any of Analog or Digital input or output for my Wireless Sensor Network. What I did is to open empty project and drag the digital input from the NI WSN 3212 and change it from write to read and create indicator but the LEDs were always on. I really would like to find a way to detect the direction with 3-bits digital inputs and 8 different directions. Thank you

Regards,

Abdullah

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 1 of 3
(4,484 Views)

Hello,

 

 

The DAQ Assistant is used with products that utilize the DAQmx driver whereas the WSN node uses its own WSN driver set. Therefore the DAQ Assistant cannot be used to take measurements with the WSN hardware. You were correct in placing the I/O nodes onto the block diagram and changing the access mode to read. By default, the DIO lines on the 3202 are high. If the inputs to those lines are changing you will want to make sure the sample interval under the node Properties in the Project Explorer is set to a value that can detect the change. The default sample interval for the 3202 is every 5 seconds. You can also check the Distributed Systems Manager to see if the values of the DIO lines are changing.As far as your code architecture, you may want to use a series of cascaded Select nodes that determine the wind direction and generate an output based on the DIO line sequence.

 

Regards,

Patricia B.

National Instruments
Applications Engineer
0 Kudos
Message 2 of 3
(4,474 Views)

Hello Patricia

Thanks for the suggestion. I will try to see what I can do and keep you updated. Thanks again

0 Kudos
Message 3 of 3
(4,469 Views)