12-07-2015 10:23 AM
My source which should be the (command out) is double of 51 values I want to connect it an array to see all the values. however, I am getting this message. These cannot be wired together because the data types do not match. The type of the source is double. The type of the sink is 1D-array of double. I am attaching an image of my block diagram and as I am totally new to labview any help and explanation is appreciated.
12-07-2015 10:30 AM
12-07-2015 10:31 AM
This is very fundamental LabVIEW.
You cannot force a scalar value into an array.
I suggest taking some LabVIEW tutorials. You need to learn how to crawl before you can walk. No shortcuts.
12-07-2015 10:43 AM
It appears that the subVI you used does not do what you expected. Perhaps it sould be inside of a FOR loop with autoindexing tunnels?
12-07-2015 10:49 AM
Erm? What about the 'Build Array' function? Of course, the OP would get just a single value in the array and is probably looking to create some sort of buffer of the data - but you can force a scalar into an array!
The fact that this is the most trivial VI Snippet I have ever put on these forums does make me think that perhaps you should try some LabVIEW tutorials!
12-07-2015 11:15 AM
The blue VIs with the green headers are generated by the shared library import wizard which creates wrappers for DLL functions. You will need to read the documentation for that DLL (MIRA05?) to see how the specific functions work. Since the wizard uses the C header file to create the wrappers, my best guess is that it was imported correctly and that you do need to call the function in a loop and give it the index of the value you want every time, as someone suggested, but that's just a guess. You really need to read the documentation for it.