LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ task definition in SIT

Hi;

I am wondering if there is any way to define a task in the driver generated by the SIT manager. For instance, in the DAQ application, my max and min inout voltages are +-5 Volts and ground type is RSE and I woud like to make the SIT- generated driver work with these DAQ task parameters. Also, is there any additional step that I have to follow in order to run the code on a real-time target such as PXI 8176 with these  DAQ task parameters.

Thank you!

Serdar

Message Edited by soylu on 03-11-2009 03:49 PM
0 Kudos
Message 1 of 14
(3,846 Views)

Soylu,

 

To run your VI on a real-time (RT) target, select Tools»SIT Connection Manager from the pull-down menu and select the Real-Time Target.  Refer to the Configuring a Simulation on a Real-Time Target topic of the LabVIEW Simulation Interface Toolkit Help, available by selecting Help»Simulation Interface Toolkit Help, for more information about running a simulation on a real-time target.

 

You should have to do anything special to configure your card for exactly what you need.  Just make sure that you have DAQmx installed on the PXI-8176 and you should recognize the card and be able to configure everything from within the Hardware I/O manager.
ColeR
Field Engineer
0 Kudos
Message 2 of 14
(3,818 Views)

Hi ColeR;

Thank you so much for taking time to respond my question. I realy appreciated it. 

Currently, I am able to run my VI in real-time with PXI8176 (DAQmx is already installed and working properly). However, the question that I have is that how I am going to be able to configure my DAQ card and make the SIT-generated driver work with this configuration on the real-time machine. For instance, I would like to set my max and min voltage output +-5 Volts with RSE ground type. What I am looking for is something like defining and a task using MAX and call this configuration in the driver generated by the SIT. Currently, I am generating a NI-DAQmx task using MAX on my host machine but not able to use this configuration in my real-time  applcaition since I don't know how to make a call this task in the real-time application.

Thank you in advance.

Serdar

Message Edited by soylu on 03-12-2009 03:10 PM
0 Kudos
Message 3 of 14
(3,815 Views)

Solyu,

 

In your model file, make sure your hardware in and out blocks have been set up in your model.  You can configure them from the Configure HW I/O Mappings window inside of the SIT Connection Manager. The help file is the best resource if you run into any problems when trying to set up any of this.
ColeR
Field Engineer
0 Kudos
Message 4 of 14
(3,793 Views)

Hi Coler;

Thank you very much for your response again. I set up my hardware in and out blocks properly using Configure HW I/O Mapping window inside of the SIT Connection Manager. However, inside the SIT Connection Manager, there is no setting to sep up max and min volts and terminal configuration (RSE, differential...). Again, I went through the help file but couldn't find any help in there.

Thank you.

Serdar 
0 Kudos
Message 5 of 14
(3,765 Views)

I'm sorry for the delay Soylu,

 

I wanted to make sure to follow the steps as laid out in the help file to make sure that everything worked as described.  I followed these steps:

  1. Create a host VI with controls and indicators.
  2. Convert the model to a model DLL.
  3. Specify the model, model DLL, and execution host.
  4. Create a driver VI.
  5. Run the simulation.
Were these the same steps you followed?  If so, which step were you having troubles with?
ColeR
Field Engineer
0 Kudos
Message 6 of 14
(3,729 Views)

Hi ColeR,

No worries at all. Thank you for taking time to answer my questions. Yes those are the steps that I followed.  In terms of the question that I have, I do not have any problem running my code. My problem is that  I don't know how to configure my DAQ card when I use SIT to generate a driver VI. All I want to do is to set up my max and min ontputs to 5 and 0 volts, respectively and define my terminal as RSE. Again my application is running just fine. However, currently my max and min voltoge outputs are 10 and -10 and my terminal type is differential. Again, I didi not set this but SIT seems to be generating the driver based on these values. I just want to change this.

Thank you.

Serdar
0 Kudos
Message 7 of 14
(3,724 Views)

Solyu,

 

I will play around with the model and see if I can figure out how to do this.  I am sorry I was not reading your posts clearly enough.  I will post again when I've got something figured out.

ColeR
Field Engineer
0 Kudos
Message 8 of 14
(3,721 Views)

Hi ColerR;

I've found the following information regarding this isue on this website:

http://digital.ni.com/public.nsf/websearch/392FBAA88A6D210986257338007E1311?opendocument&Submitted&&...

By default, DAQmx scripted code assumes measurements are differential. To change to reference single-ended (RSE) measurements, find the DAQmx Configure Analog In VI, which is called as a subVI from the driver VI, and select RSE for the input terminal configuration control. 

However, in my code, this setting appears in DAQmx Create Channel (AI-Voltage-Basic).vi under  DAQmx Configure Analog In VI. So I am changing my terminal type from default to rse and settting my range from 0 to 5 and save the file using "save all" option under file. However, when I run the code, my code still obtaines values based on default terminal setting ( which is differential) instead of RSE.  What I noticed is that when I close my driver afetr saving and reopen it, for some reason, my settings are overwritten with default settings again..I am really clueless as to what is happening.

Could you please help me with this problem . I 've been working on this for a while and things have been really frustrating with this...

Thank you so much

 

 

 

0 Kudos
Message 9 of 14
(3,685 Views)

Hi Soylu,

 

In SIT Version 5.0 you can specify the terminal configuration when setting up the DAQ device (see screenshot1.jpg).

 

 

 

Also, I think you have gone too far into the VI structure when trying to see the RSE value. You will need to change the terminal configuration in the cluster that isat the Initialize Analog In.vi (see screenshot2.jpg).

 

 

Message Edited by DiscoBall on 03-20-2009 06:14 PM
Joshua B.
National Instruments
Download All
0 Kudos
Message 10 of 14
(3,678 Views)