Jump to content

crazy device configuration


vivante

Recommended Posts

Hallo,

I was working on this topic: I would like to identify which digital lines are reserved on a NI device when I configure some counter input tasks (of course that device must support them).

If, for example, I configure my system to read two encoders (it means DAQ drivers are going to reserve 6 lines A+B+Z for the first encoder and A+B+Z for the second one), which digital lines will be reserved? if I can find out them, I can programmatically define a task to read free (i.e. unreserved) digital lines, without any knowledge of device pinout. Otherwise I must define a table for every device my customers want to use.

doing so I have found this example (see attachment) where I created a task for an input encoder and then I can user all available digital lines as output lines. can you explain me why DAQ drivers don't raise up an error?

If I configure digital lines as input lines Labview doesn't generate any error, but in that case both counter and digiatl lines are input task so I accept that DAQ drivers don't signal an error.

I repeated this test with simulated NI devices and real devices (PCI and USB, like USB 6341) , with LV2009 and LV2010, always with the same result.

More, can someone of you tell me how to discover which digital lines are associated to counter channels?

thank you in advance for your replies.

Vivante

crazyConfiguration.vi

Link to comment

Join the conversation

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

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