The response to the question is Yes and No.
- Yes. Use "Set Channel Value by Data Reference.vi".
You can use this VI in the Execute Model case of an Inline Model Interface custom device, or in the Read Data from HW or Write Data to HW cases of an Inline Hardware Interface custom device. Do not use this VI outside of an inline custom device.
This vi only transfer the value of a double, but you can hack the vi and send an array. The vi is a call to moveblock, and the values of the arrays are consecutive in the memory, so the hack is very easy.
- No. If you use an asynchronous vi, you cant set the input. In this case, I use queue between the custom device and a new model as workaround.
- Create a queue in the vi of the Custom device to sent the array value
- Create a vi in labview with the array as output. The vi read the queue and set the value of the output.
- Convert the vi to model and insert in your veristand configuration.
- Connect the output of the new model with the input of your model.