LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read status of digital output

Hi,

I use LabVIEW 7 Express with an Advantech acquisition card PCI-1711. How can I read the status of digital ouputs? I would like to read a word to see which output is on or off.

I use the drivers for labVIEW that Advantech give with its cards.
Thanks,

ToNi.
0 Kudos
Message 1 of 6
(3,500 Views)
I"ve not used Advantech hardware or drivers, but it should be similar to using NI hardware and NI-DAQ.

The usual procedure is to first configure the channels to be read, then read them. So, there should be a Configure VI and a Digital Read VI.

Possibly the drivers provided by Advantech have example programs that show how to do basic operations. Have a look through the directory where all of their drivers were installed or in the Example directory under LabVIEW.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 2 of 6
(3,486 Views)
Yes, you are right but my problem is that I can write word (digital output) and all is ok but I can't read a work (for read the status of digital output), it doesn't work. I use the same port for writting and reading, my port is 9000 Hex. Perhaps a bug in Advantech LabVIEW driver?

I attach here the example that comes with advantech, write word works but read word doesn't work and I don't understand why, I use the same port for both. I post another thread here, sorry, I attach the example here again.

I would like if there is someone that has the same problem as me working with advantech labview driver.

Thanks,

ToNi.
0 Kudos
Message 3 of 6
(3,477 Views)

Hello,

maybe you could confirm with Advantech if that board allows write/read from the same port without modifying the inicial configuration.

I hope this helps.

Regards

crisR

0 Kudos
Message 4 of 6
(3,465 Views)
If this is an example that ships with the driver, I'd think it should work. But reading and writing to the same port without closing and reopening could be a problem. Most of the time you can only do a read or a write.

Unless some one else here has used Advantech and knows what's going on, I'd suggest contacting Advantech to get some help from them. Without having any of their equipment, I have no way to test anything.

Ed

Message Edited by Ed Dickens on 12-21-2005 08:52 AM



Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
0 Kudos
Message 5 of 6
(3,463 Views)

Hi Toni,

Sorry for coming to your old thread. I am also evaluating and might use for my project Advantech's ADAM-4017 (analog input module) and ADAM-4055 (digital input/output module). I will connect them in one RS-485 network. I need to get all simultaneous data everytime from all the modules. I would be very thankful for any advise based on your previous experience.

Is it really available to get data while connecting them all in one network?

How can I read all the digital input and output channels?

Thank you for any advise.

Bong

0 Kudos
Message 6 of 6
(3,245 Views)