01-06-2015 03:58 PM
Hi,
I am using Teststand 2014 and LabVIEW 2013 SP1 as the module adapter.
My Teststand sequence file includes communication with 3-5 different instruments via TCP/IP.
Such as Spectrum analyzer, generator and other RF measurement devices.
Since I am performing many configurations of the instruments and fetching measurements I would like to have a log of the status of every command sent to any instrument.
for example - if I send an Auto Range command to a spectrum analyzer, I would like to log that it was sent and also log the respond from the instrument that the action is done.
This log will be visible to the user and he could scroll and see what commands has been sent to the instruments and their status.
I believe that this log should be a part of the UI that I will create for the Teststand Seq, is that correct? or should I create a different Window for it ?
There are many other questions that I am thinking -
1. Where should I store this log ? in a spreadsheet file ? in a database ?
2. What is the best way to pass the information (what resource, what command, status) to the log ?
Using a Queue implemented in LabVIEW ? or maybe pass the This.Context Reference to every Step so that every step will update a Teststand Queue that will that will write the log to a database?
or maybe Writing in every step to the log (file or DB) and using the UI messages to write to the Teststand UI
01-06-2015 05:10 PM
Are you strictly using LabVIEW drivers (NI VISA) to talk to these instruments?
This could be a lot of data to log...to get an idea of how much just look at MAX (Measurement and Automation Explorer) and open NI I/O Trace. After you configure NI I/O trace run your sequence with the capture on and you will see what I mean.
In LabVIEW under Measurement I/O there are subvi's to invoke NI I/O trace which might be the easiest way to do this if you want to show that window to your operators all the time.
For my purposed I just post messages to the TS UI on where it is in the sequence and not show the nitty gritty details that most of my operators wouldn't understand. If I think there is a problem I'll open NI I/O trace manually and check it myself or have an advanced user (technician) do the same.
Hope this helps.
01-09-2015 08:54 AM