LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing to DAQmx

I was wondering what the best and easiest way to convert this program to DAQmx - I've already started, but need to get it done as quickly as possible - I'm trying to program quickly without too much time lost debugging.
Thanks,
Bethany
0 Kudos
Message 1 of 2
(2,507 Views)
 

Bethany,

The Traditional Compatibility VIs may be the quickest (albeit not the cleanest) way to get your application working in DAQmx:
http://digital.ni.com/softlib.nsf/websearch/9D67F671BCC6850586256E630059308B?opendocument&node=132060_US 

Make sure to read the help and notes that  come with these VIs to determine if they will work with your application.

Keep in mind that these VIs are more of a band-aid solution and it is recommended that you properly implement your code in DAQmx.

I would recommend taking a look at the DAQmx examples to see how to input and output information.  The DAQmx examples are located in the Example Finder: Help » Find Examples » Hardware Input and Output » DAQmx.  Based on what I can see in your application, these examples would be useful:

Analog outputs: Analog Generation » Voltage » Gen Voltage Update.vi
Single Point Analog Inputs: Analog Measurements » Slow Varying Voltage Signals » Acq One Sample.vi
Digital Outputs: Digital Generation » Write Digital Chan.vi

Keep in mind that working with multiple channels for a given type of input/output that you will want to use one task for mutliple channels (and simply specify multiple channels in those tasks).

The following documents are also very useful and I highly recommend taking a little bit of time to read them -- they will save you time later:

Learn 10 Functions in DAQmx and solve 80% of Data Acquisition Applications:
https://www.ni.com/en/support/documentation/supplemental/06/learn-10-functions-in-ni-daqmx-and-handl...

Terminology changes from Traditional DAQ to DAQmx:
https://www.ni.com/en/support/documentation/supplemental/18/sampling-terminology-for-ni-daqmx-and-tr...

Frequently Asked Questions about DAQmx vs. Traditional DAQ:
https://www.ni.com/en/support/documentation/supplemental/06/answers-to-frequently-asked-questions-ab...

Cheers,

 
--Paul Mandeltort
Automotive and Industrial Communications Product Marketing
0 Kudos
Message 2 of 2
(2,464 Views)