LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How i can write Test VI's to test LabVIEW code?

I have large application code developed & i want to test the software thoroughly.

I want to write test VI's for this task & how i can do that?

 

Please advise me ASAP.

 

Dnyanoba.

0 Kudos
Message 1 of 5
(3,582 Views)

Your question needs more explenation. What do you want to test? Is it measurement? Or maybe file I/O?

 

It's a good idea to create VI's for stress testing your code. If you're doing measurements and want to test your analysis, you should create a Vi that simeulates signals and for example noise.

The VI's you should create is to simalute stuff that can happend in real life. And maybe check for race conditions etc. For example read a file 3000 times and see if any of your data is read wrong etc.

 

There any many ways to do this. Please explain more what your program does (the main function). Try to split it up, like:

 

Example: 

DAQ -> Analyse samples -> Log errors -> Update UI 

Regards,
Even
_________________________________
Certified LabVIEW Associate Developer

Automated Test Developer
Topro AS
Norway
0 Kudos
Message 2 of 5
(3,580 Views)

Hi Even,

 

Thanks for your quick reply.

 

Actually i am a test engineer & doing LabVIEW software testing job.

 

I have a developed LabVIEW application which contains thousands of VI's to measure signals/writes file IO's & i want to thoroughly test those VI's.

 

There are several ways to that one like Unit testing.

I want to know how i can test this code which is divided in layers by using test VI's or Top-down approach.

 

Please clear my queries with simple example of how to use test VI's to do this.

 

Thanks,

Dnyanoba

0 Kudos
Message 3 of 5
(3,564 Views)

Perhaps you should be looking at this: NI LabVIEW Unit Test Framework Toolkit 

 

By the time you write your own stuff you'll probably find the toolkit to be a far cheaper solution.

Message 4 of 5
(3,560 Views)

You might also look at this http://forums.jki.net/topic/985-vi-tester-home-page/

 

It is free but I have no experience with it.

=====================
LabVIEW 2012


0 Kudos
Message 5 of 5
(3,544 Views)