11-29-2005 04:20 AM
11-29-2005 04:49 AM
Hi,
You do not really need case structure to achieve what you want.
Have a look at "write to 1 digital port.vi" provided with labview examples.
In this VI, the switch cluster is converted to boolean array and this boolean array is converted to number.
In your case you have 4 channels.
say you have selected DO3, DO2, DO1 and DO 0
now try doing a boolean table table for the same
DO0 on all others off, this in boolean : 0 0 01 and in numeric1
Do1 on others off, in boolean 0 0 1 0, numeric 2
Do2 on others off, in boolean 0100 , numeric 4
Do3 on others off, in boolean 1000 , numeric 8
and so on.
by passing the relevant number, you can switch on that particular Digital channel/channels
hope this solves your problem.
Regards
Dev
11-29-2005 04:57 AM
11-29-2005 05:45 AM
11-29-2005 06:01 AM
11-29-2005 06:30 AM
11-29-2005 09:54 PM
hi,
good to hear you are making progress.
It should be a matter of time before you will be able to use DIO as per your need.
those examples come with pretty good documentation.
get back if u need any info
regards
Dev
12-28-2005 06:12 AM
12-28-2005 10:53 AM - edited 12-28-2005 10:53 AM
Message Edited by rpursley8 on 12-28-2005 11:54 AM
12-28-2005 03:51 PM