11-03-2022 02:22 AM - edited 11-03-2022 02:25 AM
Hello all.
I have been trying all afternoon to figure out what I need to connect to the 'headers' input of the Set Headers VI function block.
I was reading the 'help' details associated with this Set Headers VI block. And I can see that 'cluster' information is required ----- information contained in 'cluster' format is needed.
I tried creating a text array, then putting the output of that through an "array to cluster" block. And I have also tried to build a cluster array. This is only because I don't actually know what I need to connect to that particular 'headers' input port.
Could someone please help me with letting me know what I need to connect to the 'headers' input port to satisfy the requirements of the Set Headers VI?
Thanks very much!
Solved! Go to Solution.
11-03-2022 02:28 AM - edited 11-03-2022 02:29 AM
Hi SouthPark,
@SouthPark_CO wrote:
This is only because I don't actually know what I need to connect to that particular 'headers' input port.
Could someone please help me with letting me know what I need to connect to the 'headers' input port to satisfy the requirements of the Set Headers VI?
Did you do those very basic steps of opening the context help window and read its displayed content?
Like this:
It tells you the exact datatype expected by the "headers" input!
Did you do the very basic steps of creating a control/constant for the input of a subVi by right-clicking that input and selecting "Create constant"? This way you would have got a constant with correct datatype!
Btw. why don't you use AutoCleanup before posting your VI?
11-03-2022 02:43 AM - edited 11-03-2022 02:46 AM
Hi GerdW,
I have read those instructions. But I don't actually know what to make of them. Not necessarily because I can't actually understand it if given an example. It's just that I had been searching online for an example in order to try to learn from example (or by example). But I haven't yet found an example in order to begin to understand what that 'header' input actually wants exactly - despite trying to understand what that 'help' information says when I click on the 'help' for that VI block.
Thanks for mentioning the 'cleanup' feature. I have used that feature now - attached image.
11-03-2022 03:57 AM
11-03-2022 04:17 AM
Hi SouthPark_CO,
This is unrelated to your question, but you might find it helpful. In your latest screenshot above I noticed that the names of the VIs and/or functions are not displayed in your functions palette. You can easily change a LabVIEW environment setting that enables the names to show.
1. In LabVIEW, navigate to Tools >> Options...
2. Select the "Controls/Functions Palettes" option from the left-hand-side list
3. In the "Palette" drop-down menu, select "Category (Icons and Text)", as seen below.
The names of the functions will appear in your palettes, as seen below. I find seeing the names very useful.
Regards,
Petru
11-03-2022 06:00 PM
GerdW ---- thanks very much! I see what you mean now about right-clicking on the input node for that Set Headers VI block, and then a pop-up mini window comes up, allowing us to go into the 'create' area in order to create a constant. I didn't know about that one. Awesome feature.
That is indeed a very nice basic feature to know about. Maybe even the number 1 basic feature. Thanks GerdW. I think this actual feature is probably the 'best' thing I've ever learned with LabView. I'm 'ok' with using LabView - not too bad. But most likely significantly better now, after knowing about this feature. Much appreciated!
11-03-2022 06:04 PM
Hi Petru! Thanks so much for your help regarding the names of the VIs. I will gladly and happily follow that excellent recommendation with the settings. I will set those settings now. And I'll note down this recommendation as well, and store it, so that I'll use these settings for any future labview (if the setting isn't already set). Thanks Petru. Greatly appreciated. Best regards.