Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

running VI targetted to RT PXI instead of deploying it

Hi all

I have an VI to acquire temperature from an RT pxi, I am using NI DAQmx 7.4 drivers, I have created all the channels as global channels and acquiring the voltage, am also acquiring the CJC temperature seperately then converting the voltages from thermocouple to temperature. This VI works fine when it is targetted to the PXI, but if I create a exe(startup.exe) and start the PXI the CJC physical channel's are not getting converted to virtual channels. the application does not come out of the function. can any one please tell me what the problem might be?

Thank u very much
Arun
0 Kudos
Message 1 of 3
(3,121 Views)
hi

after lot of tries to find what the problem is am still not able to solve it, but i got that the error is in Create Virtual channel.vi of DAQmx. the error i received is

-88705

DAQmx Create Channel (AI-Voltage-Basic).vi
Device: SC1Mod1

Task Name: _unnamedTask<0>

this is the error when the application is deployed on the RT system, if i run the same VI targetted to RT system every thing works fine, what is the error i am receiveng?

kindly help
Arun
0 Kudos
Message 2 of 3
(3,107 Views)
-88705 is that a device is not present or not active in the system.

You may be running into a similar problem to what we have. The explanation that NI gave me is that when you boot a PXI, your application starts up before the PXI has completed initializing all of its software and drivers. On our system, we try to access channels 30 seconds before they are accessible.

When running targetted, the PXI is already up and running, so things work a little differently.

Try putting a delay at the start of your program to see if this error goes away.

Other than that... Post a bit of code that reproduces this problem so we can take a look at it.

Rob
0 Kudos
Message 3 of 3
(3,093 Views)