03-11-2009 03:48 PM - edited 03-11-2009 03:49 PM
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
03-12-2009 02:51 PM
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.
03-12-2009 03:06 PM - edited 03-12-2009 03:10 PM
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
03-13-2009 06:20 PM
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.
03-16-2009 12:17 PM
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.
Serdar03-19-2009 05:25 PM
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:
03-19-2009 05:56 PM
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.
Serdar03-19-2009 06:01 PM
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.
03-20-2009 02:44 PM
Hi ColerR;
I've found the following information regarding this isue on this website:
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
03-20-2009 06:12 PM - edited 03-20-2009 06:14 PM
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).