04-07-2015 10:01 AM
Hi,
I am actually creating a custom device (asynchronous) that is controlling a climatic system. It consists in adapting a functionnal LabVIEW code to create the custom device. Unfortunately the LabVIEW code uses a lot of FGVs that act as inputs and outputs at the same time (it means that the system can change the value of an input).
So, I would like to know if there is an easy way to set the value of an input from the custom device engine code. I tried the following solutions without success :
So, is there something I can do to facilitate my custom device creation ? instead of "re-thinking" the whole code which is a real pain in the *** because of the complexity of it ?
Thanks in advance.
Solved! Go to Solution.
04-07-2015 10:11 AM
Hi,
I think you can do it from an Inline custom device, but you need to set the direction of your channel (flags) as readable and writable so you can do the both operations.
Best regards
04-07-2015 10:24 AM
04-07-2015 10:33 AM
Re,
We solved that by using the inllne part for only channel updating and defering the real treatments to asynchronous threads with data exchanges through FIFOs.
++
04-07-2015 10:35 AM
04-07-2015 11:41 PM
Actually we use such apporach in our custom devices.There is a library, that helps with managing of the asynchronous process.
You can look at the source f.e. of following custom device including the library: https://github.com/NIVeriStandAdd-Ons/CANopen-Master-Custom-Device
~Jiri
CLA, CTA