Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Compactdaq and simulation interface toolkit

I'm using simulation interface toolkit to make an interaction between simulink model and matlab(the idea is that with matlab i prototype a controller for a mathematical model  while in labview i use that control with the real process).I have created a dll of the simulink model and now i want to use it in Labview with compactdaq to control the real process.In the Simulation Interface Toolkit user guide is written that i can use the dll  with real time hardware and with certain types of DAQ devices, i'd like to know if
it's possible with CompactDaq (using 9215 and 9263 module). It's very important for me this answer.THX
0 Kudos
Message 1 of 12
(4,587 Views)
 
 
Hello Freddino,
which version of Simulation Interface Toolkit are you using?  The devices which can be used depends on SIT version at hand.
For what concerns each single DAQ devices, the compatibility seems to be granted for all the boards which work with the corrensponding DAQ driver version (i.e. DAQmx 8.3.1 support 9215 and 9263 modules)
 
Hope this helps,
 
Best regards
 
Fabio
 

Message Edited by Fabio_81 on 03-06-2007 04:13 AM

Message Edited by Fabio_81 on 03-06-2007 04:19 AM

Fabio M.
NI
Principal Engineer
0 Kudos
Message 2 of 12
(4,554 Views)
Thx for the answer, i have downloaded the two files in "Simulation Interface Toolkit (SIT) with DAQ Boards that Only Support NI-DAQmx"
you suggested but when I start the vi  my Compactdaq  can't be choosen for ai/o channel so i think it's not compatible with Simulation Interface
0 Kudos
Message 3 of 12
(4,545 Views)
Hi Freddino,

Please post what version you are using so we can help you.

If you are using the automated fix suggested for version 2.0.x, you may be having trouble with the default device names for CompactDAQ devices.  Try renaming your modules to "Dev1", "Dev2", etc. in MAX and see if they are available for selection in your application.

Regards,
Kyle
0 Kudos
Message 4 of 12
(4,536 Views)
I have the latest SIT 3.0.2
0 Kudos
Message 5 of 12
(4,521 Views)

Freddino,

That's good.  What version of NI-DAQmx do you have?  The latest, version 8.5, is now available for download:

http://digital.ni.com/softlib.nsf/websearch/E2C96196892A649D86257291004F8EDC?opendocument&node=132060_US 

Regards,
Kyle

 
0 Kudos
Message 6 of 12
(4,517 Views)
i have the 8.3.0f0 ni_daq driver
0 Kudos
Message 7 of 12
(4,513 Views)
Because Compact DAQ operates over the USB bus, it is not at all well suited for hardware-timed single point I/O, which is what the Simulation Interface Toolkit uses for its I/O. Compact DAQ excels with buffered acquisitions and waveform generation. In other words, Compact DAQ is very well suited for reading in data in 1000-point chunks, for instance, not one point at a time. Your absolute best bet would be to use a DAQ board on a dedicated bus such as PCI or PXI.

You may or may not be able to even try using your Compact DAQ in your simulation. Like a previous post said, you could try renaming the device to Dev1 or Dev2, but the DAQ driver might not even allow the Compact DAQ modules to operate in HW-timed single point mode. There is just way too much latency in any USB data transfer to support this operation. If for some reason the driver does allow it, your sustainable loop rates would be very low. This is just a consequence of the transmission bus.

Message Edited by Jarrod S. on 03-06-2007 02:02 PM

Jarrod S.
National Instruments
0 Kudos
Message 8 of 12
(4,507 Views)
Thx a lot for the answer. In fact when i try to configure the harware i/o in SIT with real time hardware it requires an ip address that i could  have only with  a  ethernet daq device..I'll ask to my professor to use C-RIO .
0 Kudos
Message 9 of 12
(4,499 Views)
cRIO would be a good choice for your application. You can use the C-Series modules, but have the cRIO controller control them instead of the Compact DAQ chassis.

For completeness sake, you can actually run your simulation DLL and use hardware IO on your host PC. You can do this by typing localhost into the IP address, or entering the actual IP address for your PC. Regular PCs don't have real-time performance, however, so there could be hiccups in the execution of your simulation if Windows decides to interrupt, which it could do at any time outside of your control. Hope this helps!
Jarrod S.
National Instruments
0 Kudos
Message 10 of 12
(4,485 Views)