08-11-2005 10:22 AM
08-12-2005 11:11 AM
08-12-2005
11:14 AM
- last edited on
05-19-2025
10:31 PM
by
Content Cleaner
08-12-2005 11:36 PM
08-15-2005 01:55 PM
Hello,
I don't know exactly how you have your tasks configured, so I modified your code to create tasks dynamically. I can run this code without any errors.
08-16-2005 04:01 AM
Hello Sean,
I can run your code without error here, Your code is about the same as mine but still get no response from USB-6008 digital write port.
What I want to point out is:
1 :freq+select_a.vi and code2:freq+select_a_Mod.vi
Digital U8 1Chan 1Samp is in the while loop and USB6008 dio can actually controlled by the selector during code running
2:freq+select_a_Mod.vi Digital U8 1Chan 1Samp is NOT in while loop and USB6008 dio state is not change and no error occurred.
This is code problem or DAQ problem? Do you have USB6008 to try this?
08-17-2005 01:16 PM
Hello,
I just ran freq+select_m1.vi with a USB-6008 with no problems. I was able to see the digital line change states as soon as I ran the program. I could then change the state again by rerunning the VI.
How are you monitoring the state of your digital line?
Regards,
Sean C.
08-21-2005 08:25 AM
Hi Sean
I see the stste of digital line is no change at all during program running even I got no error
If you could change state of digital output any time and "many times" during program is running.
It could be my hadrware problem. Then I should call local engineer fot it.
Thanks
Regards,
Benson
08-22-2005 10:19 AM
Hi Benson,
I actually ran freq+select_a_Mod.vi and was able to change the state of the DIO line. Keep in mind that the DIO Write VI is only called once in this VI, so you will only be able to set the digital level once per run.
Are you able to set the digital level of a DIO line with this VI? How are you monitoring the state of your lines? With an LED? A multimeter?
Regards,
Sean C.
08-23-2005 08:58 AM
Hi Sean,
In your reply "freq+select_once_per_run.vi" DIO state can only be changed at once. Second call will not be taken. This is the same result as I run here (by multimeter). My another vi freq+select_m1.vi can change DIO state anytime I want during vi running. But the problem is higher frequency (>100KHz) I measure less accuracy result I read.
It it possible to explain this? I can only guess because I put two functions in the same loop. That will share the hardware resource? If this is true, how do I modify this if I still need to control the state of DIO anytime during vi running? Thanks
Regards,
Benson