LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean array to output strings

Solved!
Go to solution

Hi!

I'm using LabVIEW for some automated power supply testing and I have implemented a shutdown module that detects whenever user specified shutdown critera that outputs boolean values. I want to convert those booleans to a string and save it to a file like so:

%date% - %time%: Shutdown occured due to parameter: %shutdown%

NI forums example.png

In an attempt to explain the problem I made a simple VI for the purpose of displaying how I imagine solving it somehow (with the indicator text added in Paint).

Maybe it's a LabVIEW question, maybe it's a general programming question, but I'm not sure how to tackle it. Everything else works in my VI. The file is saved with the date and time, but without the "shutdown parameter" attached to the string.

I have attached the VIs of my example and also my project.

Download All
0 Kudos
Message 1 of 5
(3,025 Views)

Hi jephinr,

 

a rather simple apporach:

check.png

 

There are other ways possible too…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,010 Views)

Hi GerdW

Thanks for you quick reply. I'm not too familiar with the string data type but I want to learn. It looks like a "match true/false" function, is that correct?

Can you attach the VI of the image? It would be much easier for me to identify the functions I need to use

0 Kudos
Message 3 of 5
(3,003 Views)
Solution
Accepted by topic author jephinr

That picture actually is a SNIPPET, look that up in the LabVIEW help…

Best regards,
GerdW


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

Thanks again! I just learned what a snippet was. I didn't know you could just drag and drop it into LabVIEW.

0 Kudos
Message 5 of 5
(2,989 Views)