|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Set Digital out
It sounds like you are manually specifying a value for only Digital Output 7, converting it to an array, and sending that value to the SetDigOut VI. This could create problems, as doing that would (I think) default the other, unspecified values in the array to false, creating the situation that you have described. Instead, you'll need to use the GetDigOut VI first to obtain the current state of all your DigOuts. Convert the array to a cluster, unbundle it, and build a Boolean array, using DigOuts 0-6 for elements in the array, and specifying your 7th DigOut however you'd like as per your code. Then send the rebuilt array into the SetDigOut VI. I did a little experimentation and this worked for me, so hopefully it will solve your problems.
Last edited by Cuse : 04-04-2009 at 21:56. Reason: Did a little experimentation |
|
#2
|
|||
|
|||
|
Re: Set Digital out
Maybe I am not understanding the question completely
But If you have an Array of data already that is changing Simply use a "Replace Array Subset", set the index to 7 (DIO 8 on the DS) and the new element to True or False. This will leave the rest of the data in the Array untouched, changing only the 1 element Other wise build your array with Boolean Values. Using the Set DIO DS VI drop a "build array" In, expand it to 8 Elements (0-7) and then use Constants on the Last Output and whatever outputs you are not using for False. Then pass your data into the Outputs that fluctuate. I Hope this helps, if not send me a message or something, I have been working on the DIOs for the past couple days... Jason |
|
#3
|
||||
|
||||
|
Re: Set Digital out
Quote:
|
|
#4
|
|||
|
|||
|
Re: Set Digital out
Quote:
Thanks for the catch ![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sorting out Digital NASA TV | Billfred | General Forum | 2 | 03-12-2007 18:55 |
| pulsing digital out pins, not as fast as pwms | Generalx5 | Programming | 5 | 02-04-2007 18:52 |
| Digital out signal speed on off, almost like PWM but at max 60Hz | Generalx5 | Electrical | 2 | 27-03-2007 12:26 |
| Set Default Digital inputs to Low? How? bad Analog value? | Generalx5 | Programming | 11 | 04-01-2007 18:57 |
| Digital Caliper as a Digital Readout on Small Mill | sanddrag | Technical Discussion | 9 | 13-10-2005 22:51 |