10-04-2013 11:18 AM
I'm trying to populate a complex array that I built that reads from a spreadsheet file. The company I am building it for only has labview run time on the PXI test equipment that I am working with. I am having to fix the VI On my computer then build an executable and then test it on the machine to see if it runs properly. It's a very tedious process. I cannot run the VI on my computer because it requires to have a FLUKE 726 connected in order to run. So, I was wondering if there is a way to repopulate the array without running the entire VI?
Your help would be greatly appreciated.
10-04-2013 11:24 AM
Create a subVI for reading/processing of the array. Then you just have to test that subVI as your machine.
10-04-2013 11:26 AM - edited 10-04-2013 11:29 AM
If I understand your Q.
You are Stuck between a rock and a hard place. ;
Your only choice is to Implement a robust driver layer for the device, then when it is tested and assured you can attempt to make a simulation of it.
or
you can see if the FLUKE 726 driver offers a simulated version of of itself (unlikely)
After that you can use the simulation at home to extend on the code.
But without the device to start it can be very difficult.
edit: and yes crossrules has one way of attempting to do it.
If you make a sub VI it has to have proper default values set so you can test it.
You would get this from live instrument exchanges I presume.
10-04-2013 11:27 AM
You can disable parts of your VI with the Disable function on the Structures palette. That way, you can run with items not connected to test parts that don't need them.
Cameron
10-04-2013 11:36 AM - edited 10-04-2013 11:36 AM
There are no rocks ort hard places...
crossrulz has the proper solution >>>> create a sub-vi that can be tested as standalone.
Think of the sub-vi as a function. It also makes for better code re-use and module testing.