Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

Writing different measurments to a PIC

$
0
0

I have been working with recieving serial data via uart to labview parsing that data to reconstruct a AC signal then doing analysis on that signal to get amp and phase. The phase is incorrect cause of no time reference im working on that so for now im just using the tone measurment function to get a phase from my data. Then after that i want to write these measurments back to my PIC. My micro expects the values to be formated as follow.

 

A123P123

 

when my micro detects an "A" it knows the amplitude, and "P" for phase so im using the "format into string" to append the "A" and "P" to the amplitude and phase values.

 

My question is can i use the visa write in the consumer loop like the attached picture of my code while i have the visa read in the producer. Also will the format into string work.


Viewing all articles
Browse latest Browse all 5565

Trending Articles