LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Constant 64 byte array (VISA USB) - Easiest possible way

Solved!
Go to solution

How it is possible to define 64byte array with one block (or at least block possible). Because I must sending different (constant) byte arrays over VISA USB and watching responses. In C# for example I define new byte array just like that:

 

byte[] mybytearray ={ 0x6e, 0x61, 0x6d, 0x65, 0x3f, ... };

It is best solution to do it with pure code block maybe?

 

Thanks and hello to NI forum - I am pretty new in LabView environment, and I hope that some day I will be helping others 🙂

0 Kudos
Message 1 of 2
(2,440 Views)
Solution
Accepted by topic author mirch3544

Initialize Array lets you create an array of N number of elements, all of the same value.

If you are trying to create an array of some size N, but every element is different, then use an array constant.  You'd type in each value just like you type in each value in the text-based example you show.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 2 of 2
(2,434 Views)