From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-13-2015 02:28 AM
In the attached VI .. how to let the first subarray contains the first element in the input Array ?
first subarray = 1111111111
second subarray= 0000000000 & 1
05-13-2015 02:35 AM - edited 05-13-2015 02:35 AM
Hi Marina,
how to let the first subarray contains the first element in the input Array ?
Using this:
the "first subarray" contains the first element of "Array" and "second subarray" contains the remaining elements…
It would be easier to follow your question when your "Array" would contain some real data!
05-13-2015 02:39 AM
This is not happening ... what is happening is the "first subarray" contains the second element from "Array" and the "second subarray contains the rest of the elements. To check it run the attached VI ..
05-13-2015 02:41 AM
05-13-2015 02:57 AM
What I need is to check each elemnt in "Array of blocks" and if any element in this array has no. of bits < 7 then add zeroes to the left of the element
Output Array :
0000000
0000000
0000001
How can I make it generic for any case
05-13-2015 03:02 AM - edited 05-13-2015 03:08 AM
Hi Marina,
is this connected with your recent other threads? You have been told to use numerics instead of strings!
And you already marked an answer as solution to your problem! So why do you create a new thread for that old topic?
Either use numeric indicators set to your desired display format - or create your strings with the correct formatting options!
As others have said in your other thread(s) you need to use the correct format string like this:
This ensures atleast 7 digits in your binary string…