06-08-2011 01:12 PM
Hi everybody,
iam using Visa over USB-CDC, and iam sending a package of several bytes from a pic to the VI. my problem is that i dont know how to separate them, because iam receiving all them at the same time, and no -or at least im not seeing it- one by one.
for example, in this case iam sending a reding from an adc, and the byte '15', but only receiving the adc reading.
06-13-2011 12:09 PM
Hello,
I'm sending to you a link that might be helpful.
http://digital.ni.com/public.nsf/allkb/22AFA65CEDBD03D686256F5B00619F63?OpenDocument
Let me know if you have any other doubt.
Thanks.
Best Regards
06-13-2011 12:37 PM
This appears to be a continuation of your original thread. What do you mean by "receiving all them at the same time"? Please provide specifics. What are you actually getting out of the VISA Read?
Also, based on your other post you appear to be using the Run Continuously button in the toolbar to run your code. If so, STOP. That button is NOT intended to be used for normal operation of a VI. It's intended to be used for specific debugging purposes. You should have a loop in your VI that stops via a front panel button. Be sure to place the VISA Configure and the VISA Close outside the loop - you should not be initializing and closing the serial port at every iteration of the loop.