I am writing a program with a USB6363 DAQ that will interface to a test bench for a satellite. The LabView interface will provide two analog outputs (got the code for this done! ), and also communicate with the bench using I2C. I have found through other advice that I have to write my own driver. Is it feasible to interface this DAQ with a "PC to I2C Adapator" from i2cchip.com, with either RS232 or USB communication? My goal is to keep the test bench interface contained within one program, and LabView is usually good for this application.
Any advice, suggestions, and/or statements of feasibility would be appreciated!
Not with the DAQ, but you should be able to easily commincate with an extra serial port in your computer and communicate using the VISA fuctions.
Here might be a place to start. It doesn't have much information, but it has the basics. http://zone.ni.com/reference/en-XX/help/371361H-01/lvmeasconcepts/visa_in_labview/
After reading that, look at the Instrument I/O->VISA palette. You should also search in LabVIEW for an example (Help->Find Examples...) such as "Basic Serial Write and Read".
So if I purchase the VISA interface, I could just plug in my USB device, and then control it through LabView? I was reading about finding the right drivers, and it says worst case (no driver, can't write one) to use direct IO. For someone new at Labview, could I get this set up within 3 weeks? Or is that too much?
Thanks again for your help!
You shouldn't need to purchase the VISA. It's built into LabVIEW.
3 weeks to make a simple driver for a brand new person might seem reasonable. Depending on the device, even less. The hard part is building up the messages to send to the device. The VISA API is quite simple to use.
Ah, I found it. Thank you I will get started with this. Would you mind if I posted more questions to you as I try to move through this process? Let me know. I appreciate your help!
I have a device that I would like to control with the VISA function now, and I have been looking at how to control the device through Realterm. To read from an address, I have to send "S 40 1 08 P" for the start, address (hex), write (1), number of bytes, then stop. I have been looking at the "Basic Serial Read and Write". When using the VISA function with my device, does the read VISA command take care of the formatting (ie when I say "read", it will send the S40108P"), and I just need to tell it the address? Or do I need to write the command to the device, and then read back the data? I attached the example I'm using.
No need to attach an example that everyone has.
If you are using Realterm, do you get anything from the instrument when you just sit there and it is doing nothing but a read? You have to type what you said and have Realterm do a write. What the example does is no different than Realterm. Have you actually looked at the VISA Read explanation? Have you any reason to think that it is going to just automatically know what to write? Where would you think it got that information?