LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling digital ports individually

Solved!
Go to solution

Hello

 

I am getting a weird behaviour when I run the attached VI on my computer to test/control output of digital ports individually. I haven't tested it on actual hardware as it is not available at the moment.

When the code is run, the output pins start to count incrementally straight away (binary counting). Activation of input pins does not have any effect which is counter off the purpose.

It seems to me like the DAQmx function is the one that misbehaves, but I am not sure why. All I want to do is activate different ports respectivly specified by my selection.

Could someone please tell what I am doing wrong?

 

Thanks

0 Kudos
Message 1 of 3
(2,687 Views)
Solution
Accepted by topic author Ercan42

It is because you are using a simulated device.  Reads just do the counting pattern for digital ports.  Once you get real hardware, it should work the way you are expecting.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,678 Views)

Hello crossrulz

 

Okay, although I was afraid of that which was my last assumption. But thanks for your reply.

 

Kind regards

Ercan

0 Kudos
Message 3 of 3
(2,614 Views)