Jump to content

DAQmx Base Read (Analog 2D DBL Nchan NSamp)


decyL

Recommended Posts

Posted

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

  • 3 months later...
Posted

I'm having the same problem - I create a very simple VI (DAQmx read in a loop - output to a chart):

post-181-1143480568.jpg?width=400

and I create the channel in my LabVIEW 8 Project. When run in the LabVIEW development environment it works fine

post-181-1143480338.jpg?width=400

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."

post-181-1143480396.jpg?width=400

Anyone got any ideas? (I've attached the full project in a zip)

Download File:post-181-1143480404.zip

Posted
I'm having the same problem - I create a very simple VI (DAQmx read in a loop - output to a chart):

post-181-1143480568.jpg?width=400

and I create the channel in my LabVIEW 8 Project. When run in the LabVIEW development environment it works fine

post-181-1143480338.jpg?width=400

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."

post-181-1143480396.jpg?width=400

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

Posted
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!

Posted
I'm having the same problem - I create a very simple VI (DAQmx read in a loop - output to a chart):

post-181-1143480568.jpg?width=400

and I create the channel in my LabVIEW 8 Project. When run in the LabVIEW development environment it works fine

post-181-1143480338.jpg?width=400

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."

post-181-1143480396.jpg?width=400

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

Posted
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?

  • 2 months later...
Posted
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 :)

  • 2 months later...
Posted
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.

Posted
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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.