Sign In
Cart
Test Solutions
Aircraft
F-15
F-16
F/A-18
F-35
AH-64
Remotely Piloted Aircraft (RPA)
Weapons Systems
AGM-65 Maverick
AGM-114 Hellfire
GBU-xx Paveway
AIM-9 Sidewinder
Maintenance Levels
O-Level
I-Level
Depot-Level
Aerospace Test System
TS-321 Series
Automotive Test System
TS-322 Series
Satellite Test System
TS-323 Series
Core Test System
TS-705
Base Analog/Digital Core Test System
TS-710
Core Test System with Boundary Scan
TS-720
Mixed Signal Test System
TS-730
Digital Test System
TS-750
Commercial Avionics Test System
TS-770
Military Avionics Test System
TS-775
GENASYS
High Performance Mixed Signal Test Platform
GENASYS Benchtop
Compact / Portable Test Platform
5G mmWave
Production Test Platform
TS-900e-5G Series
RF, Analog, and Digital Upgrade/Expansion
MTEK Series
Integrated Semiconductor Test Platform
TS-900 Series
Integrated Semiconductor Test Platform with Timing per Pin
TS-960 Series
Integrated Semiconductor Test Platform with Timing per Pin
TS-960e Series
GENASYS Semi
Semiconductor Test Platform
Aerospace Test System
TS-321 Series
Automotive Test System
TS-322 Series
Satellite Test System
TS-323 Series
Core Test System
TS-705
Base Analog/Digital Core Test System
TS-710
Core Test System with Boundary Scan
TS-720
Mixed Signal Test System
TS-730
Digital Test System
TS-750
Commercial Avionics Test System
TS-770
Military Avionics Test System
TS-775
GENASYS
High Performance Mixed Signal Test Platform
GENASYS Benchtop
Compact / Portable Test Platform
Rugged Field Test Set
MTS-207
SmartCan Universal Hand-held Test Set
MTS-3060C SmartCan
Portable PXI Chassis
GX7600
SmartCan Universal
Armament Test Set
3060A SmartCan
Maverick Field Test Set
MTS-206A
SmartCan -
Maverick AGM-65
MTS-3060A AGM-65
Hellfire / Longbow Test Set
AN-TSM-205
SmartCan -
AMRAAM AIM-120
MTS-3060A AIM-120
Modular Target Simulator
MTS-916
F-35 Armament Test Set
MTS-235A
Laser Source Simulator
MTS-1888
Common Armament Test Set
MTS-209
Hellfire Missile Simulator
MT3045
Rugged Field Test Set
MTS-207
Hellfire / Longbow Test Set
AN-TSM-205
Maverick Field Test Set
MTS-206A
Common Armament Test Set
MTS-209
F-35 Armament Test Set
MTS-235A
Commercial
Military
GENASYS Rugged
Adverse Environment Test Platform
Test Executive and IDE
ATEasy
Digital I/O Vector Suite
DIOEasy
Semiconductor Test Suite
ICEasy
Waveform Analysis Suite
WaveEasy
LASAR Development Suite
DtifEasy
Calibration & Verification
CalEasy
Products
Software
ATEasy
DIOEasy
DtifEasy
WaveEasy
CalEasy
ICEasy
All Software Products
Chassis & Controllers
Chassis
Chassis Controllers and Bus Expanders
All Chassis and Controllers Products
Digital I/O
Dynamic Digital I/O Instrumentation
Static Digital I/O Instrumentation
Digital I/O Software and Training
ROM Emulator Instrumentation
JTAG / BDM Instrumentation
All Digital I/O Products
Measurement
Digital Multimeter Instrumentation
Counter Timer Instrumentation
Digitizer Instrumentation
A/D Converters, Multi-function Instrumentation
All Measurement Products
Stimuli
Arbitrary Function Generators
Standards Source Instrumentation
Multi-function Instrumentation
D/A Converters and Precision DC Source Instrumentation
All Stimulus Products
FPGA
Digital I/O
Multi-Function
All FPGA Products
Switching
3U PXI
6U PXI
GENASYS
Matrix
Multiplexer
RF
High Current
High Density
General Purpose
All Switching Products
SMUs & Power Supplies
Power Supply Mainframe and Modules Instrumentation
Precision DC Source Instrumentation
All SMUs & Power Supplies Products
Bus Interfaces
Bus Expanders
GPIB
MIL-STD-1553
ARINC 429
Comm
All Bus Interfaces Products
GPIB Instrumentation Replacements
Wavetek Replacements
HP Replacements
All GPIB Instrumentation Replacements Products
PXI Instruments
Chassis and Controllers
Digital I/O
Measurement
Stimuli
FPGA Cards
Switching
Power Supplies
Bus Interfaces
All PXI Instruments Products
Legacy
GTXI Chassis, Controllers and Instrumentation
Digital I/O
Stimuli
Switching
Power Supplies
All Legacy Products
Military
Missile Launchers
All Military Products
Support
M@GIC Online Support
User Forums
Knowledge Base
White Papers
Downloads
Recent Downloads
News & Events
Blogs
Newsletters
External Articles
RSS Feeds
Press Releases
Tradeshows & Events
Workshops & Seminars
Recent Downloads
Company
Company Profile
Links & Affiliates
Privacy Policy & Terms of Use
Quality & Regulatory
Contact Us
Find a Representative
Maps & Directions
Careers
Menu
Sign In
Test Solutions
Military
Areospace
Semiconductor
Manufacturing & Production
Portable & Handheld
Software
Products
Software
ATEasy
DIOEasy
ICEasy
WaveEasy
DtifEasy
CalEasy
All Software Products
Chassis & Controllers
Chassis
Chassis Controllers and Bus Expanders
All Chassis and Controllers Products
Digital I/O
Dynamic Digital I/O Instrumentation
Static Digital I/O Instrumentation
Digital I/O Software and Training
ROM Emulator Instrumentation
JTAG / BDM Instrumentation
All Digital I/O Products
Measurement
Digital Multimeter Instrumentation
Counter Timer Instrumentation
Digitizer Instrumentation
A/D Converters, Multi-function Instrumentation
All Measurement Products
Stimuli
Arbitrary Function Generators
Standards Source Instrumentation
Multi-function Instrumentation
D/A Converters and Precision DC Source Instrumentation
All Stimulus Products
FPGA
Digital I/O
Multi-Function
All FPGA Products
Switching
3U PXI
6U PXI
GENASYS
Matrix
Multiplexer
RF
High Current
High Density
General Purpose
All Switching Products
SMUs & Power Supplies
Power Supply Mainframe and Modules Instrumentation
Precision DC Source Instrumentation
All SMUs & Power Supplies Products
Bus Interfaces
Bus Expanders
GPIB
MIL-STD-1553
ARINC 429
Comm
All Bus Interfaces Products
GPIB Instrumentation Replacements
Wavetek Replacements
HP Replacements
All GPIB Instrumentation Replacements Products
PXI Instruments
Chassis and Controllers
Digital I/O
Measurement
Stimuli
FPGA Cards
Switching
Power Supplies
Bus Interfaces
All PXI Instruments Products
Legacy
GTXI Chassis, Controllers and Instrumentation
Digital I/O
Stimuli
Switching
Power Supplies
All Legacy Products
Military
Missile Launchers
All Military Products
Support
M@GIC Online Support
Users Forums
Knowledge Base
White Papers
Downloads
Recent Downloads
News & Event
Blogs
Newsletters
ExternalArticles
RSS Feeds
Press Releases
Tradeshows & Events
Workshops & Seminars
Recent Downloads
Company
Company Profiles
Links & Affiliates
Privacy Policy & Terms of Use
Quality & Regulatory
Contact Us
Find A Representive
Maps & Directions
Careers
USA
NIDAQmx driver and example
Home
»
Support
»
User Forums
»
ATEasy - Drivers
John K.
Bacau,
Mar 11, 2011
55
Posts
0
✔
|
✗
0
Re:
NIDAQmx driver and example
Hi there! I have a big confusion here! I'm studying the NIDAQmx example program from the ATEasy install folder. In the example tests called "Analog In", "Analog Out" etc., at the end of the code, the statement "DAQ Task Clear()" appears, with no argument. If you will follow the steps where g_dwTaskHandle and g_DefaultTaskhandle appear, you will see that in the end, none of the code that pertains to ClearTask(dwTaskHandle) function will be run! Because "DAQ Task Clear()" with no argument means the value 0 is passed instead of "dwTaskHandle", and so neither one of the 3 "if" statements pertaining to the ClearTask(dwTaskhandle) function will be executed! So, this Clear() statement is not useful at all. If you take my oppionion, it should be done like this: "DAQ Task Clear(g_dwTaskHandle)". Anyone got my point? I hope to receive a reply from someone here....
Edit your Message
Dale J.
La Verne, CA
Mar 16, 2011
22
Posts
0
✔
|
✗
0
Re:
NIDAQmx driver and example
Hi Alex,
The statement "DAQ Task Clear()" is an ATEasy Command that is linked to the procedure "ClearTask". This procedure has the handle parameter included in it as an optional parameter. The code for the ClearTask procedure shows that only the first IF statement is guaranteed to be skipped if the parameter is missing. The other IF statements could execute if the g_dwTaskHandle or g_dwDefaultTaskHandle variables are equal to the default value for the optional parameter (0). In this case, a new Task will be created.
However, I see your point. If the g_dwTaskHandle or g_dwDefaultTaskHandle variables are not equal to the default value for the optional parameter, no code will execute and the task will not be cleared. However, rather than reference the driver variable g_dwTaskHandle from the Program module, I would modify the driver and add an ELSE statement to the first IF statement:
! stop and close the handle
if dwTaskHandle
CheckError(DAQmxClearTask(dwTaskHandle))
else
CheckError(DAQmxClearTask(g_dwTaskHandle))
endif
Regards,
Dale
Edit your Message
John K.
Bacau,
Mar 21, 2011
55
Posts
0
✔
|
✗
0
Re:
NIDAQmx driver and example
Thank you for your kind reply, Dale! I've passed this problem modifying the driver the way you pointed and, also, deleted the rest of the code which creates a new task. We have the DAQ Task Create() command for that, I don't see why to mix up. Anyway, thank you for your help! Keep in touch. Have a nice day!
Edit your Message
Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click
here
to register today!
All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk.
[Read More]
Select Your Country
Email this Page
Your Name
Required
Your Email
Required
(use commas to separate multiple email addresses)
To Email
Required
Subject
Required
Link
Enter message in space below