05-22-2013 07:50 AM
Hi, I was wondering if anyone is able to help me? I am trying to do a 4x4 array within an intensity graph, but at the moment I can only get a 2x8!!!!! It is probably something extrememly simple- I have attached the code and a screenshot to this message. Has anyone got any ideas??!!! Thanks.
Solved! Go to Solution.
05-22-2013 09:13 AM
Can you share your code in LabVIEW Version 2011...!!
05-22-2013 09:30 AM
I don't have Labview 2011 - i might have an earlier version (Labview 8.6) Would this help? Thanks
05-22-2013 10:15 AM
If you've LabVIEW 2012, you can use the same version to save an existing VI (or complete project) for previous version....
Well LabVIEW 8.6 will also do...!!
05-22-2013 10:18 AM - edited 05-22-2013 10:22 AM
Instead of "split array...build array" use "reshape array" to a 4x4 2D array.
(You probably attached the wrong code, because you seem to split a size=16 array at position 16. From your description, you were splitting at position 😎
05-22-2013 10:28 AM - edited 05-22-2013 10:30 AM
This is my first answer on these forums, but since no one else has jumped in, ... (I'll assume here that if I'm totally off base, someone knowledgable will correct me and I can go back to being a lurker)
Let's see if I'm interpreting your question right.
If you use the "Split 1D array" VI you show there, you get a 2D array with dimensions 2 and whatever (8). If you were to use the "Reshape Array" VI, you can set the size of dimension 1 to be 4 and the size of dimension 2 to be 4. That what you want? Now, you may have to move things around within the new array to get the right data in the right place, but that's another question.
Cameron
[edit]
Darn, I was scooped while I was typing, but at least it was by a really good guy. (and I was right).
05-22-2013 10:53 AM
Hi altenbach. Tried your suggestion, and it worked straight away! You're a lifesaver! Cheers!
05-22-2013 01:19 PM
Hi I have another question about the same code. It is designned to look at 2 analogue inputs in the NI Elvis Kit II. My hardware has 2 Arduino 4051 multiplexers connected to a NI Elvis Kit II. Each multiplexer is able to connect to 1 analogue I/O on the elvis kit and because the multiplexer has 8 pins, it is able to produce 8 analogue I/O (So the arduino 4051 makes one NI Elvis analogue, have up to 8 analogue I/O).
I want to be able to read 16 analogue inputs on my intensity graph. I am hence using 2 analogue inputs on the NI Elvis Kit (8 analogue I/O for each input on the Elvis Kit). I am able to view data for Analogue Input 1, but I can see nothing for Analogue Input 2. I have the code connected to this post- can anyone help? It's [probably really simple but I am stumped by it at the moment! Cheers!
05-22-2013 01:40 PM
Why did you change the array to 15 elements instead of 16?
Sorry, I don't have DAQ, so I cannot look at your IO configuration, but witing an analog signal to the index input of replace array subset makes no sense.
If you get 8 points for each read, wire a zero to the index of replace array subset for dataA and a 8 for dataB using a second "replace array subset". This way they go into either the first or second half of the array. You could also concatenate the two 8 element arrays and then use replace.
05-22-2013 01:49 PM
Hi altenbach thank's for your response. I tried what you suggested but unfortunately there was no difference. I have a feeling I am doing it wrong? Are you able to show me the configuration like last time? Thanks alot for your help!