Jump to content
Sign in to follow this  
Waterppk

Better way to Global share RT Variables?

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 to

help you bind entire libraries. You can also programmatically transfer Network Shared Variable data using Datasocket.

can those methods be used in cRIO?

Ben

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 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.

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

Share this post


Link to post
Share on other sites

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 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.

Is there a write up somewhere on the "mirror" library approach?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.