LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with simultaneous DIO with PCI-6024E

Hello All,

I am having a problem with performing simultanous DIO tasks with my 6024 card. I need to write to a DIO line a high signal, whilst at the same time, reading from 2 DIO lines. When I perform these two tasks on the same VI, the write DIO will change from the required high state to a low state. (I need this to stay high as it enables a drive).
Im using high level VI's (Read and Write to digital line VI's) since im a relatively new user and I think this might be the problem, as the port is being reconfigured each time I do an loop iteration.
Any suggestions on what I can do to overcome this, or any examples on how to use high level vi's?

thanks all in advance,
David
0 Kudos
Message 1 of 2
(2,561 Views)
You are correct in assuming that the port is reconfigured each time in a loop iteration when using high level VI's. One solution would be to use one port (bits 0 to 7, or Port 0) to set your output bit high. Use a different port (Port 1 or 2) to read your required inputs. If wired correctly, port 0 will always be an output and will keep your bit high while reading port 1 or 2. Using high level VI's, you will not be able to write one bit high and expect it to stay high when reading other bits on the same port.
- tbob

Inventor of the WORM Global
Message 2 of 2
(2,561 Views)