LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Requirements Gateway with LabVIEW classes

Solved!
Go to solution

Does anyone know how to get the NI Requirements Gateway to read coverage information from the documentation contained in a LabVIEW class (.lvclass)?

Requirements Gateway appears to load the documentation content fine from VIs, controls, .llb, .lvlib, .lvproj etc, but not .lvclass? My LabVIEW keeps crashing out when I try to point Requirements Gateway at a project with .lvclass files!

 

If this can't be done then is there a neat way to add requirements coverage information (you know, the "Covers: ID" field) into the class properties, or something near the class maybe, that Requirements Gateway can read?

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 1 of 9
(4,826 Views)
Solution
Accepted by Thoric

Thoric -

 

I believe Requirements Gateway should be able to trace coverages from LabVIEW Classes as long as the classes are added to a LabVIEW Project and Requirements Gateway is configured to look at the LabVIEW Project. Here's a very primitive example that I pieced together from files in the Requirements Gateway and LabVIEW Example directories.

 

Hope this helps.

Manooch H.
National Instruments
0 Kudos
Message 2 of 9
(4,821 Views)

Hi Manooch,

Thank you for your prompt reply. The example you attached, with a little alteration to include the coverage ID tag in the class documentation field, does precisely what I need, thank you. The snapshot below shows the LabVIEW class satisfying requirement 2:

req2class.jpg

 

However, this doesn't work in my project. I have similar content, and when I ask Requirements Gateway to analyse the project it shows nothing and then LabVIEW crashes! I'll have to try stripping my project down to the bare bones to find the problematic element. I hate it when this happens.... Smiley Mad

 

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 3 of 9
(4,809 Views)

I've just spotted an message area in Requirements Gateway which reports the following after attempting to analyse the LabVIEW project:

 

Document 'LabVIEW Project    LabVIEW'.
Document 'D:\temp\Simulation\simulation_classes_test.lvproj' type is 'LabVIEW'.
Error: COM error (The remote procedure call failed.

 'Run')
Error: Conversion problem  (file 'D:\temp\Simulation\simulation_classes_test.lvproj')

 

Does this mean anything to anyone?

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 4 of 9
(4,807 Views)

OK, so I rebuilt my test project from the ground up, using the same content (classes, VIs etc.), but in a new LabVIEW Project. Now it works.

 

Luckily this has only been a test project, a little experiment to help me learn about adopting Requirements Gateway for requirements tracking in LVOOP. If it had been a real (substantial) project, it wouldn't have been so easy to rebuild the whole project from scratch. Very worrying.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 5 of 9
(4,806 Views)

Thoric -

 

If you had a copy of your files that are reproducing this error, you could provide us with the files and we can investigate the error in an effort to fix it in the next version of Requirements Gateway.

Manooch H.
National Instruments
0 Kudos
Message 6 of 9
(4,790 Views)

Hi Manooch,

 

I'll create a Service Request with local Technical Support and link to this thread.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 7 of 9
(4,787 Views)

Thoric -

 

I directly support Requirements Gateway, so if you would prefer not to post your code to this forum thread, I can ask the forum administrator for your email information and contact you directly.

Manooch H.
National Instruments
0 Kudos
Message 8 of 9
(4,785 Views)

Hi Manooch,


Feel free to do that if you wish. I'll expect an email from you later Smiley Happy

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 9 of 9
(4,783 Views)