glrf Posted January 26, 2007 Share Posted January 26, 2007 Hi DAQFactory, LabJack Support, I need to get variable pulse width on a U3 output. After I learn more about how things work, an analog input-signal applied to another U3 terminal will control a loop to get a variable 1 to 2 microsecond-width pulse, and repeat every 50 microseconds. but that is later...For now I need a few basics. I'm glad I don't have to do this with punchcards. Labjack Support wisely directed me to this portion of the forum, when I guessed about copy, and paste into DAQFactoryExpress objects when I find useful code I want to try. They suggested looking at the U9 example for counters and timers to begin to learn more (how cool is that?). I guess DAQFactory example for timers/counters for the U9 LabJack needs to be tweaked to work for a U3, because I downloaded the example and I got the following when I tried to enter my first frequency: C1000 Channel or function not found: Line 3 - unable to perform quick sequence action. So I opened properties for that particular page component, went to Action tab and see: frequency = System.EntryDialog("Enter Frequency (12-2900 Hz):") divisor = Floor(750000/(256*frequency)) <Umm, ther's yer trouble? 750,000 is a huge number... freq_actual = 750000/(256*divisor) <Umm, this must be the problem because it's on the third line...Right? beginseq(Timers) I'm guessing the U3 and the U9 have different hardware speeds or something. Can I change some things to make the example (start to) work with a U3? ARS Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.