LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving number from random number generator

I am trying to make a game where a random number generator creates a number and save that number, then the program will use that number until the player guesses the right number and then the generator will create a new random number. currently my generator works fine but i cant save the number outputted. how can i save the number generated? Any help i appreciated.

0 Kudos
Message 1 of 3
(589 Views)

Hi UUJP,

 


@UU.JP wrote:

how can i save the number generated? Any help i appreciated.


When you want to "save to a file" then you need to use file functions.

When you want to "store data in a loop" you should learn about using shift registers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(588 Views)

If you would show us what you have (i.e. attach your VI) we could probably give more specific advice.

0 Kudos
Message 3 of 3
(515 Views)