Jump to content

viSci

Members
  • Posts

    471
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by viSci

  1. FYI - Here is a Question and Answer to Jason Reding at NI concerning the use of RT-FIFO enabled NSV's:

    6. Are there any caveats in creating programmatic access or alias binding to cRIO hosted NSV's with RT-FIFO enabled?

    The automatic deployment of RT-FIFOs to decouple your read/write access from the jitter occurred when accessing the network stack is only a feature of the static variable node. When using the programmatic API, you will be communicating with the variable in the same manner as if the variable had been deployed without the RT-FIFO option enabled. If this is functionality you need, we recommend you use the programmatic RT-FIFO API directly to decouple your deterministic loop from your network communication loop. This loop would look something like the following:

    post-162-063623800 1285188412_thumb.png

    In terms of binding, my understanding is that the binding just serves as another level of indirection to the original point deployed in the SVE. In essence, the SVE of the bound point becomes a client of the SVE of the original point. However, the configurations applied to the deployed points in the two SVE's are still unique. In other words, just because the original point was configured with the RT-FIFO option enabled doesn't mean clients accessing the bound point will access the bound point through an RT-FIFO. For this to occur, the configuration for the bound point would also need to enable the option for the RT-FIFO. The same goes for the network buffer configuration options. Accessing bound points using the programmatic interface has no additional caveats over accessing a non-bound point through the programmatic API.

  2. It appears that all of the strange conflicts I was seeing were being caused by some 'innocuous'

    initialization code that contained a call to the RT Set Time and Date vi. Apparently, this is a no-no

    when your RT code if first starting up and can cause problems with the static NSV init code

    that the LV2010 compiler generates which runs in the background as your RT code begins execution.

    So I guess my title should be changed to LV2010+Static NSV+Dyn NSV+RT Set Time and Date=Watchout!

  3. Just a word of warning based on my recent experience...

    If your RT code has lots of static NSV nodes and you are also programmatically opening NSV references then

    you need to make sure that the behind-the-scenes init code that comes with each static NSV node

    has completed before attempting to use the NSV API. If you do not then you may corrupt the SVE

    and will have to reboot to recover. Currently I just do a dumb wait (30s in my case), it would

    be nice if there was a way to find out programmatically when it was safe to start executing your RT code.

    • Like 1
  4. Hi Christian,

    Thanks for the suggestion. I took a look at the SNTP client vi's and they look pretty simple (as the name implies). I think I can get a SNTP server going

    with this as a starting point. I hope that in a future release, NI will consider adding a 1588 windows client to the NI-SYNC driver.

  5. I am trying to create a vi to servo the windows system time to match my cRIO clock which is disciplined by GPS.

    I was hoping to find a IEEE1588 stack for windows that would do this for me but in the meantime...

    It appears that the way to do this is by using a windows dll function called SetSystemTimeAdjustment which can speed up or slow down

    the windows tick time, with this in hand, you can implement a PID servo loop to gradually sync the clock to an external reference.

    I was wondering if anybody has gone down this path before and might have a few tips.

  6. LVRT even on an older cRIO should provide plenty of cpu bandwidth for simple constructs such as a state machine or timed loops etc.

    The things that can really eat up cpu is the scan engine and the use of network shared variables. BTW, the distributed system manager

    will give you a readout of cpu% and memory usage so you can easily run some preliminary tests.

  7. I think you are unnecessarily taxing your diagram real estate :)

    You need to first come up with a performance spec - how fast do you need to sample your tire temp's (include the transducer response time also) Chances are this sampling rate will be glacially slow compared to

    the performance of the FPGA. I would go with the mux'd version, it will probably give you sub us synchronization.

  8. Very interesting, thanks Paul for putting together so much good information. You have given me some new ideas!

    I have developed a system that is similar except I use NSV with variant payloads to message my cRIO processes.

    I also rely on Citadel and DSC SV events. I agree that it would be nice if they became a native part of LV. I thought someone

    (maybe you) told me that DSC runs a service that polls the NSV's for change and then somehow generates the user events.

  9. I have worked with 'experimental' peristaltic pumps using every kind of motor drive (PWM, H-Bridge, Stepper, Servo) and never had a problem as long as you remember to

    make sure that your analog and digital grounds stay as separate as possible.

    If you need more isolation then send the PWM through an optocoupler which will break the ground connection entirely.

  10. Has anyone else noticed a significant increase in variant attribute performance in LV2009SP1 from LV8.6.1?

    In the past I had been using VA's for Current Value Table Implementations but reverted to using simple

    numeric arrays in LV8.6 since the array based implementation seemed to be faster. Now in LV2009SP1

    the opposite is true by a wide margin (40%).

×
×
  • Create New...

Important Information

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