LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to send hex value in visa

 I need to send "0x01 0x02 0x55 0xaa" these hex values in visa write. 

 

how to do this

0 Kudos
Message 1 of 6
(2,656 Views)

Hi saran,

 

just send your data like this:  check.png

 

Note the display mode setting of the string constant!

Best regards,
GerdW


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

Hi GerdW,

 

Thanks a lot for you reply.

 

i need Numeric Control to String .

 

I need to pass values from 0x01 to 0xff.

 

from Numeric Control ..

 

How to do that 

0 Kudos
Message 3 of 6
(2,628 Views)

Hi saran,

 

simple like this:

check.png

Note the display mode setting of the array elements!

 

You need to learn how to ask for what you really want to know…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,624 Views)

Hi GerdW,

 

if it not Array means .. what to do ?

 

Single Value . i am passing 

 

 

 

0 Kudos
Message 5 of 6
(2,608 Views)

Hi saran,

 

you wrote "0x01 0x02 0x55 0xAA" - that's 4 values to me, not just a single one.

 

When you have 4 scalar values: use the BuildArray node to put them inside an array. Once you're there you can use my snippets above…

 

When you have a single "0x010255AA" value: typecast it to an array of U8. Once you're there you can use my snippets above…

Best regards,
GerdW


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