LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert "BLUE DASH LINE" data type to Double Data Type and input into case structure

Hi everyone

 

I am using USB6009 data acquisition device to read the voltage and use this reading to control a case structure in order to carry out certain tasks. I gave the case structure 3 cases, they are 0,1 and 2, so when the voltage is read to be 0, the case structure does something, and when the voltage reading is 1, the case structure does something else, same to case 2. 

 

However, when I tried to connect the DAQ Assistant to the Selector terminal of the case structure, the case structure does not take the data type (BLUE DASH LINE) from the DAQ Assistant. The number in the selector lable becomes red. 

 

DAQ Assistant.png

 

But when I tried to connect a Double data type slider to the selector terminal, the selector lable automatically changed to 0 and 1. It takes Double Data type, and the case structure respond to the change of the slider as I change the value of the slider.

 

Slider.png

 

Is there a way to convert the BLUE DASH LINE data type to a Double data type (orange line)? Or is there a way to make the case structure to respond to the data type(BLUE DASH LINE) from the DAQ Assistant? Or is there a way to change the output data type of the DAQ Assistant to Double?

 

I have attached the VI to this post.

 

Thank you very much

 

Tommy

0 Kudos
Message 1 of 5
(4,542 Views)
The context help will tell you the datatype of your blue wire. Knowing that will tell you hoe to convert the data.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 5
(4,537 Views)
Even if you figure out how easy it is to convert the dynamic data to a dbl, it would be very wrong to do so. Do you ready think your readings are going to equal exactly the case values?
0 Kudos
Message 3 of 5
(4,523 Views)

Thank you very much Mike.

I did not know that help context can tell me what data type the wire is. The VI works perfectly now.

 

Tommy

0 Kudos
Message 4 of 5
(4,509 Views)