LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I detect an error on a single FP analog channel?

Hello! I am new to the world of LabVIEW, maybe someone can help me. I need to detect if ONE of the analog channels in FP-AI-100 is in error state, such as reading out of range. I have no access to working FP modules and have no way of testing my code. Could someone tell me if what I am trying to do is possible? I modified an example Analog Input.vi and wondering if it will work. I changed the input to Read block to read only one channel, not the whole module and examining the error status bit. Will this status bit display error only for selected channel or for the whole module? I need to ignore all other channels.

Thanks! Ellen.
0 Kudos
Message 1 of 4
(2,764 Views)
Hi Ellen,

I do not have LV 7.1 loaded so I can not look at your VI. Please post an image if you want me to look.

In theory, checking the boolean should work in finding error cluster that have the boolean set.

THe complication is this.

I have seen that some of the error codes returned by FP reads will either have or not have their booleans set depending on which version of the FP code you are using.

I saw in LV 6.1 that an "open RTD" (if memory serves me correctly) would return a true boolean if LV 6.1 was the latest version of LV loaded. After another engineer used LV 6.1 after he had loaded LV 7.0 the error boolean was no longer set!

THe definition of boolean set or not set from one version to the next!

So...
I must advise that you test each
type of error you want to support in your code with whatever version of code you plan to use to ensure the boolean will be set.

Trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(2,764 Views)
Ben,
Thank you for your reply! I am attaching the image. Right now my largest concern is whether or not I will be able to only look at a single channel's error status. When I had access to FP (before the unit was shipped), I was looking at all channels of the module and was getting an error if at least one of channels was out of range. Since I am only using 2 channels, I will always have 6 channels reading out of range, I need to ignore them somehow.
Ellen.
0 Kudos
Message 3 of 4
(2,764 Views)
That is correct Ellen!

Just make sure the errors you want to catch sets the boolean.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 4
(2,764 Views)