LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Do DAQ PCMCIA boards need to be physically in the laptop to create an application?

When building an application that uses DAQ boards, do the boards need to be in the machine when the application is built? Does their presence affect either the build process or the installation process?
Thanks,
Peg
0 Kudos
Message 1 of 3
(2,783 Views)

no

in development, you only need the drivers. in this case the DAQmx drivers. at LV install, dont forget to install them as well.
however to test fully your vi, you will probably need the DAQ card, unless this is one of the few that can be simulated via MAX.

 

-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 2 of 3
(2,775 Views)
Hello Peg,

There are several methods that you can use to program a DAQ application without having the device actually in the machine.  You can build the vi if the drivers are installed for the device (installing DAQmx once installs all of the drivers for all of the devices that use DAQmx), but doing this "blind" can make it difficult to test and check for bugs.  I would suggest simulating the device in MAX if possible (many of our devices can be simulated, however not all can).  To do this, in MAX right click on NI-DAQmx Devices»Create New DAQmx Device»NI-DAQmx Simulated Device.  These simulated devices allow for basic testing of code and have almost all the properties of the actual card.




You can also create simulated signals to test your code.  These vi's make general data (e.g a sine wave for an analog input) so that you can see if the data flow is the way you want.  If you search the LabVIEW help for "Waveform Generation", there is a good article with all of the different types of signals and how to make them.

The only thing to note with creating programs without the hardware installed (or for moving to a different computer) is that when the hardware is installed, the device number can change from the one the program references. This will definitely happen if you simulate the device.  This is because the driver sees the simulated device as an actual card and will use the next device number for the hardware.

If you are making an executable out of your program, it would be easiest to put a control on the front panel to select the device and channel.  As far as the installer,  you can include the drivers for the card under Additional Installers.  Building your executable should not cause problems without the hardware as long as you do not try to run the application without the hardware installed (or simulated).

Neal M.
NIC AE
www.ni.com/support
SR#: 1041497

Message Edited by Neal M on 10-02-2007 10:58 AM

Neal M.
Applications Engineering       National Instruments        www.ni.com/support
0 Kudos
Message 3 of 3
(2,752 Views)