09-03-2020 06:48 AM
If you are not creating a build (of any form) then forget about my comments, as the problems are not related to that.
Just to confirm, the situation you have is that if you run RIO_Initialise from LabVIEW it starts RIO_Controller successfully, but if you call RIO_Initialise from TestStand running on the same machine you get a 1004 error?
Can you run an Analysis of your TestStand sequence to see if that picks up any Severe errors.
09-03-2020 06:51 AM
Yes, this is exactly the problem. If I run Initialise_RIO from LV project, it works perfectly. If I run the same Initialise_RIO VI using TestStand Action step, I get the error 1004.
Regards
John
09-03-2020 07:30 AM
Is the RIO_Controller VI still running from the LV call to RIO_Initialise?
Maybe go for a Power Cycle and then run your TestStand sequence first?
09-03-2020 07:31 AM
The open VI reference function can take a path input (path of RIO_Controller VI) as well as a string input (just the RIO_Controller VI file name). If I input string, it works perfectly in LV, but produces error 1004 in TestStand (understandable because path is not wired). On the other hand, if I input path input to the open VI reference function, the TestStand produces error 1003 (in which the open FPGA reference gets destroyed).
09-03-2020 07:56 AM
Do you have this sort of thing inside RIO_Initialise
09-03-2020 08:06 AM
The path is not like this. When I browse the path of the RIO_Controller VI, it automatically changes the direction of the slashes and becomes something like this. I think this is because of the NI Linux RT target.
09-04-2020 05:08 AM
We have different setup, we are going Windows to FPGA, whereas it looks like you are going Windows to RT to FPGA?
Are you able to post your sequence/code?
09-04-2020 08:04 AM
Yes, my architecture is Host (Windows) to RT to FPGA. I am afraid I won't be able to share the code due to confidentiality reasons as it is an external project. Anyways, if you get an insight about this problem, please let me know! Any help will be appreciated!
Regards
John