04-21-2008 02:19 PM
04-22-2008 01:33 PM
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
04-22-2008 01:45 PM
Thank you Joe. It looks like the traditional NiDAQ drivers can only support setting up only 1 waveform group. Does the NiDaq mx support setting up more than 1 group.
Srikanth
04-23-2008 01:03 PM - edited 04-23-2008 01:04 PM
DAQmx Help File » NI-DAQmx Key Concepts » Channels and Tasks in NI-DAQmx » Tasks in NI-DAQmxA task is a collection of one or more virtual channels with timing, triggering, and other properties. Conceptually, a task represents a measurement or generation you want to perform. All channels in a task must be of the same I/O type, such as analog input or counter output. However, a task can include channels of different measurement types, such as an analog input temperature channel and an analog input voltage channel. With some devices, you can include channels from multiple devices in a task. To perform a measurement or a generation with a task, follow these steps:If appropriate for your application, repeat steps 2 through 4. For instance, after reading or writing samples, you can reconfigure the virtual channel, timing, or triggering properties and then read or write additional samples based on this new configuration.\
- Create or load a task. You can create tasks interactively with the DAQ Assistant or programmatically in your ADE such as LabVIEW or LabWindows/CVI.
- Configure the channel, timing, and triggering properties as necessary.
- Optionally, perform various task state transitions to prepare the task to perform the specified operation.
- Read or write samples.
- Clear the task.
If properties need to be set to values other than their defaults for your task to be successful, your program must set these properties every time it executes. For example, if you run a program that sets property A to a nondefault value and follow that with a second program that does not set property A, the second program uses the default value of property A. The only way to avoid setting properties programmatically each time a program runs is to use virtual channels and/or tasks created in the DAQ Assistant.
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)
01-18-2010 03:09 AM
Hi,Joe,
Your reply for Srikanth just answered my question. But I have a problem on pxi 6733.Hope you can give me some advice.Our customer want to use the 8 channel at once,but they want the first four channel output the same wave from one hws file,the other four channel output another waveform from another hws file.How can I realize this for them with a best way?
Thank you very much!
01-19-2010 08:32 AM
Hi Maevebj,
Are you using DAQmx to program the 6733? If so, you will need to combine the data from each hws file into a single array. You can input the data to DAQmx Write as a either a 1-D array of waveforms (each element corresponds to a single channel) or as a 2D array of voltages. I like the 1D array of waveforms, the following code should give you an idea of what you need to do:
Concatenate Waveforms from Multiple HWS Files
If you run into any issues you are more than welcome to post back here and let us know what you have so far. Are you using LabVIEW to program your application?
Best Regards,
01-20-2010 11:49 PM
Hello,John,
Thank you very much for your reply.I am trying to learn from your example. I am using LabWindows/CVI to program.I will post back to you when I have any result.
Best Regards