Waterppk Posted May 2, 2009 Report Share Posted May 2, 2009 I inherited this piece of code, it's running on a NI cRIO and the objective of the code is to move variables from the RT variables to globals or vice versa. Anybody have a better/cleaner way of doing this? Quote Link to comment
ShaunR Posted May 2, 2009 Report Share Posted May 2, 2009 This may be of help: Inter thread Comms Quote Link to comment
viSci Posted May 4, 2009 Report Share Posted May 4, 2009 You can also bind one library (say RT target) to a 'mirror' library on another RT or Windows target. LV 8.6 has some nice tools to help you bind entire libraries. You can also programmatically transfer Network Shared Variable data using Datasocket. Quote Link to comment
Grampa_of_Oliva_n_Eden Posted May 5, 2009 Report Share Posted May 5, 2009 QUOTE (sachsm @ May 3 2009, 10:55 AM) You can also bind one library (say RT target) to a 'mirror' library on another RT or Windows target. LV 8.6 has some nice tools tohelp you bind entire libraries. You can also programmatically transfer Network Shared Variable data using Datasocket. can those methods be used in cRIO? Ben Quote Link to comment
viSci Posted May 5, 2009 Report Share Posted May 5, 2009 Yes, all the methods mentioned do indeed work with cRIO targets. In my system I have 2 9074 targets each with 9144 extension chassis. I am using the scan engine IO Variables which I can read programatically using Data Socket (DS) and then filter and scale then transfer to my version of the Current Value Table (Fancy shift register based storage) and from there the data is written to a proper NSV library which has a binding to a 'mirror' library on the windows side. From there I cannot via the DSC toolkit to my citadel database. Quote Link to comment
Grampa_of_Oliva_n_Eden Posted May 5, 2009 Report Share Posted May 5, 2009 QUOTE (sachsm @ May 4 2009, 09:53 AM) Yes, all the methods mentioned do indeed work with cRIO targets. In my system I have 2 9074 targets each with 9144 extension chassis. I am using the scan engine IO Variables which I can read programaticallyusing Data Socket (DS) and then filter and scale then transfer to my version of the Current Value Table (Fancy shift register based storage) and from there the data is written to a proper NSV library which has a binding to a 'mirror' library on the windows side. From there I cannot via the DSC toolkit to my citadel database. Thanks sachsm! I think that app would qualify under the "oil and water" catagory fore getting RT (has to be done now!) and DSC (yes, yes I'll get around to it sooner or later) into the same app. Ben Quote Link to comment
ShaunR Posted May 5, 2009 Report Share Posted May 5, 2009 QUOTE (sachsm @ May 4 2009, 02:53 PM) Yes, all the methods mentioned do indeed work with cRIO targets. In my system I have 2 9074 targets each with 9144 extension chassis. I am using the scan engine IO Variables which I can read programaticallyusing Data Socket (DS) and then filter and scale then transfer to my version of the Current Value Table (Fancy shift register based storage) and from there the data is written to a proper NSV library which has a binding to a 'mirror' library on the windows side. From there I cannot via the DSC toolkit to my citadel database. Is there a write up somewhere on the "mirror" library approach? Quote Link to comment
viSci Posted May 5, 2009 Report Share Posted May 5, 2009 http://zone.ni.com/reference/en-XX/help/37...eate_bound_var/ Quote Link to comment
ShaunR Posted May 5, 2009 Report Share Posted May 5, 2009 QUOTE (sachsm @ May 4 2009, 10:04 PM) http://zone.ni.com/reference/en-XX/help/37...eate_bound_var/ Ta very muchly. But I was more interested in how it works. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.