LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Assistance needed with my first LabVIEW program

Hello,

 

I need some assistance with my first LabVIEW program (ver. 22.3) with a NI-9171 Chassis and a NI-9211 module.  We want LabVIEW to compare temperatures and send a text message when the temperature exceeds 65 degrees Celsius. I decided to try to use Case Structures.  I think I have the False Case Structure figured out,  But, I cannot figure out how to include the True Case Structure and  how to loop back to read another sample.  Any assistance would be greatly appreciated.NewGetTemp-2Vi_Error 2025-12-22.png

0 Kudos
Message 1 of 7
(142 Views)

I recommend you to explore state machine architecture.

Application Design Patterns: State Machines

Modify the Simple State Machine LabVIEW Template

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 7
(114 Views)

You saved the VI in LabVIEW version 24, so I can't open it. (Try to save your VI for a previous version, some prefer a version down to 2019)

In your message you write about a "false case structure" and a "true case structure", but you only need one Case Structure. This structure has two cases "True" and "False". Wire the result of the comparison to the case selector (?) of the structure and the .

Screenshot 2025-12-23 084204.png

0 Kudos
Message 3 of 7
(110 Views)

please check

CLA
0 Kudos
Message 4 of 7
(80 Views)

ZYOng, Thank you for your response.  I will take the next day or so to look into working with the state machine architecture.  I am not familiar with this programming option.  Thanks~Angela

0 Kudos
Message 5 of 7
(50 Views)

Hi UliB, Thank you for responding, I did not realize that I uploaded the vi from the TEST computer. PROD will be version 22.3.  I have attached a 2019 version. I will try the case structure solution you recommended below.  Thank You!  ~Angela

0 Kudos
Message 6 of 7
(45 Views)

Hello Ahmed99,  I thank you as well for responding to my inquiry.  I will check out your response as soon as I get to the Test computer.  Thank you~Angela

0 Kudos
Message 7 of 7
(39 Views)