07-20-2009 04:49 PM
I am using SIT and I am somewhat familiar with the code generated by SIT Connection Manager. I was trying to gain greater functionality (stopping the simulation at certain events, inputing certain signals automatically after some calculation, deploying several different models from the same VI, etc.) so I started experimenting with the SIT User Interface blocks that come with the toolkit. They seem to work rather well for what I am doing, but this takes up much more processing power than with the connection manager. I am running the same .dll with the same driver .vi in both the .vi I created and the .vi created by SIT connection manager. The one done with the connection manager takes about 2% of my target's processing power. The one I created with the user interface blocks takes over 60% of the CPU. They are both running the same model. Why is this? Attached is a project with the 2 VIs in it and the model.
-Eric
07-21-2009 03:14 PM
07-21-2009 03:46 PM
It seems that whenever I save a new copy of the file, it becomes corrupted. Therefore, I cannot post the code. I do not think that it really matters though, as I have decided that the generated code better fits what I want to do anyway. There is one question I have though. I would like to input values to the model from Labview. When a control is mapped in SIT connection manager, it does not get wired to anything. It can therefore only be changed with the mouse or keyboard. I would like this value changing to be automated and in the background. When using just the SIT blocks, there is a vi called SIT Write.vi that does exactly what I would like to do. A value (possibly a changing value) can be wired to a specific point in the model and is updated every time you go through the loop (see the updatingindicators.vi example for SIT to see what I'm talking about). Is it possible to do this with the generated code, or is there some way to use both the generated code and this SIT Write.vi?
-Eric
07-24-2009 02:19 PM
07-27-2009 01:08 PM
This method works perfectly for what I want to do. Thank you.
-Eric