Documentation

Documentation

  • Documentation
  • Integrated Examples
  • Help

›Open PMU

S3DK Utilities

  • Setting_Memory
  • S3DK_GUI
  • Calculate_Activity
  • Calculate_Angle_and_Amplitude
  • Input_Node
  • PMU_ARR_Calculate_Ratio_of_True
  • PMU_Recover_Light
  • PR_Queue_Multiple_Elements
  • PRL_BUFFER_Rearrange_Complex_2D_Array
  • PRL_BUFFER_Rearrange_Digital_2D_Array
  • PRL_Check_for_Bad_dt
  • PRL_Convert_STR_SGL_Array_to_String
  • PRL_Create_Waveform_Signal_by_Interpolation
  • PRL_DW_Check_Data_CSG
  • PRL_DW_Check_Data_SGL
  • PRL_DW_Clean_Data_CSG
  • PRL_DW_Clean_Data_SGL
  • PRL_Insert_Element_in_string
  • PRL_Queue_Multiple_Elements_at_Opposite_End
  • PRL_Queue_Reader
  • PRL_Rearrange_Analog_Array
  • PRL_Rearrange_Timestamp_Array
  • PRL_STR_Convert_CSG_Array_to_String
  • PRL_STR_Convert_Number_to_String
  • PRL_STR_Get_Selected_Indices
  • PRL_TS_Clip_Array
  • PRL_TS_Get_Real_Timestamp
  • PRL_TS_Round_to_Nearest_10ms
  • PRL_TS_Waiter
  • PRL_UTIL_Calculate_Data_Rate
  • PRL_UTIL_Check_Timestamp_Age
  • PRL_UTIL_Convert_Command_for_Display
  • PRL_UTIL_Get_Control_Value
  • PRL_UTIL_Get_Real_Timestamp
  • PRL_UTIL_Split_Command
  • PTR_STR_Convert_SGL_Array_to_String
  • Time_Stamp_to_iso_8601_with_Millieseconds

STRONGgrid DLL VI

  • Connect_PDC
  • Disconnect_PDC
  • DLL_Shutdown
  • Get_Analog_config_Ver.3
  • Get_Header_Msg
  • Get_Phasor_Config
  • Get_PMU_Configuration
  • Get_Real_PMU_Data
  • poll_PDC_With_Data_Waiting
  • Read_Configuration
  • Start_Data_Stream
  • Stop_Data_Stream

Buffer and Queue

  • PRL_Software_Documentation
  • Get_PRL_Access_Queue
  • PL_Signal_Create_Waveform_Array
  • PRL_Buffer_Cut_from_Analog_2D_Array
  • PRL_Buffer_Cut_from_Complex_2D_Array
  • PRL_Buffer_Cut_from_Digital_2D_Array
  • PRL_Channel_Selector
  • PRL_Check_Bad_dt
  • PRL_PMU_Status
  • PRL_Read_Queue
  • PRL_Reader_Buffer
  • PRL_Remote

TDMS Application

  • Create_log_File_Path
  • TDMS_Data_Logger
  • Write_to_TDMS
  • Write_Data_to_TDMS

Open PMU

  • Code_Flow_Chart
  • Main_Single_Phase
  • Main_Three_Phase
  • General_Startup
  • PIC_Microcontroller
  • 10_DAQ_Config
  • 11_DAQ_Config
  • 20_Limit_180_Degrees
  • 21_Symmetrical_Components
  • 22_Average_Frequnecy
  • 23_Input_Scaling
  • 24_Global_Front_Panel
  • 30_GPS_Time_Fetch
  • 31_GPS_Interrupt_RS232_Read
  • 32_GPS_Time_Code_Parser
  • 33_GPS_Time_to_Labview_Time
  • 34_GPS_Time_from_Config
  • 40_Config_File_Path
  • 41_Config_File_Write_GPS_Time
  • 42_Config_File_Read_GPS_Time
  • 43_Config_File_Get_Input_Scales
  • 44_Config_File_Read_Telecoms
  • 50_NMEA_Clac_Checksum

31_GPS_Interrupt_RS232_Read

31 GPS Interrupt RS232 Read takes a COM port and uses the VISA program to produce the GPS Time Code. The Time code is sent to various other VIs to be used as the time Synchronous component in analysis.

The VI starts by receiving the port resource name. That is sent to the VISA Configure Serial Port, which also is inputted with the baud rate. The VISA resource name and any errors are sent through a VISA buffer. After the buffer, the Flat sequence portion of code is activated. The first box uses the NI_Timer.dll to find the CPU time, which is used to compare to the GPS time. The DAQ Assistant 2 sets a task. The second box in the flat sequence waits for half a second.

The third box in the flat sequence begins by receiving the VISA resource name, and returns the byte at that port. Both of these are sent to a buffer, which returns the resource name again, and the data at the port in a read buffer as a string. In the bottom portion, the VISA is closed, and any errors are sent to the Front Panel. In the above portion, the string is sent to a search and replace in the string twice. Once complete, the whitespace is trimmed, and the length is calculated. Based on the length, either the correct GPS Time code is produced, or an Error code is returned. Once complete, the final part of the flat sequence closes the task.

← 30_GPS_Time_Fetch32_GPS_Time_Code_Parser →
Documentation
Specific Github links
S3DK-STRONGgridS3DK
Links to stuff
LMGTFYBasic Info for PMURensselaer Polytechnic InstituteAlset Lab
Docusaurus Resources
Docusarus websiteGitHubStar
Facebook Open Source
Copyright © 2019 Rensselaer Polytechnic Institute