06-11-2008 04:29 AM
06-12-2008 06:04 AM
You are receiving this error because the line group setting on the Create DO Channel is not set correctly. See the attached VI. I trust that you understand that when you press the first button in the 8x1 boolean array, you are actually changing the voltage on port0/line0 from 0 to 5Volts and so on.
KostasB
NIUK Applications Engineering
06-12-2008 07:13 AM
Hi KostasB,
I checked the VI. Thank you for the correction. By the way what does it mean by the "size[s]" tab? Whenever I run the vi, it shows 8.Even if all the eight booleans are OFF, it shows 8.
In the MAX, i configured only one task, in which I have selected the eight channels of port 0. I think it is good enough to control all of the eight switches seperately [I want to switch ON and OFF the switches individually. For eg, now I may need to ON channel 0 and channel 6, but after some time I may need to turn off the current channels and switch ON another two or three channels.... Is there anymore changes required?
Thank you soooooooooooooooooooo much for your helps...........
06-12-2008 08:16 AM
Hi,
8 is the size of the array you are writing. It should always be 8 if you are writing to 8 lines. Look at the attached VI and try to understand what it does. If you want to switch on all channels your numeric will be 255.
If you want to switch of all channels the numeric will be 0. You can peak the right value between 0-255 to switch on and off the channels of your choice.
KostasB
NIUK Applications Engineering
06-12-2008 09:02 AM
06-14-2008 03:02 PM
06-14-2008 03:34 PM
Not sure where you found that example but it does not do any timing of the outputs at all. It just responds to front panel events.
The USB-6008's digital I/O is strictly software timed. That means you will be dependent on the accuracy of windows timing which is not very accurate at all. You can certainly try by inputting a couple of arrays to a DAQmx write inside a for loop. One array would be the logic states and the other array would be wired to a Wait (ms) function. The jitter is going to be in the order of milliseconds though.
07-08-2008 05:18 PM
07-09-2008 10:39 PM
07-09-2008 10:58 PM