04-12-2017 05:45 PM
Hallo, I am very new to labview . I have started working on getting data from temperature sensor BMP_280 but exactly at this moment i am getting problem with VISA and i have no idea about that problem. I am using same baudrate that which i have mention in my IAR programming and also checked it with real term software and also the COM port . In terminal programing each and everything works good but when it comes to labview it reads nothing for my specified write value, I dont know what is the problem.............
please help me on this issue................
i am attaching both of my IAR code and Labview code
Solved! Go to Solution.
04-12-2017 06:00 PM
I'm suspecting a problem in your C code.
In LabVIEW, you are sending the character "1" "2" or "3". In your C code, you are reading a byte, but proceeding to execute the switch statement on whether it is a numeric value of 1, 2, or 3. ASCII "1" "2" or "3" have the values of 49, 50, and 51 in decimal (31, 32, 33 in hex)
04-13-2017 03:15 AM
thanq for your precoius reply @RavensFan its working good but again i got error like error -1073807346 occured at property node(arg 1)...............
it doesnt happened for my first condition each and every thing went good but while i was trying to get data from another condition(pressure) i got that error......
04-16-2017 01:33 PM
That error says invalid reference.
Look at your tunnels on the case structures. They are hollow with a dot. That means not every case is wired, but it will use the default value if unwired. So when the False case runs, a default VISA reference of 0 is used which is not valid. Right click on those tunnels and get rid of the check mark for "Use Default..." then go in and run the wires across in the false case.
There are some oddities in the way you are manipulating the data you are getting back. And the multiple sequential case structures don't make sense.