From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ6353 // Set Digital Input to float/tristate

Hi all,

 

I have a sensor signal connected to one digital input (P0.5) of my DAQ6353, since that sensor signal can be configured to output a digital or analog signal I have also connected it to an analog input to be able to read something in both scenarios.

 

In a nutshell:

Sensor Out --> | P0.5 on DAQ6353  (Digital Input, default level HIGH)

                          | AI0 on DAQ6353  (Analog Input)

 

The issue:

My DAQ6353 configures the P0.5 to be 5V by default, possibly using an internal pull up. Since both the analog and digital input are tied together the digital input is constantly driving high the analog input, preventing me from reading anything.

 

Target solution:

Set the Digital Input to tristate/float in order to let me read the analog ouput of my sensor.

 

Problem:

I created a VI to set P0.5 to tristate, without success, here is my diagram and attached is the .VI:

ThomasPujolle_1-1615285483494.png

 

 

I'm probably close to the solution, a little help would be much appreciated.

 

Thanks in advance !

 

 

 

0 Kudos
Message 1 of 7
(1,126 Views)

Hi Thomas,

 

the manual of the NI6353 doesn't mention TriState behaviour at all.

Why do you think your DAQ hardware supports this feature?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(1,119 Views)

I must mention its a PCIe-6353, I assumed the tristate was possible because I can configure it in NI-MAX as startup state:

ThomasPujolle_0-1615287441118.png

 

0 Kudos
Message 3 of 7
(1,108 Views)

Hi Thomas,

 

the manual for the PCIe6353 is the same as I linked before.

It still not mentions any TriState behaviour…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(1,091 Views)

@ThomasPujolle wrote:

Hi all,

 

I have a sensor signal connected to one digital input (P0.5) of my DAQ6353, since that sensor signal can be configured to output a digital or analog signal I have also connected it to an analog input to be able to read something in both scenarios.

 

In a nutshell:

Sensor Out --> | P0.5 on DAQ6353  (Digital Input, default level HIGH)

                          | AI0 on DAQ6353  (Analog Input)

 

The issue:

My DAQ6353 configures the P0.5 to be 5V by default, possibly using an internal pull up. Since both the analog and digital input are tied together the digital input is constantly driving high the analog input, preventing me from reading anything.

 

Target solution:

Set the Digital Input to tristate/float in order to let me read the analog ouput of my sensor.

 

Problem:

I created a VI to set P0.5 to tristate, without success, here is my diagram and attached is the .VI:

ThomasPujolle_1-1615285483494.png

 

 

I'm probably close to the solution, a little help would be much appreciated.

 

Thanks in advance !

 

 

 


You are not quite as close as you think you are🙃

Actually you have the right idea  tri-Stating the DI line is a well thought out approach.   Unfortunately, you have the wrong hardware Read this  and look closely at page 6-2.  The 6353 Digital lines have an internal weak pull-down (50k typical, 20k min per the specification sheet.)  I can only imagine that someone suppressed an error in there somewhere (Arguably, Tristate=FALSE is valid so. maybe a TRUE value is not truly an error)

 

Looking at your Channel property node.  You need to reorder the inputs so you select the active channels before setting the tristate property.   The way you have it is analogous to "Ready, Fire, Aim." 


"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 7
(1,090 Views)

Ok so even if I get the .VI right my hardware won't allow that. Would a PFI line do the job then ? Ff I can toggle it between analog input and digital input?

0 Kudos
Message 6 of 7
(1,076 Views)

Hi Thomas,

 


@ThomasPujolle wrote:

Would a PFI line do the job then ? Ff I can toggle it between analog input and digital input?


AFAIK you cannot switch a PFI between "digital" and "analog" operation mode!

 

You could use one more DO channel to switch on/off an external relais. This way you can easily set your DO output to "fake TriState"…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(1,073 Views)