03-23-2009 12:23 PM
What is a good way to develop on a laptop and deploy to a machine with the hardware? I ussually can develop on the machine the app will run on, but not always.
If I try to test run my app on my laptop I get all kinds of errors or it won't even run because of missing hardware.
This maybe a simple problem, but I've searched all over to no solution.
Can I tell Labview to ignore hardware errors so I can at least test the interface and report generation?
Can I simulate my hardware so I can develop and test on a machine that doesn't have all the hardware?
I'm using Labview 8.6.1.
Thanks.
Greg
Solved! Go to Solution.
03-23-2009 12:32 PM
03-23-2009 01:43 PM
Thanks Dennis, I should have realized that.
My program uses 2 COM ports, 1 Measurement Computing DAQ board (using their Labview Library), NI PCI-CAN card.
Greg
03-23-2009 02:10 PM
If you are using ordinary VISA Reads and Writes for the serial instrument, you cannot do a read without getting a timeout error because there is nothing connected to the port. If you are using an IVI driver for the instrument, then IVI has a simulation mode.
If you were using an NI DAQ board, then you could simulate that in MAX. I don't think Measurement Computing has this. You might want to make a product suggestion to them.
Sorry, I really know nothing about NI-CAN.
03-23-2009 03:20 PM
03-23-2009 03:29 PM
You can put all Device specific code inside a case and put a simulation code in the other case. To toggle between simulation mode and real code can be done by a global (one of the cases I would use them). Make sure the globals are initialized before any hardware is accessed. The value for the globals might be hard coded or inside an ini file.
Felix
03-23-2009 07:49 PM
That gives me a couple of avenues to follow. I wish there was a better solution. Like a setting that redirects any IO to simulation for instance. I guess with using none NI hardware this is as good as can be expected.
Greg