02-14-2013 12:41 PM
hi to all i am new to labview so sorry if what i ask is silly. i am trying to recive data from a sirial port and saving it into a file (that part is working) but part of the data is the friqwancy (wich i need to show saparatly) and the rest is the signal sampaling so basikly im trying to saparate the friqwency from the rast of the data. problem number 2 is that i wont to show the sampaled data in a waveform graph but all i managed is a chart this becouse i get avry sample at a time. pleas help
02-15-2013 03:53 AM
Any one ????
02-15-2013 04:37 AM
What is the format of data you are receiving. Paste your sample data.
If you want to seperate the frquency from rest of the response then see data you are receiving in string form and if you know the position of frequency in the response then by using string subset read the frequency. What is the problem ?
02-15-2013 04:50 AM
I am reserving binary 8 bit data each time ,,, the firs data representing the frequency and then the rest is representing the voltage of each sample, I don't know how to separate the frequency as and I wont to show my data in a graph and not a chart which you can see in my vi. But since in the while loop the graph gets only one value every sickle and I can't show a number of samples
02-15-2013 06:00 AM
02-15-2013 06:27 AM
Yes I know. But I do receive now data from a simulation and I understand that I need to do some kind of a shift register in order to store data normal because now I receive a value at a time... So all I can do is a chart and not a graph which I wont So if possible to help me with the shift register.
The frequency is something I will be able to get out of the shift register if I manage to create it.
IM attaching my vi which now has no shift register
pleas help me with the shift register
02-15-2013 06:31 AM
Hi alex,
you already have 3 shift registers in your VI. On of them is collecting data in a string array.
Is it that hard to create a 4th shift register and to copy the relevant code to collect data in the register?
If it is you should do the 101 courses offered by NI...
02-15-2013 10:55 AM
It does not appear that it is possible to separate the frequency and voltage data unless there is information you are not providing. We have no idea what the data actually looks like but there would have to be something (i.e. a prefix) that identifies a packet as voltage or frequency. Contact the vendor of the serial instrument, read the manual, and if confused, post it. If there is no identifier in the packet, you simply cannot know which packet is which because your acquisition is completely asynchronous with the transmission from the instrument. No way to tell the order of the packets received. That would be the fault of whoever designed the serial instrument and it should not be used.
02-15-2013 11:06 AM
There is a notify but because I get one "sample" inside the while loop at a time and somehow can't see the proper array (thetas why I can't do the graph only the chart) I can't separate it. So the proper question is how I can make my data shown in a graph (then some kind of SST compare will take out the frequency ) besides the graph is needed
02-15-2013 12:28 PM