decyL Posted December 1, 2005 Report Share Posted December 1, 2005 In this block error occurs after build. Has anyone got an idea what happens? Greetings, I will be grateful for any kind of clues, hints and tips. - error is: given session or object reference is invalid Quote Link to comment
crelf Posted March 27, 2006 Report Share Posted March 27, 2006 I'm having the same problem - I create a very simple VI (DAQmx read in a loop - output to a chart): and I create the channel in my LabVIEW 8 Project. When run in the LabVIEW development environment it works fine but once built I get error -200428 "Value passed to the Task/Channels In control is invalid. The value must refer to a valid task or valid virtual channels." Anyone got any ideas? (I've attached the full project in a zip) Download File:post-181-1143480404.zip Quote Link to comment
Dan Bookwalter Posted March 27, 2006 Report Share Posted March 27, 2006 I'm having the same problem - I create a very simple VI (DAQmx read in a loop - output to a chart): and I create the channel in my LabVIEW 8 Project. When run in the LabVIEW development environment it works fine but once built I get error -200428 "Value passed to the Task/Channels In control is invalid. The value must refer to a valid task or valid virtual channels." Anyone got any ideas? (I've attached the full project in a zip) I posted this to Info-Labview Chris It appears to be a permission problem... if you copy the nidaqmx.ini file to c:\ and edit the "NI-DAQmx.ApplicationStorageFile" parameter in the apps .INI file to point to the c:\NI-DAQmx.ini , it should work. Dan Quote Link to comment
crelf Posted March 27, 2006 Report Share Posted March 27, 2006 It appears to be a permission problem... if you copy the nidaqmx.ini file to c:\ and edit the "NI-DAQmx.ApplicationStorageFile" parameter in the apps .INI file to point to the c:\NI-DAQmx.ini , it should work. Also from Info-LabVIEW: Thanks for the suggestion Dan - it cleared my mind! Actually, it's not a permissions issue, it's that the builder creates the wrong path in the application's .ini file - my NI-DAQmx.ApplicationStorageFile was set to "applicationfolder\nidaqmx.ini", where it should have been just ".\nidaqmx.ini" - looks like a bug to me! Quote Link to comment
crelf Posted March 27, 2006 Report Share Posted March 27, 2006 it should have been just ".\nidaqmx.ini" After further research, it turns out that it needs to be a fully-qualified absolute path. Quote Link to comment
Jenny Squibb Posted March 29, 2006 Report Share Posted March 29, 2006 I'm having the same problem - I create a very simple VI (DAQmx read in a loop - output to a chart): and I create the channel in my LabVIEW 8 Project. When run in the LabVIEW development environment it works fine but once built I get error -200428 "Value passed to the Task/Channels In control is invalid. The value must refer to a valid task or valid virtual channels." Anyone got any ideas? (I've attached the full project in a zip) Good catch. We have verified that this is in fact a bug with the ways in which paths are formed in certain situations. We are looking into a solution to this issue and hope to have it resolved in a subsequent DAQmx/LabVIEW release. In the mean time there are two ways to work around this bug 1. Modify the build spec's "Destinations->Support Directory" to be a sub-directory of the "Destinations->Destination Directory" location. "data" is the default sub-directory when a build spec is created. 2. After building the app, hand edit the <application name>.ini file and change the NI-DAQmx.ApplicationStorageFile key to be an absolute path to the .ini file or a relative path to the .ini file without a ".\" before the path Quote Link to comment
crelf Posted March 31, 2006 Report Share Posted March 31, 2006 Good catch. We have verified that this is in fact a bug with the ways in which paths are formed in certain situations. Great - can you please provide a CAR number so we can track it here? Quote Link to comment
crelf Posted June 8, 2006 Report Share Posted June 8, 2006 Great - can you please provide a CAR number so we can track it here? Hey Chris - any progress on that CAR? Or better yet - any progress on a bug fix Quote Link to comment
Jenny Squibb Posted August 18, 2006 Report Share Posted August 18, 2006 Hey Chris - any progress on that CAR? Or better yet - any progress on a bug fix This bug has been fixed in LabVIEW 8.20 and NI-DAQ 8.3. Installing NI-DAQ 8.3 and using it a version of LV < 8.20 will still show the problem. Using a version of NI-DAQ < 8.3 with LV 8.20 will also show the problem. Quote Link to comment
crelf Posted August 18, 2006 Report Share Posted August 18, 2006 This bug has been fixed in LabVIEW 8.20 and NI-DAQ 8.3. That's great news (and just in time for my project too) - thanks so much for keeping us updated! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.