02-29-2016 03:13 AM
if your divace couldsend data without any thing to wirte into it so your visa method is correct
for what you want you can use this method
02-29-2016 04:25 AM
In this way how can i represent five data to five temperature meter???
02-29-2016 05:07 AM
zakariaislam17@yahoo.com wrote:Note:PIC controller only sending data serially and each data separated by "LF(Line Feed) "it is not get any Acknowledgement form PC.
If you have the capability of changing the code in the PIC, then you want the values seperatred by a comma and then have a Line Feed at the end of your message. So your message should look something like "1,2,3,4,5LF" (where the LF is a line feed). Then you have the LF be the termination character. So you just tell the VISA Read to read more bytes than will be in a message (something like 50 should work) and then use Spreadsheet String To Array with the delimiter set to a comma.
03-03-2016 04:30 AM
Thanks crossrulz.
Now it working.I have another question is it possible to put different kind of meter on one array.
03-03-2016 04:38 AM
zakariaislam17@yahoo.com wrote: is it possible to put different kind of meter on one array.
What exactly do you mean here? As long as you are dealing with the same data type (in this case, likely DBL), then you can have whatever sensor data you want in the array.
03-03-2016 05:31 AM
So fare i worked with only one type of sensor now i want to work with different type sensor .Before i had only one tpye of five sensor .Now i have five different type sensor .I am receiving five data, each of them is seperated by comma and end by "LF" (e.g "45,60,75,40,78LF),Is it possible to put them in five meter.
03-03-2016 05:39 AM
03-03-2016 06:57 AM
zakariaislam17@yahoo.com wrote:So fare i worked with only one type of sensor now i want to work with different type sensor .Before i had only one tpye of five sensor .Now i have five different type sensor .I am receiving five data, each of them is seperated by comma and end by "LF" (e.g "45,60,75,40,78LF),Is it possible to put them in five meter.
The short answer is yes.
Slightly longer answer: You can put whatever you want into that array. It is just a matter of how you encode the data on the PIC side and making sure you interpret it the same way on the LabVIEW side. Just making things up here. Let's say you have 3 thermocouplers, a barometer, and an anemometer. So on the pic side, you have all of those sensor data seperated by commas (one number for each sensor). On the LabVIEW side, you make the array of numbers and then just use Index Array and/or Array Subset to get the specific value(s) you want for each calculation/graph/indicator/log.