LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert variant to Integer I16

Hallo,

i am unexperienced LabVIEW's user and I want to convert variant data into I16. For this purpose, I use variant to Data function form LabVIEW Block diagram. I can't define a constant/control I16 to connect to the specified port.

Do anyone has a clue on how to actually do this?

thanks for your help

 

0 Kudos
Message 1 of 10
(1,856 Views)

 

Drop a numeric constant (it's the blue one) on your block diagram.

It will default to a I32.

Right Click on it and change it to I16

I16.png

Omar
Message 2 of 10
(1,846 Views)

Capture.PNG

after creating the numeric constant you need to select its representation from a Right-Click

!1.png


"Should be" isn't "Is" -Jay
Message 3 of 10
(1,845 Views)

Hi Aristocate,

 

you put a numeric constant on your BD, right-click it and change it's representation to I16…

 

This is pretty basic LabVIEW programming so you should take the time to go through all those free beginner resources offered by NI!

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
0 Kudos
Message 4 of 10
(1,840 Views)

hi all,

Thanks for your help!

I would like to take the CLDA certificate. Do you have some recommendation to make concerning self-learning material and free online test?

 

 

0 Kudos
Message 5 of 10
(1,802 Views)

Hi Aristocrate,

 

see those links:

http://www.ni.com/gettingstarted/labviewbasics

http://www.ni.com/academic/labview_training

http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/block_diagram_data_flow/

http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/using_local_and_global

http://www.ni.com/white-paper/2835/en

ftp://ftp.ni.com/pub/devzone/tut/floating_point_in_labview.pdf

 

When you have a current SSP contract with NI you are entitled to online training, check this too. Your local NI representative will advise you too…

Best regards,
GerdW

using LV2011SP1 + LV2017 (+LV2020 sometimes) on Win10+cRIO
Message 6 of 10
(1,797 Views)

@Aristocrate wrote:

hi all,

Thanks for your help!

I would like to take the CLDA certificate. Do you have some recommendation to make concerning self-learning material and free online test?

 

 


Well its a CLAD if we are talking about the same certification.  Look over on the Certification forum under the special interest boards for some worthwhile advice.


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 10
(1,782 Views)

@JÞB wrote:

@Aristocrate wrote:

hi all,

Thanks for your help!

I would like to take the CLDA certificate. Do you have some recommendation to make concerning self-learning material and free online test?

 

 


Well its a CLAD if we are talking about the same certification.  Look over on the Certification forum under the special interest boards for some worthwhile advice.


Don't be harsh on him for spelling until you know the full story Jeff - he could turn out to be as good as Ben in 20+years!Smiley Wink

CLD; LabVIEW since 8.0, Currently have LabVIEW 2015 SP1, 2018SP1 & 2020 installed
Message 8 of 10
(1,773 Views)

@James_W wrote:

@JÞB wrote:

@Aristocrate wrote:

hi all,

Thanks for your help!

I would like to take the CLDA certificate. Do you have some recommendation to make concerning self-learning material and free online test?

 

 


Well its a CLAD if we are talking about the same certification.  Look over on the Certification forum under the special interest boards for some worthwhile advice.


Don't be harsh on him for spelling until you know the full story Jeff - he could turn out to be as good as Ben in 20+years!Smiley Wink


My bad.Smiley LOL  Lord knows my typing has been known to contain the occasional error!


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 10
(1,768 Views)

That's real funny! I hope you make much fun as you code :), Smiley HappyI meant CLAD. thanks again for the link it's been helpfull.Smiley Wink

 

0 Kudos
Message 10 of 10
(1,736 Views)