LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically check if sensors are connected

Solved!
Go to solution

Hello,

 

is there a programmatic way to check, if there are sensors connected? Say to a NI 9217?

Maybe just have to check, if it reads some values way out of range? With nothing connected I got 1200 or so degrees, so if I just check if its more than 60, then means the input went to full resistance and nothing is connected?

Its on an etherCAT slave, but that should not make much difference.

 

Cheers,

 

Steffen

0 Kudos
Message 1 of 6
(4,137 Views)
Solution
Accepted by topic author Steffen01

Hi Steffen,

 

we are using a simple scheme on our testbenches…

- the user can select 3 ranges for each sensor value: working range, warn range, alarm range

- as long as the value is inside the working range, everything is ok

- when the value is outside the working range, but in the warn range the user gets a warning (with no additional action)

- when the value is outside the warn range, but inside the alarm range then user gets an alarm/warning and an additional emergency action is triggered

 

All you need from this is a simple check for the (expected) working range of your sensor values…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(4,110 Views)

Hi Gerd,

 

the idea is more, there can be between 1 and 48 sensors connected. If I check in advance, which one is connected, I only have to transfer and log data for these. I could make something with radio buttons, where the user selects, which sensor is connected. But that sounds trouble. Easy to program though, already done. Plus made something that automatically makes the SQL string.

Guess I work out the maximum values on each module, which indicates open inputs.

0 Kudos
Message 3 of 6
(4,106 Views)

@Steffen01 wrote:

 

Maybe just have to check, if it reads some values way out of range? With nothing connected I got 1200 or so degrees, so if I just check if its more than 60, then means the input went to full resistance and nothing is connected?


That's the way to do it 🙂

 

Side note: thermocouple modules 9213/9214 have Open Thermocouple Detection option, which... well, detects open thermocouple 🙂 I'm not aware of any other modules that have such functionality (maybe some bridge modules?). Mainly because any analog input actually measures the potential between two points, so there is really no way to universally define "open connection". What you measure with your module is just "very high" resistance, so it's up to you to decide if that's proper reading or error.

Message 4 of 6
(4,105 Views)

yes, one of them is 9214. So I will check that, thanks

 

0 Kudos
Message 5 of 6
(4,101 Views)

I will send all the values from the cRIO and filter them on the PC host side. Then I don't have to recompile things all the time, can preview the data and maybe at the end set up some .ini file to store filter settings. Then I don't have to change the PC side of the software all the time either.

0 Kudos
Message 6 of 6
(4,057 Views)