ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Using DAQmx in scilab

Hi,
 
i want to use DAQmx in Scilab. I intend to make some simple functions as read,write,...
 
The problem is that i succesfully link nicaiu.dll into scilab, but when i call a function (eg. DAQmxResetDevice) i get an error.
This is my code :
 
functions=['DAQmxResetDevice'];
link('nicaiu.dll',functions,'c');
call('DAQmxResetDevice','Dev1',1,'c');
 
After the link command scilab writes 'linking done', but after call command it writes this :
 
Warning !!!
Scilab has found a critical error (EXCEPTION_PRIV_INSTRUCTION).
Scilab may become unstable.
 
Anyone knows what am i doing wrong?
 
Thanks for help
 
Peter
0 Kudos
Message 1 of 3
(5,279 Views)
 
 

Hi Peter,

This is an interesting one. I'll preface this by saying that Scilab isn't one of the supported languages for DAQmx so it may not work. It looks like you've already been on this thread regarding using DAQmx with another textual math language, which while not supported seems to work fine for several users. This may or may not be the case for Scilab. I know you can use Scilab in LabVIEW  so you could do your data acquisition in LabVIEW and your processing in Scilab (or MathScript), but I realize this may not be an option. I'm not familiar with Scilab, you may want to check out their forums to see their take on your error message. Also, can you link and use any other .dll's successfully? Do all the DAQmx calls return that same error? What happens if you ignore the error and continue running?

We can definitely help you with any DAQmx questions and it's quite possible that one of the other forum regulars has done something similar and will grace us with a solution. Please post back if you make any breakthroughs or run into any additional questions that you think we can help out on.

Cheers,

Andrew S.

National Instruments

 

Message Edited by stilly32 on 12-19-2006 09:38 AM

Message 2 of 3
(5,252 Views)
 

Peter,

As Andrew mentioned, LabVIEW is now capable of interfacing with Scilab:
https://www.ni.com/en/support/documentation/supplemental/06/connecting-labview-with-scilab-enterpris...

This could allow you to combine your Scilab code with the powerful hardware interface capabilities of LabVIEW.  It would also llow you to have more control over DAQ, since Scilab is not a hardware programming language.  Since this is a new feature in its beta release, we are very interested in hearing about customers who are using Scilab with DAQmx.  If possible, I would like to hear more about your application, and we may be able to come up with a solution for you.

Chris M.
Applications Engineer
National Instruments

0 Kudos
Message 3 of 3
(5,235 Views)