LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Headers VI - how to set headers?

Solved!
Go to solution

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?

 

set headers vi.jpg

 

Thanks very much!

Download All
0 Kudos
Message 1 of 7
(1,535 Views)
Solution
Accepted by topic author SouthPark_CO

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(1,530 Views)

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.

 

set headers vi1.jpg

0 Kudos
Message 3 of 7
(1,519 Views)

Hi Southpark,

 

as I wrote before: right-click the "headers" input and "Create Constant"!

This is very basic LabVIEW stuff, to be learned in the Core1 training course as offered in the header of the LabVIEW board...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 7
(1,493 Views)

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.

Petru_Tarabuta_0-1667466870854.png

 

The names of the functions will appear in your palettes, as seen below. I find seeing the names very useful.

palettes.png

 

Regards,
Petru

Message 5 of 7
(1,486 Views)

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!

0 Kudos
Message 6 of 7
(1,443 Views)

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.

Message 7 of 7
(1,441 Views)