Interroga Posted June 10, 2018 Report Share Posted June 10, 2018 I wold like how to make two interger in single variable , with pointer index ? Example int 1 (bin) = 1010010101010101 int 2 ( bin) = 111111111111111111 start index for 2° int : 16 position result : 111111111111111_ 1010010101010101 In VisiLogic have block for this ( vector fill) . But in unilogic not found this. You can help me. Regards , mauro. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted June 11, 2018 MVP 2022 Report Share Posted June 11, 2018 UniStream doesn't have pre-defined arrays so the functions are necessarily different. You're showing that you want Int 2 in the upper bytes and Int 1 in the lower bytes. I would do this old school with combination of a bit shifter on int 2 into a long buffer register and then add int 1. Tags: Int_1 - INT16 Int_2 - INT 16 Result - UINT32 Joe T. Quote Link to comment Share on other sites More sharing options...
ahoover Posted June 12, 2018 Report Share Posted June 12, 2018 Is this another solution? Just learned to use the copy byte function in the logic menu. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.