Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


Photo

DAC0 DAC1


  • Please log in to reply
9 replies to this topic

#1 jstigwood

jstigwood
  • Members
  • 12 posts

Posted 18 March 2013 - 08:38 AM

Hi there, I am using VB.net - and downloaded the Dot.net examples. I get errors running the DacTick project - I get an error 69 -comunication with the LJTDac module, wrong number of acks recieved. wrong number of AKS. the test tool works ok.. does anyone have an exampl ethey could email me.... basically I just want to be able to set the outputs of the DACs to different voltages. Installing this onto a labview PXI and using there example it all appears to work. HELP! James

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 18 March 2013 - 08:41 AM

I don't follow the PXI part. Are you saying that you have LabVIEW, and downloaded the LabVIEW_LJUD archive from us, and some example in there works fine in LabVIEW? Which example?

#3 jstigwood

jstigwood
  • Members
  • 12 posts

Posted 18 March 2013 - 09:00 AM

Ok - so first downloaded to labview examples - all good. Then downloaded the VB.net examples. I ran U3_LJTickDAC.vbproj and wanted to be able to control the Output DAC voltage with a VB.net program (teh labview stuff was just to see if it worked with our test hardware) but ultimatley I just want to create a standalone VB program. James

#4 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 18 March 2013 - 09:01 AM

But which LabVIEW example worked fine? You used some LabVIEW example to control your LJTick-DAC?

#5 jstigwood

jstigwood
  • Members
  • 12 posts

Posted 18 March 2013 - 09:14 AM

U3 eDAC Example.vi was the example. But now I just want to control the DAC via VB. Sorry for the confusion. James

#6 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 18 March 2013 - 09:54 AM

That example VI is controlling the built-in DACs. The LJTick-DAC is different than the built-in DACs:

http://labjack.com/s...users-guide/2.7

http://labjack.com/s...k-dac/datasheet

To control channels on LJTDACs, you use the special driver commands discussed on the LJTDAC datasheet. Sounds like that is what you are doing in VB.net.

To control the built-in DACs, you can use traditional Add/Go/Get commands, or the easy function eDAC:

http://labjack.com/s...ers-guide/4.3.4

... see PUT_DAC iotype used in "U3_Simple" example in VB.net.

http://labjack.com/s...ers-guide/4.3.9

... see eDAC function used in "U3_EFunctions" example in VB.net.

#7 jstigwood

jstigwood
  • Members
  • 12 posts

Posted 18 March 2013 - 10:28 AM

ok - the U3_ Efuntions has given me enough of an idea how to set these up. I have set up a text box varying my DAC output. is there a way how to change frequency and waveform type? Thanks, I'll see how I get on. James

#8 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 18 March 2013 - 10:45 AM

Start by seeing the Waveform Generation application note:

http://labjack.com/s...form-generation

#9 jstigwood

jstigwood
  • Members
  • 12 posts

Posted 19 March 2013 - 08:22 AM

hi there, when using the efunctions DAC command - DAC0 when set to 0 is sitting at 38mv. any ideas why? setting to 1.00v does go to 1v.

#10 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 19 March 2013 - 09:02 AM

The output buffer for the DACs is powered by VS/GND, so the output can get close to VS and GND, but not quite all the way there. See the analog output specs in Appendix A and see Section 2.7.1.2:

http://labjack.com/s...uide/appendix-a

http://labjack.com/s...s-guide/2.7.1.2


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users