How to programmatically create VIs without user interaction?

I have a LabVIEW project with five cRIO goals. I wrote assembly VI of the assembly, which compiles and deploys rtexes, after deployment, the target reloads. The problem is that when deployed, LabVIEW opens a connection to the target that it wants to support. That's why it displays a dialog box with an error saying: "Warning: connection to target (name) has been lost." Now the question is, what do I need to do to suppress these dialogs, or how can I write that they are completely avoided?

Run assembly for each RT if button is pressed Build, Deploy, Clean Up, and Reboot

EDIT: I want to build or compile builds specifications, I don't want to generate code. The problem is that if LabVIEW connects to cRIO, it supports the connection and when it restarts, it cannot reconnect because it will stop the rtexe being executed so that it detects an error that I don’t know how to suppress or get rid of it, I need to restart to execute the built rtexe.

Unwanted popup

EDIT 2 The problem is that this pop-up window blocks the execution of the following code. It should be quiet VI without pop-ups. Replication software is not the right choice because the code differs from target to target.

+4
source share
1 answer

It seems that cRIO has been added to your project. Interestingly, the deployment will automatically connect, but not disconnect.

One of the possibilities is to disable automatic connection checking in the cRIO project properties.

Another possibility is that LabVIEW is disconnected from all targets. See screenshot below. Basically, you sort through all the devices of all open projects and disconnect from them. You must do this after each deployment.

Disconnect from all connected targets in LabVIEW

[Sorry, only German LabVIEW is available here]

+1
source

All Articles