VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we configure Boolean input channels in NI Veristand?

Solved!
Go to solution

Hi All,

 

 

I'm currently using Veristand 2018.While configuring the input/output(not item properties) channels, I have always used numeric data type. However, I have never come across any example programs, specifying the channels as Boolean. Can you please help me understand whether the input/output channels can be configured as Boolean in Veristand 2018?

0 Kudos
Message 1 of 4
(2,887 Views)

Hi,

so far VeriStand uses DBL as the only data representation for all channel values. So from the memory economy point of view - Boolean channels do have significant overhead.

CLA, CTA, CLED
0 Kudos
Message 2 of 4
(2,877 Views)
Solution
Accepted by topic author RishiDivakar93

The general implementation is to translate booleans into zero or non-zero to go to VeriStand. On the VS Workspace, you can drop down a boolean control or indicator, which will be a 0.0 or 1.0 DBL when written from VS or zero and non-zero when reading from a custom device. When I make custom devices, I just use Not Equal To 0? to translate it to a bool to use in my logic or Boolean to (0,1) to translate to a double to go to VeriStand. It's not terribly efficient, but it's the only way 

0 Kudos
Message 3 of 4
(2,865 Views)

Ok, but I think we must be able to map the DIO signals as it is, without comparing numeric values. Hope in future versions, this will be taken care of.

0 Kudos
Message 4 of 4
(2,833 Views)