tania Posted October 29, 2007 Share Posted October 29, 2007 i am new to Labjack UE9 ...when i am giving an input sinal of sine wave to the labjack and observing the graph using DAQFactory...i can see that the negative peaks are clipped...i dnt know where i went wrong please guide! Link to comment Share on other sites More sharing options...
LabJack Support Posted October 29, 2007 Share Posted October 29, 2007 Sounds like you are using a unipolar range, and you want the bipolar +/- 5 volt range. You need a request to set the range of that analog input channel to bipolar 5 volts. You can see this in the pseudocode near the end of Section 4.3.3 of the UE9 User's Guide. In the stream example, add the following request to the Start_Stream sequence. It can go anywhere before the GoOne call, so just make it the first line of the sequence: Device.LabJack.AddRequest(Var.d_number,"LJ_ioPUT_AIN_RANGE", 0, 3, 0); This is saying that you want to set the AIN range, on channel=0, to value=3. You can see from the labjackud.h header file that 3 is the constant for bipolar +/-5 volt range (LJ_rgBIP5V=3). You should be able to use the string LJ_rgBIP5V, which is more readable, but this does not work in older versions of DAQFactory so just use 3. Link to comment Share on other sites More sharing options...
tania Posted October 30, 2007 Author Share Posted October 30, 2007 thank you very much Link to comment Share on other sites More sharing options...
tania Posted October 31, 2007 Author Share Posted October 31, 2007 Sounds like you are using a unipolar range, and you want the bipolar +/- 5 volt range. You need a request to set the range of that analog input channel to bipolar 5 volts. You can see this in the pseudocode near the end of Section 4.3.3 of the UE9 User's Guide. In the stream example, add the following request to the Start_Stream sequence. It can go anywhere before the GoOne call, so just make it the first line of the sequence: Device.LabJack.AddRequest(Var.d_number,"LJ_ioPUT_AIN_RANGE", 0, 3, 0); This is saying that you want to set the AIN range, on channel=0, to value=3. You can see from the labjackud.h header file that 3 is the constant for bipolar +/-5 volt range (LJ_rgBIP5V=3). You should be able to use the string LJ_rgBIP5V, which is more readable, but this does not work in older versions of DAQFactory so just use 3. i forgot to set the range for the labjack.thnkx u but .......not with ethernet connection i face the same problem despite the prev changes... 1)i dont think i quite understand the streaming part of it..like how and where to start,,,i read the guide but still in a dilemma where to go? 2)when i set up a new connection using DAQFactory ..labjack via ethernet ... at the monitor window i dnt see anytg and when i set sumtg it says port is busy... hmm..really confused...after upgrade:UE9 comm:ver1.4;UE9 cntrl:ver1.780;UE9 bootloader:ver1.120 it seems really confusign for a beginner like me...reply! Link to comment Share on other sites More sharing options...
AzeoTech Posted November 5, 2007 Share Posted November 5, 2007 I'm unsure what direction you got to. Can you please attach your .ctl document so I can determine this? Also there are samples, including ones for streaming at www.daqexpress.com to make it easy for you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.