04-23-2018 11:47 PM
Thank you so much for helping, I have used one loop for writing and one loop for reading and it is working as expected, although occasionally the reading loop will just jam, I suspect that may have to do with the hardware instead. I suppose there isnt any way to circumvent this, or am I just sending commands too fast?
I am only testing with SPMU2 and DCLoad (2 switch active)
Now, I am facing this weird issue that did not happen in my old VIs. When I pass the response from the serial read to the respective functions to get the values extracted, LabView throws me an error
"Error 1 occurred at Scan From String (arg 1)"
Possible reason(s):
LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
at each of the scan for string functions that I have, but I only set it to activate once a match in the string is found, is there some problem causing this?
Sorry, I do not know what serial protocol it is using, the dongle just looks like this
04-24-2018 12:06 AM - edited 04-24-2018 12:15 AM
"Sorry, I do not know what serial protocol it is using, the dongle just looks like this "
I have never used such wireless USB adapters. That photo does not really help, and i just started to have a look at the Zigbee manual. Using such adapters give you another complex layer to your setup. Being wireless is a must one for you?
Moreover, the real question regarding to the serial protocol is not the adapter you have, but the serial protocol your devices use. Do you have spec manual for your instruments which you want to connect to your laptop??
edit: so your first step should be to have (and give us) a clear overview of your hardware setup, including user manuals/specification sheets for all of your devices/sensors! It only makes sense to talk about software/programming when we know what we deal with...