LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SIT Connection Manager vs SIT Blocks

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

0 Kudos
Message 1 of 5
(3,785 Views)
It appears the SIT_Blocks_Version.vi was corrupted when zipped. Could you please post it again?
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 2 of 5
(3,767 Views)

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

0 Kudos
Message 3 of 5
(3,765 Views)
The controls that are not wired to anything are being read by reference. You should be able to create a parallel while loop that writes to the Value (Signalling) property of the control. This gives you programmatic access to the values adn signals a value change event each time it is called.
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 4 of 5
(3,737 Views)

This method works perfectly for what I want to do.  Thank you.

 

-Eric

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