08-26-2018 05:10 PM
Well, you used the code I sent, but failed to read the detailed comments that I spent some time trying to explain clearly my recommendations and where the problem might be. So I'll say it again. If you want to again ignore my advice, which you are free to do, at least give me the courtesy of explaining why your way is better than my suggestion.
I'm trying to be patient here, but you need to do your part. Please respond to these points. You may need to wait until you can "do the experiments" (or "tests", if you're an engineer).
Bob Schor
08-26-2018 07:53 PM
Apologies Bob, I am very new to this software and I am learning on the go as I was not taught this software in my degree course. Do not think I am ignoring your advice, I am honestly trying the best I can to understand your comments as I am constrained with time. I will look over what you have said and get back to you but firstly,
- I left all the other settings that were wired to VISA configure serial port because I initally thought you said I could hide them but I couldnt do that.
- What is MAX?
- For the time will I have to create a "wait(ms)" block in the strucuture?
08-26-2018 10:26 PM
@Okor29 wrote:
- I left all the other settings that were wired to VISA configure serial port because I initally thought you said I could hide them but I couldnt do that.
My fault -- by "Hide", I meant "don't wire the Default into the control, leave it unwired". I should have been clearer.
- What is MAX?
MAX is NI's Measurement and Automation Explorer, a program that is installed with NI Device Drivers and allows you to test NI hardware (including VISA). It should be on your desktop with the name NI MAX, and have an Icon that looks (in LabVIEW 2018) like this:
- For the time will I have to create a "wait(ms)" block in the strucuture?
You should not have to do that. When you do the VISA Read and specify 1000 bytes to read, VISA will wait until one of three things occurs -- VISA reads the Termination character, or VISA reads 1000 bytes, or the VISA Timeout occurs. You are seeing the VISA Timeout -- what does that suggest? To put it another way, what is not happening?
Bob Schor
08-29-2018 08:37 PM
Hi Bob,
on NI Max, I tried validating my port bindings after I modified the baud rate because they did not match what was on labview, it is saying the resoure is valid but VISA cannot currently access it, what could this mean? Note: the port with this error is the bluetooth dongle?
A VISA timeout occurs, does it mean it is not receiving the right number of bytes?
08-29-2018 09:09 PM
You have a Bluetooth Dongle that is getting serial data from Arduino, correct? This is plugged into something on your PC. You open MAX, and look in Devices. Do you see your Bluetooth Dongle?
I'm worried that you might not know what you are doing. Here, a Picture will be helpful. Do the following:
Bob Schor
08-30-2018 08:34 PM - edited 08-30-2018 08:35 PM
Hi Bob, it is not showing any errors anymore. Please find attached screenshot