Jump to content

Better way to Global share RT Variables?


Recommended Posts

Posted

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?

Posted

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.

Posted

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

Posted

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.

Posted

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

Posted

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?

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...

Important Information

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