While not for programming in LabVIEW directly, ChatGPT has helped me debug LabVIEW applications.
To give a short summary of an example:
Question:
I received error code -1074118617 with possible reason "A sequence must have at least one step" coming from the NI DC Power LabVIEW driver. What could be the root cause?
Answer:
The error code in the NI DC Power LabVIEW driver indicates that the function or VI is expecting a sequence with at least one step, but the sequence being passed in does not have any steps. There are several possible reasons why this error may be occuring:
1. Empty sequence: [...] 2. Incorrect data type [...] 3. Invalid parameters [...] 4. Driver version [...]
Not really helpful so far. But kind of expected since ChatGPT has zero information about my actual code. So here is my follow up.
Question:
I have set the Source Mode to sequence. When is the latest point I have to set the actual sequence? What niDCPower properties can I not read or write before setting the actual sequence?
Answer:
When using the NI DC Power LabVIEW driver in sequence mode, you can set the sequence for the power supply at any point before initiating the sequence. However, there are some properties of the niDCPower object that you cannot read or write until the sequence has been set: 1. "NumberOfSequenceSteps" - [... explanation what the property means] 2. "SequenceVoltageValues" and "SequenceCurrentValues" [...] 3. "SequenceLoopCount" [...] 4. "OutputFunction" [...]
And yes, our application has tried to read the OutputFunction property before setting the sequence which caused the error.
This is was even more impressive to me as I was not able to find this information when searching for it myself.
ChatGPT then told me I could find this information in the NI DC Power LabVIEW Help of the NI MAX Help system inside section "Using the Sequence Mode" or in the online documentation of the National Instruments website.
So after all, ChatGPT may just be helpful here due to how absolutely horrible the NI website has become regarding finding specific documentation (especially when searching via google).
I still have not been able to find the chapter in the online documentation. Not even with the direct hyperlink provided by ChatGPT, since this awesome website always defaults back to https://www.ni.com/docs/en-US/ when trying to access an inner HTML page directly.