-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Name() on Variant data type (#633)
* implement Name() on Variant data type * Single source string
- Loading branch information
1 parent
c6a28aa
commit d52d38f
Showing
5 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
test-it/ExpectedResults/ConvertWaveformOfInt64ToWaveformOfInt32.vtr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dataItem_Output: (((0 0) 1 (1 2 3) (_data:null _attributes:null)) ((0 0) 1 (6 3 4) (_data:null _attributes:null))) |
47 changes: 47 additions & 0 deletions
47
test-it/ViaTests/ConvertWaveformOfInt64ToWaveformOfInt32.via
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
define (Application%3A%3AFunction%2Egviweb dv(.VirtualInstrument ( | ||
Locals: c( // Data Space | ||
e(dv(.String 'Application::Function.gviweb')local0) | ||
ce(dv(a(.AnalogWaveform<Int64> *) (((0 0) 1 (1 2 3) ()) ((0 0) 1 (6 3 4) ())))c1) | ||
e(.Int32 local2) | ||
ce(dv(.Int32 0)c3) | ||
e(.Int32 local4) | ||
e(.Int32 local5) | ||
e(.AnalogWaveform<Int64> local6) | ||
e(.AnalogWaveform<Int32> local7) | ||
e(a(.AnalogWaveform<Int32> *) local8) | ||
ce(a(.AnalogWaveform<Int32> *) c9) | ||
e(a(.AnalogWaveform<Int32> *) local10) | ||
e(a(.AnalogWaveform<Int32> *) dataItem_Output) | ||
e(a(.AnalogWaveform<Int32> *) local12) | ||
e(.Boolean local13) | ||
ce(dv(.Int32 0)c14) | ||
ce(a(.AnalogWaveform<Int32> *) c15) | ||
) | ||
clump(1 | ||
ArrayLength(c1 local2 ) | ||
IsGE(c3 local2 local13) | ||
BranchIfTrue(1 local13) | ||
Branch(2) | ||
Perch(2) | ||
Copy(c14 local4) | ||
Copy(local2 local5) | ||
Copy(c15 local8) | ||
Perch(3) | ||
ArrayIndex(c1 local6 local4 ) | ||
Convert(local6 local7) | ||
ArrayConcatenate(local8 local8 local7 ) | ||
Increment(local4 local4 ) | ||
BranchIfGE(4 local4 local5) | ||
Branch(3) | ||
Perch(4) | ||
Copy(local8 local10) | ||
Branch(0) | ||
Perch(1) | ||
Copy(c9 local10) | ||
Branch(0) | ||
Perch(0) | ||
Copy(local10 dataItem_Output) | ||
Printf("dataItem_Output: %z\n" dataItem_Output) | ||
/* Clump Ended. */ ) | ||
))) | ||
enqueue (Application%3A%3AFunction%2Egviweb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters