LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array subarray question

OK, I removed the build array function and now when I run this I am seeing the following error

 

string example error.jpg

0 Kudos
Message 11 of 24
(1,936 Views)

Wire a FALSE to the unflatten operation, indicating that the string does not contain a size header.

 

Also, instead of wiring a two to the endian input, just right-click the terminal and "create constant". Then select the desired mode from the enum.

Makes the code self-documenting.

Message 12 of 24
(1,932 Views)

Thanks Kyle, that works pretty well.

 

One other question...  how difficult would it be to perform some calculations on the numbers in that range (14th element and 127 additional elements) of the subarray and then store the calculations into  sub array as elents 0 - 127?

 

I would like to multiply each value by 3.35693359375 and then convert to decimal and subtract 5020 before storing these values into

the subarray. The numbers in channels are hexidecimal 2's compliment so as I understand, the hexidecimal values greater than 7FFF are negative numbers...

 

 

Thanks again

0 Kudos
Message 13 of 24
(1,914 Views)

thanks altenbach, that definietly fixed that issue

0 Kudos
Message 14 of 24
(1,905 Views)

Sounds like you want this



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 15 of 24
(1,901 Views)

Thanks Crossrulz

One more question, I may want to pull this string data from a cluster... Is it possible to substitute the string input to this with the rest of the binary string output from an Unflatten From String Function?

If so, what would I use for a delimiter for the Spreadsheet String To Array Function? (not sure what the Unflatten From String Function sets as a delimiter if any at all...)

Thank you for your help with this...

 

 

 

 

 

 

0 Kudos
Message 16 of 24
(1,845 Views)

@LV-rookie wrote:

One more question, I may want to pull this string data from a cluster...


Sounds like you need to use Unbundle By Name to get the string from the cluster.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 17 of 24
(1,833 Views)

I think that I phrased that incorrectly...

 

I have a cluster which I use an Unflatten From String Function on and it outputs a "rest of binary string" binary string.

This is a binary string that I would like to feed into the Spreadsheet String To Array Function but I am not sure this string 

has a delimiter or if it just treats this like one long string of binary data.

 

 

 

 

 

0 Kudos
Message 18 of 24
(1,826 Views)

@LV-rookie wrote:

I think that I phrased that incorrectly...

 

I have a cluster which I use an Unflatten From String Function on and it outputs a "rest of binary string" binary string.

This is a binary string that I would like to feed into the Spreadsheet String To Array Function but I am not sure this string 

has a delimiter or if it just treats this like one long string of binary data.


This is when we again ask for an exact example of your input data and exactly what you expect for an output.  Please include the cluster type as well.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 19 of 24
(1,823 Views)
A binary string is NOT a spreadsheet string. You description is insufficient to solve the problem.
0 Kudos
Message 20 of 24
(1,799 Views)