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.
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.
03-09-2021 04:28 AM
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:
I'm probably close to the solution, a little help would be much appreciated.
Thanks in advance !
03-09-2021 04:48 AM
Hi Thomas,
the manual of the NI6353 doesn't mention TriState behaviour at all.
Why do you think your DAQ hardware supports this feature?
03-09-2021 04:57 AM
I must mention its a PCIe-6353, I assumed the tristate was possible because I can configure it in NI-MAX as startup state:
03-09-2021 05:14 AM
03-09-2021 05:14 AM
@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:
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."
03-09-2021 06:19 AM
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?
03-09-2021 06:31 AM - edited 03-09-2021 06:33 AM
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"…