07-30-2009 09:35 AM
Solved! Go to Solution.
07-30-2009 01:17 PM
07-31-2009 02:10 PM
06-07-2010 09:27 AM
Hello,
I have a similar problem... but I haven't understood really well your solution. I am a basic user and i'm a bit stuck with all of this... could you please tell me the solution in a way i can implement it step by step?
thank you so so much
alfonso
06-07-2010 09:57 AM
in your host VI.
click tools >> Sit Connection Manager
select the hardware IO category
click buffer settings
A menu will pop up with three settings: Number of Signals, number of data points, and Circular Buffer size.
Number of Signals refers to the number of mappings you have made.
Number of data points refers to the total size of all signals. In other words, if I have mapped three signals and one is an array of 5 elements, number of data points needs to be at least 7.
Circular buffer size, I think, is the total amount of data. So to continue the above example, if all signals are doubles, then the circular buffer needs to be at least 7 (number of data points) x 8 (bytes per double) or 56.
Hope that helps.
06-07-2010 10:36 AM
Hello,
thanks for replying so soon. The thing is that I am working with SIT but not with the I/O of the hardaware, what means i can't access to the place you tell me in SIT menu....
I've mapped 2 controls and 2 indicators and in simulink i placed scopes to see if it's receiving the values, but it appears nothing, i guess it's cause it is not reading the signals i send from labview. The 2 outputs of my -mdl I use them in the main loop of my .vi. I don't know if I've explained more or less my situation.
The interface i think is fine, since if i place a constant value in my labview block diagram connected to the indicators, when i execute the .vi, the mdl does it as well, and i see that by changing the value of the 2 constants in the frontal panel (since they are controls), in the simulink it shows that change (only if i change quicly in the frontal pannel the values, otherwise it shows the initial value i set at the beginning...it's really weird).
so my situation is frustrating, i don't know what it's wrong... I'm working in real time, since the operations my model in simulink does is changing the parameters of one equation every 20min and it returns the duty cicle of the controller i'm implementing... for this reason i need to work in real time.
another question is, i haven't create dthe .dll, instead i'm woiorking with matlab and labview opned at the same time and before starting i build the model of simulink and it looks it gives me no error... should I crete the dll and work with it?
thank you very much,
wait for your answer.
ALFONSO
06-07-2010 10:46 AM
Hmmmm. . . I havent done much connecting to an open simulink session. I've always just used the dll.
If you are only using two indicators and two controls you shouldn't need to change any of the values I mentioned. The defaults should be good enough. For future reference though, even though those settings are found under hardware I/O, they are actually configuring the data stransfer between the host and the real time applications. Confusing, I know. Thats how I ran into the problem I had.
It actually sounds like the problem you are having may be a model problem. If you can see the values change, but they imediately change back, it sounds like your model is overwriting the values of whatever your constant blocks are attached to.