Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use MATLAB to set the PFI5/UPDATE signal to be an output? (PCMCIA DaqCard 6062E)

I'm using NIDAQ v6.9.3, since that's what supported by the MATLAB Data
Acqusition Toolbox. Looking at the NIDAQ Function Reference, I am
fairly positive that I can use the Select_Signal function to place the
UPDATE signal on the PFI5/UPDATE pin. So I have 2 questions, really:

(1) If I need to use Select_Signal to do this, how would I do it from
MATLAB? The only solution I see right now is taking the C libraries
for NIDAQ and wrapping them into a MEXfile that MATLAB can read.

(2) Is there another way in MATLAB to set PFI5/UPDATE to an output
that I'm just not seeing?
0 Kudos
Message 1 of 6
(3,285 Views)
Greetings,

I would suggest to contact Matlab support for assistance with programming with the Matlab DAQ toolbox.

If you can have Matlab call the NI-DAQ dll, you are correct in thinking that all you will need to do is call the Select_Signal function. Routing the AO update clock to PFI 5 with the Select_Signal function will allow you access to the update clock on the PFI 5 pin.

If you have questions on the NI hardware or think the hardware is malfunctioning, NI support will be able to assist you.

Have a great day.

Regards,

Todd D.
NI Applications Engineer
Message 2 of 6
(3,285 Views)
Thank you!
0 Kudos
Message 3 of 6
(3,285 Views)
I found the NI-DAQ *.lib files (nidaq32.lib and nidex32.lib) but any *.dll files seem to be related to MAX or other apps. (If I can find a DLL I can solve my problem.) Is there a single NI-DAQ *.dll file? If so, what/where is it in the directory structure or on the install CD? Thanks.
0 Kudos
Message 4 of 6
(3,285 Views)
dariusk,

The NI-DAQ related .dll files can be found in C:\WINDOWS\System32 directory. I believe that the .dll files are bundled into the installer on the CD so they are unavailable for individual selection. You should be able to get at them in the System32 directory however. If that doesn't help post back and we'll see what we can do. Good luck!

Craig H.
NI Applications Engineer
0 Kudos
Message 5 of 6
(3,285 Views)
Thanks again. My problem is 100% solved, as I found out how to call the DLLs from MATLAB. For the benefit of anyone searching these forums, the appropriate information can be found on the Mathworks support site, solution #33513:

http://www.mathworks.com/support/solutions/data/33513.shtml

Darius K.
0 Kudos
Message 6 of 6
(3,285 Views)