Jump to content

Multiple digital line control


fumbler

Recommended Posts

My application has to read or set various lines on a single 6025E digital I/O port independently. Individual VIs work fine but when they are in a Teststand sequence the digital I/O falls over because of the port configuration every time. I understand that it is best to put all the DIO in its own VI but I can't grasp how to pass references around between the VIs of the application. Could someone point me to some examples for 6.0i please? Thanks Pete

Link to comment
Ouch!,

That's too far back for me to save. 6i queues were different then... :thumbdown:

The diagram is a state machine - so it won't print out well.

Hmmm....

4396[/snapback]

I got stuck into it today and got a working model with queues. :D It's a bit messy though. It _was_ really good being able to use channel names to enable portability between DAQ cards but the 6.0i Advanced port config VIs don't seem to recognise a channel list so I had to hard code channel assignments. Now I have to figure out some bitwise maths so that I can simply send a message asking for a single channel to alter. Pete

Link to comment
I got stuck into it today and got a working model with queues.  :D   It's a bit messy though.  It _was_ really good being able to use channel names to enable portability between DAQ cards but the 6.0i Advanced port config VIs don't seem to recognise a channel list so I had to hard code channel assignments. Now I have to figure out some bitwise maths so that I can simply send a message asking for a single channel to alter.  Pete

4407[/snapback]

It was looking good. The queue handler fiddled the port bits and the Qcaller loaded a 2-byte cluster with portmask and desired state. But when I put the Qcaller in place of the 'Write to Digital Port.vi' it does not execute in a timely fashion. :headbang:

What I _had_ was a working vi to capture the switch-on surge. I set up a conditional analogue capture, power up the device and read the analogue data. But with the queue implementation the device does not get powered on until the analogue read times out. How can I tweak the execution priority so that it does what I need? Pete

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