LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure Voltage Initiation

I am trying to intitate a case structure with a digital input voltage. I know how to acquire the voltage, but I dont know how to convert the voltage into a boolean or numeric function to initiate the case structure. Attached is the code I have so far with a sub vi for the voltage. Any ideas? Thanks.  
0 Kudos
Message 1 of 7
(2,943 Views)
Follow your create digital channel with a DAQmx Read set for Digital>Single Channel>Single Sample>Boolean.
0 Kudos
Message 2 of 7
(2,938 Views)

Hi,

you did not include the subvi. Remember that when you save a vi

the subvi are not saved in the same file unless it is a llb file (library).

If you want everything in one file try save with options=>developpement for example.

Please post the subvi or the complete library.

 

Anyway, what is the problem? You have a voltage and a case. What do you want to

do is the first question? When is the case true and when is it false?

When the voltage is lower than a certain value? Explain.

 

Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 3 of 7
(2,935 Views)
I want the case to be true when their is a 5 volt signal present.
0 Kudos
Message 4 of 7
(2,928 Views)
0 Kudos
Message 5 of 7
(2,927 Views)
I have added the read function. Is this correct?
0 Kudos
Message 6 of 7
(2,923 Views)

Hi,

it looks ok at least for the part where you read the Digital Input and links it to the case.

Dai

LV 7.1 - WIN XP - RT - FP
0 Kudos
Message 7 of 7
(2,913 Views)