04-05-2007 02:30 PM
04-09-2007 10:28 AM
Hi DC Motor,
Since you are using a 3rd party .dll to perform your communication, this issue may be more of a LabVIEW/.dll use question than really an issue of Instrument control via USB. Are you able to use the 3rd party program independently of LabVIEW and communicate successfully with your instrument?
You also mentioned that you can turn the device on and off successfully - did you do this from within LabVIEW using the Call Library Function Node block to access this 3rd party .dll or through some other mechanism? If you did accomplish this through LabVIEW with the .dll, I would anticipate that it is the .dll call for this particular function that is the real issue at hand. See this link for information regarding the usage of the Call Function Library Node. I noticed in your code that you input a string for the Set Time function, although the attached .pdf indicates that you should send your instrument 4 bytes worth of data. Is there a reason you're sending a string rather than a 4-byte numeric?
Hope this helps!