Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69090

Use Integrated IO

$
0
0

...Hi!
I've just bought an Industrial PC with an integrated IO board I'd like to use.

In the Manual there is this example on hot to configure the ports but I can not figure out how to convert this in Labview

[code]#define AddrPort 0x4E
#define DataPort 0x4F
<Enter the Extended Function Mode>
WriteByte(AddrPort, 0x87)
WriteByte(AddrPort, 0x87) //Must write twice to entering Extended mode
<Select Logic Device>
WriteByte(AddrPort, 0x07)
WriteByte(dataPort, 0x06)
//Select logic device 06h
<Input Mode Selection> //Set GP70 to GP77 input Mode
WriteByte(AddrPort, 0x80) // Select configuration register 80h
WriteByte(DataPort, 0x0X) //Set (bit 0~7) = 0 to select GP 70~77 as Input mode.
<input Value>
WriteByte(AddrPort, 0x82) // Select configuration register 82h
ReadByte(DataPort, Value) // Read bit 0~7(0xFx)= GP70 ~77 as High.
<Leave the Extended Function Mode>
WriteByte(AddrPort, 0xAA)[/code]

 

Which VI family should I use?


Viewing all articles
Browse latest Browse all 69090

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>